Update apt as first step in playbook

This commit is contained in:
Thomas Kleinendorst 2024-04-09 17:12:27 +02:00
parent 511de6edfd
commit 7a42119d1a

View file

@ -1,6 +1,10 @@
--- ---
- name: Install raspberry pi - name: Install raspberry pi
become: true
hosts: raspberry_pis hosts: raspberry_pis
tasks: tasks:
- name: Example from an Ansible Playbook # Disable warning on updating latest packages, it should be safe enough for this system.
ansible.builtin.ping: - name: Update all packages to their latest version # noqa: package-latest
ansible.builtin.apt:
name: "*"
state: latest