Update apt as first step in playbook
This commit is contained in:
parent
511de6edfd
commit
7a42119d1a
1 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue