From e64ea0697212a0d9a11405dceff5b9f6eb96f632 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Tue, 29 Oct 2024 01:43:49 +0800 Subject: [PATCH] Update playbooks --- inventory/hosts | 4 ++-- roles/tasks/debian/setup.yml | 2 +- roles/tasks/debian/start_services.yml | 4 ++-- roles/tasks/debian/update.yml | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/inventory/hosts b/inventory/hosts index 7cc3811..70bd645 100644 --- a/inventory/hosts +++ b/inventory/hosts @@ -9,5 +9,5 @@ [openwrt] 10.0.10.1 -10.0.10.2 -10.0.10.3 \ No newline at end of file +# 10.0.10.2 +# 10.0.10.3 \ No newline at end of file diff --git a/roles/tasks/debian/setup.yml b/roles/tasks/debian/setup.yml index f65f1c7..bffbedb 100644 --- a/roles/tasks/debian/setup.yml +++ b/roles/tasks/debian/setup.yml @@ -90,4 +90,4 @@ command: systemctl restart sshd # Restart Docker Containers on Docker Update - name: Restart Docker Containers - command: bash /root/scripts/start_services.sh + command: tmux new-session -d -s "start_services" "bash /root/scripts/start_services.sh" diff --git a/roles/tasks/debian/start_services.yml b/roles/tasks/debian/start_services.yml index b08af52..4ff5276 100644 --- a/roles/tasks/debian/start_services.yml +++ b/roles/tasks/debian/start_services.yml @@ -4,5 +4,5 @@ # Runs on root user already become: false tasks: - - name: Start all services - command: bash /root/scripts/start_services.sh + - name: Start All Services + command: tmux new-session -d -s "start_services" "bash /root/scripts/start_services.sh" diff --git a/roles/tasks/debian/update.yml b/roles/tasks/debian/update.yml index ec81ef5..a09cc6a 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: bash /root/scripts/start_services.sh + command: tmux new-session -d -s "start_services" "bash /root/scripts/start_services.sh"