taskotron: update dev to buildbot 1.7, Python3

Merges: https://pagure.io/fedora-qa/qa-ansible/pull-request/6
This commit is contained in:
Kamil Páral 2019-02-05 15:17:01 +01:00
parent a4e367c1f3
commit 758c0d035e
20 changed files with 764 additions and 120 deletions

View file

@ -2,19 +2,22 @@
- name: start httpd (provided in the apache role)
service: name=httpd state=started
- name: ensure packages required for resultsdb_frontend are installed (yum)
package: name={{ item }} state=present
when: ansible_distribution_major_version|int < 22
with_items:
- resultsdb_frontend
- mod_wsgi
- 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 and and deployment_type in ['dev']
###########
## TODO: remove when transition to buildbot 1.7 is complete
- name: ensure packages required for resultsdb_frontend are installed (dnf)
dnf: name={{ item }} state=present
with_items:
- resultsdb_frontend
- mod_wsgi
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
when: ansible_cmdline.ostree is not defined and deployment_type in ['stg', 'prod']
###########
- name: ensure selinux lets httpd talk to the network
seboolean: name=httpd_can_network_connect persistent=yes state=yes