role_hugo/handlers/main.yml

24 lines
508 B
YAML
Raw Normal View History

2022-11-09 14:54:18 +00:00
---
# handlers file for hugo
- name: Installer la commande
ansible.builtin.command:
cmd: install -t /usr/local/bin /opt/hugo/hugo
become: true
- name: Redémarrer le service
ansible.builtin.systemd:
enabled: false
daemon_reload: true
state: restarted
name: hugo.service
become: true
- name: Activer et exécuter la planification
ansible.builtin.systemd:
enabled: "{{ hugo_timer_enabled }}"
daemon_reload: true
state: started
name: hugo.timer
become: true