Testdays - return yum-install to resultsdb

This commit is contained in:
Josef Skladanka 2019-05-23 09:06:09 +02:00
parent b89d05f87b
commit d5118d18d8
2 changed files with 18 additions and 2 deletions

View file

@ -2,6 +2,15 @@
- name: start httpd (provided in the apache role)
service: name=httpd state=started
- name: ensure packages required for resultsdb are installed (yum - required for testdays)
package: name={{ item }} state=present
with_items:
- resultsdb
- mod_wsgi
- python-psycopg2
- libsemanage-python
when: ansible_distribution_major_version|int < 22
- name: ensure packages required for resultsdb are installed (dnf)
dnf: name={{ item }} state=present
with_items:
@ -9,7 +18,7 @@
- python3-mod_wsgi
- python3-psycopg2
- python2-libsemanage
when: ansible_cmdline.ostree is not defined
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
- name: ensure database is created
delegate_to: "{{ resultsdb_db_host_machine }}"

View file

@ -2,12 +2,19 @@
- name: start httpd (provided in the apache role)
service: name=httpd state=started
- name: ensure packages required for resultsdb_frontend are installed (yum - required for testdays)
package: name={{ item }} state=present
with_items:
- resultsdb_frontend
- mod_wsgi
when: ansible_distribution_major_version|int < 22
- name: ensure packages required for resultsdb_frontend are installed (dnf)
dnf: name={{ item }} state=present
with_items:
- resultsdb_frontend
- python3-mod_wsgi
when: ansible_cmdline.ostree is not defined
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
- name: ensure selinux lets httpd talk to the network
seboolean: name=httpd_can_network_connect persistent=yes state=yes