More conditionals to make sure things only run once on the backend.
This commit is contained in:
parent
af3cfb6eec
commit
be70a974cf
2 changed files with 4 additions and 0 deletions
|
@ -42,11 +42,13 @@
|
|||
path="/etc/pki/bodhi/bodhi.pem"
|
||||
owner=masher
|
||||
group=masher
|
||||
when: inventory_hostname.startswith('bodhi-backend')
|
||||
tags:
|
||||
- config
|
||||
|
||||
- name: change owner and group attributes of /var/log/bodhi directory
|
||||
file: path=/var/log/bodhi owner=masher group=masher
|
||||
when: inventory_hostname.startswith('bodhi-backend')
|
||||
tags:
|
||||
- config
|
||||
|
||||
|
|
|
@ -57,6 +57,7 @@
|
|||
owner=bodhi
|
||||
group=bodhi
|
||||
mode=0400
|
||||
when: inventory_hostname.startswith('bodhi0')
|
||||
tags:
|
||||
- config
|
||||
- bodhi
|
||||
|
@ -77,6 +78,7 @@
|
|||
|
||||
- name: setup /var/log/bodhi directory
|
||||
file: path=/var/log/bodhi owner=bodhi group=bodhi mode=0755 state=directory
|
||||
when: inventory_hostname.startswith('bodhi0')
|
||||
tags:
|
||||
- config
|
||||
- bodhi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue