From 181ea5a24abfb7bb276ca7ee1d5d2a6aa39eeb64 Mon Sep 17 00:00:00 2001 From: Krumel Date: Wed, 19 May 2021 20:29:49 +0200 Subject: [PATCH] rpi patching zu ansible umgezogen --- playbooks/disabled_unattended-upgrades.yml | 7 +++++++ playbooks/reboot_pis.yml | 6 ------ playbooks/rpi_patches.yml | 10 ++++++++++ 3 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 playbooks/disabled_unattended-upgrades.yml delete mode 100644 playbooks/reboot_pis.yml create mode 100644 playbooks/rpi_patches.yml diff --git a/playbooks/disabled_unattended-upgrades.yml b/playbooks/disabled_unattended-upgrades.yml new file mode 100644 index 0000000..ed74255 --- /dev/null +++ b/playbooks/disabled_unattended-upgrades.yml @@ -0,0 +1,7 @@ +- hosts: rpi + become: yes + tasks: + - name: unattended-upgrades + apt: + state: absent + autoremove: yes \ No newline at end of file diff --git a/playbooks/reboot_pis.yml b/playbooks/reboot_pis.yml deleted file mode 100644 index 149e7be..0000000 --- a/playbooks/reboot_pis.yml +++ /dev/null @@ -1,6 +0,0 @@ -- hosts: rpi - tasks: - - name: Rebooting - become: yes - reboot: - reboot_timeout: 600 \ No newline at end of file diff --git a/playbooks/rpi_patches.yml b/playbooks/rpi_patches.yml new file mode 100644 index 0000000..e0f1283 --- /dev/null +++ b/playbooks/rpi_patches.yml @@ -0,0 +1,10 @@ +- hosts: rpi + become: yes + tasks: + - name: Apt Update + apt: + update_cache: yes + + - name: Apt Upgrade + apt: + upgrade: safe \ No newline at end of file