mirror of
https://github.com/roles-ansible/ansible_role_acmetool.git
synced 2024-08-16 12:29:49 +02:00
36 lines
992 B
YAML
36 lines
992 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'
|