1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_acmetool.git synced 2024-08-16 12:29:49 +02:00
ansible_role_acmetool/tasks/hook.yml
2022-10-25 22:51:18 +02:00

36 lines
990 B
YAML

---
- name: Copy hook to enable acmetool to reload services
become: true
ansible.builtin.copy:
src: "{{ lookup('first_found', acmetool__reload_hook) }}"
dest: '/etc/acme/hooks/'
owner: root
group: root
mode: 'u=rx,g=rx,o=rx'
- name: Create hook configuration to reload services via ansible
become: true
ansible.builtin.template:
src: 'templates/acmetool_reload.j2'
dest: '/etc/default/acme-reload'
owner: root
group: root
mode: 'u=rx,g=rx,o=rx'
- name: Copy hook to enable acmetool to restart services
become: true
ansible.builtin.copy:
src: "{{ lookup('first_found', acmetool__restart_hook) }}"
dest: '/etc/acme/hooks/'
owner: root
group: root
mode: 'u=rx,g=rx,o=rx'
- name: Create hook configuration to restart services via ansible
become: true
ansible.builtin.template:
src: 'templates/acmetool_restart.j2'
dest: '/etc/default/acme-restart'
owner: root
group: root
mode: 'u=rx,g=rx,o=rx'