[INFO] Création du rôle

This commit is contained in:
2022-09-30 17:19:45 +02:00
parent a0a3d6f1d9
commit 0f540d5d3c
9 changed files with 304 additions and 1 deletions

23
handlers/main.yml Normal file
View 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