mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-07-03 22:21:34 +02:00
15 lines
364 B
YAML
15 lines
364 B
YAML
- name: Ensure deploy hook directory exists
|
|
file:
|
|
path: /etc/letsencrypt/renewal-hooks/deploy
|
|
state: directory
|
|
mode: 0755
|
|
when: certbot_deployhook is defined
|
|
|
|
- name: Create deploy hook
|
|
copy:
|
|
content: "{{ certbot_deployhook }}"
|
|
dest: /etc/letsencrypt/renewal-hooks/deploy/ansible.sh
|
|
mode: u+rwx
|
|
when: certbot_deployhook is defined
|
|
|