add mode per directory option
This commit is contained in:
parent
93567a8535
commit
08f596e838
@ -3,7 +3,7 @@ certbot_work_dir: /var/lib/letsencrypt
|
||||
certbot_config_dir: /etc/letsencrypt
|
||||
certbot_log_dir: /var/log/letsencrypt
|
||||
certbot_environment:
|
||||
- "{{ certbot_work_dir }}"
|
||||
- "{{ certbot_config_dir }}"
|
||||
- "{{ certbot_log_dir }}"
|
||||
- { name: "{{ certbot_work_dir }}", mode: '0755' }
|
||||
- { name: "{{ certbot_config_dir }}", mode: '0755' }
|
||||
- { name: "{{ certbot_log_dir }}", mode: '0700' }
|
||||
certbot_user: root
|
||||
|
@ -14,9 +14,10 @@
|
||||
state: present
|
||||
|
||||
- name: Create certbot environment
|
||||
path: "{{ item }}"
|
||||
file:
|
||||
path: "{{ item.name }}"
|
||||
state: directory
|
||||
mode: 0755
|
||||
mode: "{{ item.mode }}"
|
||||
with_items: "{{ certbot_environment }}"
|
||||
|
||||
- name: Deploy config file
|
||||
|
Loading…
Reference in New Issue
Block a user