From 37617e3873106e0e7b32eb20588cd0ef1fb52d15 Mon Sep 17 00:00:00 2001 From: Olli Graf Date: Sat, 16 Sep 2023 09:50:56 +0200 Subject: [PATCH] =?UTF-8?q?main=20Task=20f=C3=BCr=20upgrade=20Rolle.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inventory.yml | 4 ++++ roles/upgrade/tasks/main.yml | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 roles/upgrade/tasks/main.yml diff --git a/inventory.yml b/inventory.yml index 4e6d616..01253db 100644 --- a/inventory.yml +++ b/inventory.yml @@ -5,5 +5,9 @@ stack4: kirk: brandine: +webs: + hosts: + web[00:09]: + vars: ansible_python_interpreter: /usr/bin/python3 diff --git a/roles/upgrade/tasks/main.yml b/roles/upgrade/tasks/main.yml new file mode 100644 index 0000000..4f23734 --- /dev/null +++ b/roles/upgrade/tasks/main.yml @@ -0,0 +1,7 @@ +- name: PIs aktualisieren + become: true + apt: + upgrade: dist + update_cache: yes + cache_valid_time: 120 + autoremove: yes