[users.sls] touch /etc/nginx/.htpasswd

This commit is contained in:
Arthur Lutz 2018-01-24 16:44:51 +01:00 committed by GitHub
parent 896fdee0dd
commit f3ef626ec4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,10 @@ htpasswd:
pkg.installed:
- name: {{ nginx.apache_utils }}
touch /etc/nginx/.htpasswd:
cmd.run:
- creates: /etc/nginx/.htpasswd
make sure {{ htauth }} exists:
file.exists:
- name: {{ htauth }}