Add OpenNebula role

This commit is contained in:
Khue Doan 2020-07-23 11:39:55 +07:00
parent 05b220982a
commit 85732a893c
3 changed files with 33 additions and 0 deletions

View File

@ -3,3 +3,4 @@
become: yes
roles:
- { role: lxd }
- { role: opennebula }

View File

@ -0,0 +1,6 @@
---
opennebula_packages:
- opennebula
- opennebula-sunstone
- opennebula-gate
- opennebula-flow

View 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