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/systemd.yml
2021-09-30 14:41:15 +02:00

17 lines
442 B
YAML

---
- name: deploy systemd service file
become: true
ansible.builtin.template:
src: 'templates/acmetool.service.j2'
dest: '/lib/systemd/system/acmetool.service'
owner: 'root'
group: 'root'
mode: '0644'
notify: systemctl restart acmetool
- name: force systemd to reread configs and start acmetool
ansible.builtin.systemd:
daemon_reload: true
name: 'acmetool.service'
state: 'started'
enabled: true