Skip to content

Commit 9284f19

Browse files
committed
playbooks/setup_vm_part1.yml: removed 24 hr check on apt update, can be buggy
1 parent d9e0e57 commit 9284f19

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

automation/vm-ansible-setup/playbooks/setup_vm_part1.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,6 @@
1616

1717
- name: Install apt packages
1818
block:
19-
- name: Check last apt update time
20-
stat:
21-
path: /var/lib/apt/periodic/update-success-stamp
22-
register: apt_stamp
23-
tags: apt
24-
25-
- name: Update apt package list if update >24 hours ago
26-
apt:
27-
update_cache: true
28-
become: true
29-
when: apt_stamp.stat.exists == false or (ansible_date_time.epoch | int - apt_stamp.stat.mtime | int) > 86400
30-
tags: apt
31-
3219
- name: Install required apt packages
3320
apt:
3421
name:

0 commit comments

Comments
 (0)