[INFO] Création du rôle (#1)

This commit was merged in pull request #1.
This commit is contained in:
pulsar committed 2022-11-09 14:54:18 +00:00
1 parent a0a3d6f1d9
commit 74f9b1b429
9 files changed
+304 -1

No files matched your search

+23
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