[INFO] Création du rôle
This commit is contained in:
23
handlers/main.yml
Normal file
23
handlers/main.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
# 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
|
Reference in New Issue
Block a user