24 lines
508 B
YAML
24 lines
508 B
YAML
---
|
|
# 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
|