fix apt get update & upgrade
This commit is contained in:
parent
6ef677a5c3
commit
9c52bd8be8
11
update.yml
11
update.yml
@ -4,12 +4,11 @@
|
|||||||
hosts: all
|
hosts: all
|
||||||
become: yes # als root ausführen
|
become: yes # als root ausführen
|
||||||
tasks:
|
tasks:
|
||||||
- name: Ansible Update Cache and Upgrade all Packages
|
- name: Update apt-get repo and cache
|
||||||
register: updatesys
|
apt: update_cache=yes force_apt_get=yes cache_valid_time=3600
|
||||||
apt:
|
|
||||||
name: "*"
|
- name: Upgrade all apt packages
|
||||||
state: latest
|
apt: upgrade=dist force_apt_get=yes
|
||||||
update_cache: yes
|
|
||||||
|
|
||||||
- name: Display the last line of the previous task to check the stats
|
- name: Display the last line of the previous task to check the stats
|
||||||
debug:
|
debug:
|
||||||
|
Loading…
Reference in New Issue
Block a user