Compare commits

...

3 Commits

2 changed files with 10 additions and 2 deletions

View File

@ -0,0 +1 @@
apt_cache_max_age_second: '600'

View File

@ -1,7 +1,14 @@
- name: 'Upgrade the OS (apt-get dist-upgrade)'
- name: 'Update apt cache if older than {{apt_cache_max_age_second}}s'
ansible.builtin.apt:
update_cache: 'yes'
cache_valid_time: '{{ apt_cache_max_age_second }}'
- name: 'Upgrade the OS (apt-get dist-upgrade)'
ansible.builtin.apt:
upgrade: 'dist'
force_apt_get: 'yes'
@ -14,4 +21,4 @@
- name: 'Reboot if required'
when: '(reboot_required_file.stat.exists == true)'
ansible.builtin.reboot:
ansible.builtin.reboot: