More conditionals to make sure things only run once on the backend.

This commit is contained in:
Kevin Fenzi 2015-06-01 19:26:07 +00:00
parent af3cfb6eec
commit be70a974cf
2 changed files with 4 additions and 0 deletions

View file

@ -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

View file

@ -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