Revert "Some changes in Ansible configuration"
This reverts commit fab3c3ae5c.
This commit is contained in:
@@ -3,22 +3,12 @@
|
||||
become: true
|
||||
|
||||
tasks:
|
||||
- name: Update apt cache
|
||||
- name: Update cache
|
||||
ansible.builtin.apt:
|
||||
update_cache: true
|
||||
register: cache_updated
|
||||
|
||||
- name: Upgrade all packages
|
||||
- name: Upgrade packages if something is changed
|
||||
ansible.builtin.apt:
|
||||
upgrade: "yes"
|
||||
when: cache_updated.changed or cache_updated.rc == 0
|
||||
|
||||
- name: Autoremove unnecessary packages
|
||||
ansible.builtin.apt:
|
||||
autoremove: true
|
||||
when: cache_updated.changed or cache_updated.rc == 0
|
||||
|
||||
- name: Autoclean apt cache
|
||||
ansible.builtin.apt:
|
||||
autoclean: true
|
||||
when: cache_updated.changed or cache_updated.rc == 0
|
||||
when: cache_updated.changed
|
||||
Reference in New Issue
Block a user