autocloud/backend: Convert from dnf/with_items to package/name.

This commit is contained in:
James Antill 2019-06-11 10:30:56 -04:00 committed by pingou
parent fc0ae206cc
commit c3a95ecd4b

View file

@ -2,17 +2,18 @@
# Configuration for the Fedora Notifications webapp # Configuration for the Fedora Notifications webapp
- name: install needed packages - name: install needed packages
dnf: pkg={{ item }} state=present package:
with_items: state: present
- autocloud-common name:
- autocloud-backend - autocloud-common
- tunir - autocloud-backend
- fedfind - tunir
- python2-fedfind - fedfind
- python-sqlalchemy - python2-fedfind
- python-sqlalchemy-utils - python-sqlalchemy
- libsemanage-python - python-sqlalchemy-utils
- libselinux-python - libsemanage-python
- libselinux-python
notify: notify:
- restart fedmsg-hub - restart fedmsg-hub
- restart autocloud - restart autocloud
@ -57,10 +58,11 @@
- autocloud/backend - autocloud/backend
- name: install libvirt and vagrant-libvirt for the libvirt host - name: install libvirt and vagrant-libvirt for the libvirt host
dnf: pkg={{ item }} state=present package:
with_items: state: present
- libvirt name:
- vagrant-libvirt - libvirt
- vagrant-libvirt
when: autocloud_specialization == 'libvirt' when: autocloud_specialization == 'libvirt'
notify: notify:
- restart fedmsg-hub - restart fedmsg-hub
@ -70,9 +72,10 @@
- autocloud/backend - autocloud/backend
- name: install libvirt for the aarch64 host - name: install libvirt for the aarch64 host
dnf: pkg={{ item }} state=present package:
with_items: state: present
- libvirt name:
- libvirt
when: autocloud_specialization == 'aarch64' when: autocloud_specialization == 'aarch64'
notify: notify:
- restart fedmsg-hub - restart fedmsg-hub
@ -90,12 +93,13 @@
- autocloud/backend - autocloud/backend
- name: install virtualbox basics where needed - name: install virtualbox basics where needed
dnf: pkg={{ item }} state=present package:
with_items: state: present
- VirtualBox-4.3 name:
- kernel-devel - VirtualBox-4.3
- gcc - kernel-devel
- vagrant - gcc
- vagrant
register: virtualbox_installed register: virtualbox_installed
check_mode: no check_mode: no
when: autocloud_specialization == 'virtualbox' and inventory_hostname == 'autocloud-libvirt-vbox.phx2.fedoraproject.org' when: autocloud_specialization == 'virtualbox' and inventory_hostname == 'autocloud-libvirt-vbox.phx2.fedoraproject.org'
@ -107,12 +111,13 @@
- autocloud/backend - autocloud/backend
- name: install virtualbox basics where needed - name: install virtualbox basics where needed
dnf: pkg={{ item }} state=present package:
with_items: state: present
- VirtualBox-5.1 name:
- kernel-devel - VirtualBox-5.1
- gcc - kernel-devel
- vagrant - gcc
- vagrant
register: virtualbox_installed register: virtualbox_installed
check_mode: no check_mode: no
when: autocloud_specialization == 'virtualbox' and inventory_hostname == 'autocloud-libvirt-vbox2.phx2.fedoraproject.org' when: autocloud_specialization == 'virtualbox' and inventory_hostname == 'autocloud-libvirt-vbox2.phx2.fedoraproject.org'