From 46250f9a9962bfd07aa95f96033747ddf51615a0 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Mon, 28 Oct 2024 18:32:23 +0800 Subject: [PATCH] Update playbooks --- roles/tasks/debian/restart_services.yml | 8 ++++++++ roles/tasks/debian/update.yml | 1 - 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 roles/tasks/debian/restart_services.yml diff --git a/roles/tasks/debian/restart_services.yml b/roles/tasks/debian/restart_services.yml new file mode 100644 index 0000000..1315f38 --- /dev/null +++ b/roles/tasks/debian/restart_services.yml @@ -0,0 +1,8 @@ +--- +- hosts: + - debian + # Runs on root user already + become: false + tasks: + - name: Restart all services + command: bash /root/scripts/start_services.sh diff --git a/roles/tasks/debian/update.yml b/roles/tasks/debian/update.yml index 4223aad..2fe30f2 100644 --- a/roles/tasks/debian/update.yml +++ b/roles/tasks/debian/update.yml @@ -9,6 +9,5 @@ update_cache: true autoremove: true state: latest - when: ansible_distribution in ["Debian"] - name: Update ACME command: /root/.acme.sh/acme.sh --upgrade --auto-upgrade