diff --git a/roles/bodhi2/backend/tasks/main.yml b/roles/bodhi2/backend/tasks/main.yml index 6bba13c830..3be9cf02f5 100644 --- a/roles/bodhi2/backend/tasks/main.yml +++ b/roles/bodhi2/backend/tasks/main.yml @@ -216,3 +216,31 @@ when: inventory_hostname.startswith('bodhi-backend02') and env == "production" tags: - config + +- name: setup basic /etc/bodhi/ contents + template: > + src="staging.ini.j2" + dest="/etc/bodhi/production.ini" + owner=masher + group=masher + mode=0600 + when: inventory_hostname.startswith('bodhi') and env == 'staging' + notify: + - restart httpd + tags: + - config + - bodhi + +- name: setup basic /etc/bodhi/ contents + template: > + src="production.ini.j2" + dest="/etc/bodhi/production.ini" + owner=masher + group=masher + mode=0600 + when: inventory_hostname.startswith('bodhi') and env == 'production' + notify: + - restart httpd + tags: + - config + - bodhi