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

37 lines
992 B
YAML
Raw Normal View History

2021-07-16 01:19:30 +02:00
---
2021-08-11 23:17:29 +02:00
- 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'
2021-07-16 01:19:30 +02:00
- name: Copy hook to enable acmetool to restart services
become: true
ansible.builtin.copy:
2021-08-11 23:17:29 +02:00
src: "{{ lookup('first_found', acmetool__restart_hook ) }}"
2021-07-16 01:19:30 +02:00
dest: '/etc/acme/hooks/'
owner: root
group: root
mode: 'u=rx,g=rx,o=rx'
2021-08-11 23:17:29 +02:00
- 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'