add update playbook
This commit is contained in:
parent
f76125a0f7
commit
6ef677a5c3
16
update.yml
Normal file
16
update.yml
Normal file
@ -0,0 +1,16 @@
|
||||
-
|
||||
|
||||
name: Update RaspberryPi's
|
||||
hosts: all
|
||||
become: yes # als root ausführen
|
||||
tasks:
|
||||
- name: Ansible Update Cache and Upgrade all Packages
|
||||
register: updatesys
|
||||
apt:
|
||||
name: "*"
|
||||
state: latest
|
||||
update_cache: yes
|
||||
|
||||
- name: Display the last line of the previous task to check the stats
|
||||
debug:
|
||||
msg: "{{updatesys.stdout_lines|last}}"
|
Loading…
Reference in New Issue
Block a user