mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2025-12-25 00:12:37 +01:00
Only use iptables alternative on older iptables versions
Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
@@ -41,17 +41,9 @@
|
||||
- raspberry_pi|default(false)
|
||||
- ansible_facts.os_family is match("Archlinux")
|
||||
|
||||
- name: Set detected_distribution_major_version
|
||||
ansible.builtin.set_fact:
|
||||
detected_distribution_major_version: "{{ ansible_facts.lsb.major_release }}"
|
||||
when: >
|
||||
( detected_distribution | default("") == "Raspbian" or
|
||||
detected_distribution | default("") == "Debian" )
|
||||
|
||||
- name: Execute OS related tasks on the Raspberry Pi
|
||||
ansible.builtin.include_tasks: "{{ item }}"
|
||||
with_first_found:
|
||||
- "prereq/{{ detected_distribution }}-{{ detected_distribution_major_version }}.yml"
|
||||
- "prereq/{{ detected_distribution }}.yml"
|
||||
- "prereq/{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml"
|
||||
- "prereq/{{ ansible_distribution }}.yml"
|
||||
|
||||
Reference in New Issue
Block a user