mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-05 21:11:52 +07:00
Add OpenNebula role
This commit is contained in:
parent
05b220982a
commit
85732a893c
@ -3,3 +3,4 @@
|
||||
become: yes
|
||||
roles:
|
||||
- { role: lxd }
|
||||
- { role: opennebula }
|
||||
|
6
roles/opennebula/defaults/main.yml
Normal file
6
roles/opennebula/defaults/main.yml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
opennebula_packages:
|
||||
- opennebula
|
||||
- opennebula-sunstone
|
||||
- opennebula-gate
|
||||
- opennebula-flow
|
26
roles/opennebula/tasks/main.yml
Normal file
26
roles/opennebula/tasks/main.yml
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
- name: Add OpenNebula key
|
||||
apt_key:
|
||||
url: https://downloads.opennebula.io/repo/repo.key
|
||||
state: present
|
||||
|
||||
- name: Add OpenNebula repository
|
||||
apt_repository:
|
||||
repo: deb https://downloads.opennebula.io/repo/5.12/Ubuntu/18.04 stable opennebula
|
||||
filename: opennebula
|
||||
update_cache: yes
|
||||
state: present
|
||||
|
||||
- name: Install OpenNebula
|
||||
package:
|
||||
name: "{{ opennebula_packages }}"
|
||||
state: present
|
||||
|
||||
- name: Enable OpenNebula services
|
||||
service:
|
||||
name: "{{ item }}"
|
||||
enabled: yes
|
||||
state: started
|
||||
with_items:
|
||||
- opennebula
|
||||
- opennebula-sunstone
|
Loading…
Reference in New Issue
Block a user