mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-09-15 03:54:58 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
15
roles/nginx/tasks/htpasswd.yml
Normal file
15
roles/nginx/tasks/htpasswd.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
- 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
|
||||
|
Reference in New Issue
Block a user