[nginx/users] add makedirs to htpasswd deploy

This commit is contained in:
Arthur Lutz 2018-04-24 11:01:29 +02:00
parent 1db6ddeb66
commit 28d1069617

View File

@ -8,6 +8,7 @@ htpasswd:
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 -%}