Deploy correct htpaswd in each env

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2016-03-18 16:29:50 +00:00
parent f2599e49f8
commit d6536e81c7

View file

@ -9,6 +9,7 @@
- name: install staging htpasswd
copy: src={{private}}/files/httpd/basset.stg.htpasswd dest=/etc/httpd/conf.d/basset.htpasswd
owner=root group=root mode=0644
when: env == "staging"
notify:
- restart httpd
tags:
@ -18,6 +19,7 @@
- name: install prod htpasswd
copy: src={{private}}/files/httpd/basset.prod.htpasswd dest=/etc/httpd/conf.d/basset.htpasswd
owner=root group=root mode=0644
when: env != "staging"
notify:
- restart httpd
tags: