diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2019-10-01 05:26:48 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2019-10-01 05:26:48 -0400 |
| commit | ef3b16ef576cf4e0cffc58ff57ccd2ad250cc9e0 (patch) | |
| tree | 5acf777e6cbd3484fe01930bfc0fc6dad599a28c | |
| parent | fe7201cfd83e753b214dc33a805fbde78176e9e1 (diff) | |
| download | nginx-ef3b16ef576cf4e0cffc58ff57ccd2ad250cc9e0.tar.gz nginx-ef3b16ef576cf4e0cffc58ff57ccd2ad250cc9e0.tar.xz | |
Write an htpasswd file if a source is provided
| -rw-r--r-- | tasks/main.yml | 7 |
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 |
