X-Git-Url: https://git.ralfj.de/ansible.git/blobdiff_plain/5df124769817a210fc836f518f7326a11ac61adc..bb0f118049b0f9e85ff03d74eb81ab7d71bf97aa:/upgrade.yml?ds=inline diff --git a/upgrade.yml b/upgrade.yml index 5da0759..402de2a 100644 --- a/upgrade.yml +++ b/upgrade.yml @@ -1,8 +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: a + register: upgrade +# - debug: msg={{ upgrade.msg }}