Compare commits

...

2 Commits

Author SHA1 Message Date
3003dd730e Changes in gitignore 2025-08-24 11:48:12 +02:00
45e24d115a Revert "Some changes in Ansible configuration"
This reverts commit ea113ad443.
2025-08-24 11:44:27 +02:00
2 changed files with 3 additions and 13 deletions

View File

@@ -3,22 +3,12 @@
become: true become: true
tasks: tasks:
- name: Update apt cache - name: Update cache
ansible.builtin.apt: ansible.builtin.apt:
update_cache: true update_cache: true
register: cache_updated register: cache_updated
- name: Upgrade all packages - name: Upgrade packages if something is changed
ansible.builtin.apt: ansible.builtin.apt:
upgrade: "yes" upgrade: "yes"
when: cache_updated.changed or cache_updated.rc == 0 when: cache_updated.changed
- 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

View File