X-Git-Url: https://git.ralfj.de/ansible.git/blobdiff_plain/d4f185a99fd41f6927b3df2e80b1b24790242bd0..34cf4db2749cb9993eb062f6f4a32c1f4067a6b3:/upgrade.yml?ds=sidebyside diff --git a/upgrade.yml b/upgrade.yml index 31f6619..402de2a 100644 --- a/upgrade.yml +++ b/upgrade.yml @@ -1,10 +1,13 @@ - hosts: all + gather_facts: no tasks: + - name: autoremove + apt: autoremove=yes + - name: autoclean + apt: autoclean=yes - name: system upgrade - apt: - autoremove: yes - autoclean: yes - update_cache: yes - upgrade: dist + apt: update_cache=yes upgrade=dist environment: - NEEDRESTART_MODE: automatically + NEEDRESTART_MODE: a + register: upgrade +# - debug: msg={{ upgrade.msg }}