From 7a42119d1a42445a3d5eabf6ae909555d2e40b8d Mon Sep 17 00:00:00 2001 From: Thomas Kleinendorst Date: Tue, 9 Apr 2024 17:12:27 +0200 Subject: [PATCH] Update apt as first step in playbook --- playbook.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/playbook.yml b/playbook.yml index 3e0fbf8..d818bfd 100644 --- a/playbook.yml +++ b/playbook.yml @@ -1,6 +1,10 @@ --- - name: Install raspberry pi + become: true hosts: raspberry_pis tasks: - - name: Example from an Ansible Playbook - ansible.builtin.ping: + # Disable warning on updating latest packages, it should be safe enough for this system. + - name: Update all packages to their latest version # noqa: package-latest + ansible.builtin.apt: + name: "*" + state: latest