See if we can sort out some of the bodhi base vs backend playbooks causing multiple changes.
This commit is contained in:
parent
c4483d8dc4
commit
1fd9951db0
2 changed files with 28 additions and 20 deletions
|
@ -60,24 +60,14 @@
|
|||
copy: >
|
||||
src="{{ private }}/files/bodhi_key_and_cert.pem"
|
||||
dest="/etc/pki/bodhi/bodhi.pem"
|
||||
owner=bodhi
|
||||
group=bodhi
|
||||
owner=apache
|
||||
group=apache
|
||||
mode=0400
|
||||
when: inventory_hostname.startswith('bodhi-backend')
|
||||
tags:
|
||||
- config
|
||||
- bodhi
|
||||
|
||||
- name: change owner and group attributes of bodhi.pem file
|
||||
file: >
|
||||
path="/etc/pki/bodhi/bodhi.pem"
|
||||
owner=apache
|
||||
group=apache
|
||||
when: inventory_hostname.startswith('bodhi-backend')
|
||||
tags:
|
||||
- bodhi
|
||||
- config
|
||||
|
||||
- name: change owner and group attributes of /var/log/bodhi directory
|
||||
file: path=/var/log/bodhi owner=apache group=apache
|
||||
when: inventory_hostname.startswith('bodhi-backend')
|
||||
|
@ -289,12 +279,30 @@
|
|||
- bodhi
|
||||
- cron
|
||||
|
||||
- name: have the apache own the bodhi config
|
||||
file: >
|
||||
path="/etc/bodhi/production.ini"
|
||||
- name: setup basic /etc/bodhi/ contents (staging)
|
||||
template: >
|
||||
src="staging.ini.j2"
|
||||
dest="/etc/bodhi/production.ini"
|
||||
owner=apache
|
||||
group=apache
|
||||
when: inventory_hostname.startswith('bodhi')
|
||||
mode=0600
|
||||
when: inventory_hostname.startswith('bodhi-backend') and env == 'staging'
|
||||
notify:
|
||||
- reload bodhi httpd
|
||||
tags:
|
||||
- config
|
||||
- bodhi
|
||||
|
||||
- name: setup basic /etc/bodhi/ contents (production)
|
||||
template: >
|
||||
src="production.ini.j2"
|
||||
dest="/etc/bodhi/production.ini"
|
||||
owner=apache
|
||||
group=apache
|
||||
mode=0600
|
||||
when: inventory_hostname.startswith('bodhi-backend') and env == 'production'
|
||||
notify:
|
||||
- reload bodhi httpd
|
||||
tags:
|
||||
- config
|
||||
- bodhi
|
||||
|
|
|
@ -30,28 +30,28 @@
|
|||
- config
|
||||
- bodhi
|
||||
|
||||
- name: setup basic /etc/bodhi/ contents
|
||||
- name: setup basic /etc/bodhi/ contents (staging)
|
||||
template: >
|
||||
src="staging.ini.j2"
|
||||
dest="/etc/bodhi/production.ini"
|
||||
owner=bodhi
|
||||
group=bodhi
|
||||
mode=0600
|
||||
when: inventory_hostname.startswith('bodhi') and env == 'staging'
|
||||
when: inventory_hostname.startswith('bodhi0') and env == 'staging'
|
||||
notify:
|
||||
- reload bodhi httpd
|
||||
tags:
|
||||
- config
|
||||
- bodhi
|
||||
|
||||
- name: setup basic /etc/bodhi/ contents
|
||||
- name: setup basic /etc/bodhi/ contents (production)
|
||||
template: >
|
||||
src="production.ini.j2"
|
||||
dest="/etc/bodhi/production.ini"
|
||||
owner=bodhi
|
||||
group=bodhi
|
||||
mode=0600
|
||||
when: inventory_hostname.startswith('bodhi') and env == 'production'
|
||||
when: inventory_hostname.startswith('bodhi0') and env == 'production'
|
||||
notify:
|
||||
- reload bodhi httpd
|
||||
tags:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue