Merge pull request #189 from arthurlogilab/nginx-users-makedirs

[nginx/users] add makedirs to htpasswd deploy
This commit is contained in:
Niels Abspoel 2018-04-24 11:02:25 +02:00 committed by GitHub
commit 5a7e113a15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,6 +12,7 @@ touch {{ htauth }}:
make sure {{ htauth }} exists: make sure {{ htauth }} exists:
file.exists: file.exists:
- name: {{ htauth }} - name: {{ htauth }}
- makedirs: True
{% for name, user in pillar.get('users', {}).items() %} {% for name, user in pillar.get('users', {}).items() %}
{% if user['webauth'] is defined -%} {% if user['webauth'] is defined -%}