summaryrefslogtreecommitdiffstats
path: root/roles/taskotron/execdb/tasks
diff options
context:
space:
mode:
authorTim Flink <tflink@fedoraproject.org>2015-09-30 21:57:46 +0000
committerTim Flink <tflink@fedoraproject.org>2015-09-30 21:57:52 +0000
commitbdbf4f8615220f8bc59d2eb5b5cc0ae220caa8fe (patch)
treee3f99bda9514e37cdafcd90b89c1936c92b5da6a /roles/taskotron/execdb/tasks
parent3f3709c369e78afaa1a472b6b2d0b1592d24b792 (diff)
downloadansible-bdbf4f8615220f8bc59d2eb5b5cc0ae220caa8fe.tar.gz
ansible-bdbf4f8615220f8bc59d2eb5b5cc0ae220caa8fe.tar.xz
ansible-bdbf4f8615220f8bc59d2eb5b5cc0ae220caa8fe.zip
updating taskotron roles to use dnf for f22+, variable for repos
Diffstat (limited to 'roles/taskotron/execdb/tasks')
-rw-r--r--roles/taskotron/execdb/tasks/main.yml10
1 files changed, 5 insertions, 5 deletions
diff --git a/roles/taskotron/execdb/tasks/main.yml b/roles/taskotron/execdb/tasks/main.yml
index 1b3b74c38..556f3df5c 100644
--- a/roles/taskotron/execdb/tasks/main.yml
+++ b/roles/taskotron/execdb/tasks/main.yml
@@ -1,5 +1,5 @@
- name: ensure packages required for execdb are installed
- action: yum name={{ item }} state=latest
+ yum: name={{ item }} state=latest
when: deployment_type == 'prod' or deployment_type == 'local'
with_items:
- execdb
@@ -7,14 +7,14 @@
- python-psycopg2
- libsemanage-python
-- name: ensure packages required for execdb are installed (testing)
- action: yum name={{ item }} state=latest enablerepo=infrastructure-testing
- when: deployment_type == 'dev' or deployment_type == 'stg'
+- name: ensure packages required for execdb are installed (f22+)
+ dnf: name={{ item }} state=latest enablerepo={{ extra_enablerepos }}
with_items:
- execdb
- mod_wsgi
- python-psycopg2
- libsemanage-python
+ when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
- name: ensure database is created
delegate_to: "{{ execdb_db_host }}"
@@ -27,7 +27,7 @@
delegate_to: "{{ execdb_db_host }}"
sudo_user: postgres
sudo: true
- action: postgresql_user db={{ execdb_db_name }} user={{ dev_execdb_db_user }} password={{ dev_execdb_db_password }} role_attr_flags=NOSUPERUSER
+ action: postgresql_user db={{ execdb_db_name }} user={{ execdb_db_user }} password={{ execdb_db_password }} role_attr_flags=NOSUPERUSER
- name: ensure stg execdb db user has access to stg database
when: deployment_type == 'stg'