From 367c87ab9d498f16af70680b45e668d9f869d447 Mon Sep 17 00:00:00 2001 From: staffadmin Date: Tue, 27 Aug 2024 23:27:16 +0200 Subject: [PATCH] [add update playbook] --- ivre.yml | 4 ++-- update.yml | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ivre.yml b/ivre.yml index b6c9dd4..4735f24 100644 --- a/ivre.yml +++ b/ivre.yml @@ -7,9 +7,9 @@ processes_nmap: 5 # source: tower target_networks: - - 163.172.16.0/20 + # - 163.172.16.0/20 - 163.172.31.0/20 - - 163.172.48.0/20 + # - 163.172.48.0/20 # 163.172.0.0/20 # 163.172.16.0/20 # 163.172.31.0/20 diff --git a/update.yml b/update.yml index b661581..9854790 100644 --- a/update.yml +++ b/update.yml @@ -18,10 +18,16 @@ - apt: update_cache: yes become: true + when: + - inventory_hostname != 'scaleway' + - apt: upgrade: full become: true + when: + - inventory_hostname != 'scaleway' + - community.docker.docker_compose_v2: project_src: /opt/dockerapps/ @@ -36,7 +42,6 @@ when: - inventory_hostname != 'scaleway' - - reboot: when: - reboot_needed.stdout == "reboot_needed"