Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
348 B

---
- name: Create or update htpasswd files
htpasswd:
path: "{{ item[0].path }}"
name: "{{ item[1].login }}"
password: "{{ item[1].pass | default(omit) }}"
owner: root
group: nginx
mode: 0640
state: "{{ (item[1].state | default('present')) }}"
with_subelements:
- "{{ nginx_htpasswd }}"
- users
tags: web