Omit use of tmux in playbooks for more verbose error handling

This commit is contained in:
Keannu Bernasol 2024-11-07 18:54:42 +08:00
parent cbe8d0c2c4
commit 79010ee462
4 changed files with 5 additions and 4 deletions

View file

@ -49,6 +49,7 @@
- socat
- fish
- iperf3
- resolvconf
# Cache is already updated from previous step
update_cache: false
autoremove: true
@ -93,4 +94,4 @@
command: systemctl restart sshd
# Restart Docker Containers on Docker Update
- name: Restart Docker Containers
command: tmux new-session -d -s "start_services" "bash /root/scripts/start_services.sh"
command: bash "/root/scripts/start_services.sh"

View file

@ -5,4 +5,4 @@
become: false
tasks:
- name: Start Backups
command: tmux new-session -d -s "Borg Backups" "bash /root/scripts/backup.sh"
command: bash "/root/scripts/backup.sh"

View file

@ -5,4 +5,4 @@
become: false
tasks:
- name: Start All Services
command: tmux new-session -d -s "start_services" "bash /root/scripts/start_services.sh"
command: bash "/root/scripts/start_services.sh"

View file

@ -23,4 +23,4 @@
handlers:
# Restart Docker Containers on Docker Update
- name: Restart Docker Containers
command: tmux new-session -d -s "start_services" "bash /root/scripts/start_services.sh"
command: bash "/root/scripts/start_services.sh"