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_config_dir: /etc/letsencrypt
|
||||||
certbot_log_dir: /var/log/letsencrypt
|
certbot_log_dir: /var/log/letsencrypt
|
||||||
certbot_environment:
|
certbot_environment:
|
||||||
- "{{ certbot_work_dir }}"
|
- { name: "{{ certbot_work_dir }}", mode: '0755' }
|
||||||
- "{{ certbot_config_dir }}"
|
- { name: "{{ certbot_config_dir }}", mode: '0755' }
|
||||||
- "{{ certbot_log_dir }}"
|
- { name: "{{ certbot_log_dir }}", mode: '0700' }
|
||||||
certbot_user: root
|
certbot_user: root
|
||||||
|
@ -14,9 +14,10 @@
|
|||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Create certbot environment
|
- name: Create certbot environment
|
||||||
path: "{{ item }}"
|
file:
|
||||||
|
path: "{{ item.name }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: "{{ item.mode }}"
|
||||||
with_items: "{{ certbot_environment }}"
|
with_items: "{{ certbot_environment }}"
|
||||||
|
|
||||||
- name: Deploy config file
|
- name: Deploy config file
|
||||||
|
Loading…
Reference in New Issue
Block a user