From e50a103a85922427d1e705fc95f2ba178ba9d3e7 Mon Sep 17 00:00:00 2001 From: nd Date: Sat, 10 Nov 2018 20:53:21 +0100 Subject: [PATCH] add support to remove users from htpasswd files --- tasks/htpasswdfile.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks/htpasswdfile.yml b/tasks/htpasswdfile.yml index b68a14b..6edce9d 100644 --- a/tasks/htpasswdfile.yml +++ b/tasks/htpasswdfile.yml @@ -5,7 +5,7 @@ path: "{{ htpasswdfile[passfile].path }}" name: "{{ item.name }}" password: "{{ item.pw }}" - owner: "{{htpasswdfile[passfile].owner|d('root') }}" - group: "{{htpasswdfile[passfile].group|d('www-data') }}" - mode: "{{htpasswdfile[passfile].mode|d('0640') }}" - state: "{{htpasswdfile[passfile].state|d('present') }}" + owner: "{{ htpasswdfile[passfile].owner|d('root') }}" + group: "{{ htpasswdfile[passfile].group|d('www-data') }}" + mode: "{{ htpasswdfile[passfile].mode|d('0640') }}" + state: "{{ item.state|d('present') }}"