Move all shared into this new repo

This commit is contained in:
2020-04-02 15:48:20 -06:00
parent 27307f26f2
commit 66fd90a649
465 changed files with 61143 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
---
- name: Adding Debian 9 OpenNebula GPG key
apt_key: url='https://downloads.opennebula.org/repo/repo.key' state=present
when: ansible_os_family == "Debian"
- name: Adding Debian 9 OpenNebula repository
apt_repository: repo='deb https://downloads.opennebula.org/repo/5.10/Debian/9 stable opennebula' state=present
when: ansible_os_family == "Debian" and ansible_distribution_major_version == "9"
- name: Adding Debian 10 OpenNebula repository
apt_repository: repo='deb https://downloads.opennebula.org/repo/5.10/Debian/10 stable opennebula' state=present
when: ansible_os_family == "Debian" and ansible_distribution_major_version == "10"
# Install OpenNebula
- name: Installing OpenNebula controller applications
apt:
update_cache: yes
state: present
name: opennebula-node
notify: restart libvirtd
# Copy /etc/libvirt/libvirt.conf to bypass polkit socker permissions
- name: Copying libvirtd.conf
copy:
src: 'files/libvirtd.conf'
dest: '/etc/libvirt/libvirtd.conf'
owner: 'root'
group: 'root'
mode: 0644
notify: restart libvirtd
# Copy ssh client config for oneadmin user
- name: Copying oneadmin SSH client config
copy:
src: 'files/ssh.config'
dest: '/var/lib/one/.ssh/config'
owner: 'oneadmin'
group: 'oneadmin'
mode: 0644