mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2025-12-25 00:12:37 +01:00
Don't update_cache if airgapped (#430)
Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
when: ansible_distribution in ['Ubuntu']
|
when: ansible_distribution in ['Ubuntu']
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name: policycoreutils # Used by install script to restore SELinux context
|
name: policycoreutils # Used by install script to restore SELinux context
|
||||||
update_cache: true
|
update_cache: "{{ airgap_dir is not defined }}"
|
||||||
|
|
||||||
- name: Enable IPv4 forwarding
|
- name: Enable IPv4 forwarding
|
||||||
ansible.posix.sysctl:
|
ansible.posix.sysctl:
|
||||||
|
|||||||
@@ -18,6 +18,6 @@
|
|||||||
# Fixes issues in newer Ubuntu where VXLan isn't setup right.
|
# Fixes issues in newer Ubuntu where VXLan isn't setup right.
|
||||||
# See: https://github.com/k3s-io/k3s/issues/4234
|
# See: https://github.com/k3s-io/k3s/issues/4234
|
||||||
name: linux-modules-extra-raspi
|
name: linux-modules-extra-raspi
|
||||||
update_cache: true
|
update_cache: "{{ airgap_dir is not defined }}"
|
||||||
state: present
|
state: present
|
||||||
when: "ansible_distribution_version is version('20.10', '>=') and ansible_distribution_version is version('24.04', '<')"
|
when: "ansible_distribution_version is version('20.10', '>=') and ansible_distribution_version is version('24.04', '<')"
|
||||||
|
|||||||
Reference in New Issue
Block a user