From ef3b16ef576cf4e0cffc58ff57ccd2ad250cc9e0 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Tue, 1 Oct 2019 05:26:48 -0400 Subject: Write an htpasswd file if a source is provided --- tasks/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tasks/main.yml') 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 -- cgit v1.2.3