Create update-semaphore.yml

This commit is contained in:
Nicolas Simond
2025-03-31 16:02:58 +02:00
committed by GitHub
parent a0d83be317
commit f5bd4657fb
+15
View File
@@ -0,0 +1,15 @@
- hosts: localhost
connection: local
become: yes
become_method: sudo
tasks:
- name: Truncate logs
shell: echo "" > /etc/ansible/ansible.log
- name: Upgrade Semaphore package
shell: bash /root/semaphore_latest.sh
- name: Restart service Semaphore, in all cases
ansible.builtin.service:
name: semaphore
state: restarted