Skip to content

Commit c239874

Browse files
authored
Don't update_cache if airgapped (#430)
Signed-off-by: Derek Nola <derek.nola@suse.com>
1 parent e9dbf66 commit c239874

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

roles/prereq/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
when: ansible_distribution in ['Ubuntu']
1010
ansible.builtin.apt:
1111
name: policycoreutils # Used by install script to restore SELinux context
12-
update_cache: true
12+
update_cache: "{{ airgap_dir is not defined }}"
1313

1414
- name: Enable IPv4 forwarding
1515
ansible.posix.sysctl:

roles/raspberrypi/tasks/prereq/Ubuntu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
# Fixes issues in newer Ubuntu where VXLan isn't setup right.
1919
# See: https://github.com/k3s-io/k3s/issues/4234
2020
name: linux-modules-extra-raspi
21-
update_cache: true
21+
update_cache: "{{ airgap_dir is not defined }}"
2222
state: present
2323
when: "ansible_distribution_version is version('20.10', '>=') and ansible_distribution_version is version('24.04', '<')"

0 commit comments

Comments
 (0)