aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2019-10-01 05:26:48 -0400
committerMitch Riedstra <mitch@riedstra.us>2019-10-01 05:26:48 -0400
commitef3b16ef576cf4e0cffc58ff57ccd2ad250cc9e0 (patch)
tree5acf777e6cbd3484fe01930bfc0fc6dad599a28c
parentfe7201cfd83e753b214dc33a805fbde78176e9e1 (diff)
downloadnginx-ef3b16ef576cf4e0cffc58ff57ccd2ad250cc9e0.tar.gz
nginx-ef3b16ef576cf4e0cffc58ff57ccd2ad250cc9e0.tar.xz
Write an htpasswd file if a source is provided
-rw-r--r--tasks/main.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/tasks/main.yml b/tasks/main.yml
index 44d11c3..7629c87 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -55,3 +55,10 @@
- acl
notify:
- Restart Nginx
+- name: Install Htpasswd
+ copy:
+ src: '{{nginx_htpasswd}}'
+ dest: /etc/htpasswd
+ owner: "{{nginx_conf_owner}}"
+ group: "{{nginx_conf_group}}"
+ when: nginx_htpasswd is defined