From 79010ee462fd8ae0453386c18d2e267d627480a8 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Thu, 7 Nov 2024 18:54:42 +0800 Subject: [PATCH] Omit use of tmux in playbooks for more verbose error handling --- roles/tasks/debian/setup.yml | 3 ++- roles/tasks/debian/start_backups.yml | 2 +- roles/tasks/debian/start_services.yml | 2 +- roles/tasks/debian/update.yml | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/roles/tasks/debian/setup.yml b/roles/tasks/debian/setup.yml index ca22f98..e5c1039 100644 --- a/roles/tasks/debian/setup.yml +++ b/roles/tasks/debian/setup.yml @@ -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" diff --git a/roles/tasks/debian/start_backups.yml b/roles/tasks/debian/start_backups.yml index b227e26..aa03c5d 100644 --- a/roles/tasks/debian/start_backups.yml +++ b/roles/tasks/debian/start_backups.yml @@ -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" diff --git a/roles/tasks/debian/start_services.yml b/roles/tasks/debian/start_services.yml index 4ff5276..e056005 100644 --- a/roles/tasks/debian/start_services.yml +++ b/roles/tasks/debian/start_services.yml @@ -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" diff --git a/roles/tasks/debian/update.yml b/roles/tasks/debian/update.yml index a09cc6a..2f6a90b 100644 --- a/roles/tasks/debian/update.yml +++ b/roles/tasks/debian/update.yml @@ -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"