mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-14 17:50:06 -03:30
Initial AlmaLinux support (#7538)
* AlmaLinux: ansible>2.9.19 is needed to know about AlmaLinux * AlmaLinux: identify as a centos derrivative * AlmaLinux: add AlmaLinux to checks for CentOS * Use ansible_os_family to compare family and not distribution
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
mode: "0755"
|
||||
with_fileglob:
|
||||
- files/*
|
||||
when: ansible_os_family in ["CentOS","RedHat"]
|
||||
when: ansible_os_family == "RedHat"
|
||||
|
||||
- name: Macvlan | Install post-up script on centos
|
||||
copy:
|
||||
@@ -44,7 +44,7 @@
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0755"
|
||||
when: ansible_os_family in ["CentOS","RedHat"] and enable_nat_default_gateway
|
||||
when: ansible_os_family == "RedHat" and enable_nat_default_gateway
|
||||
|
||||
- name: Macvlan | Install network gateway interface on centos
|
||||
template:
|
||||
@@ -55,7 +55,7 @@
|
||||
- {src: centos-routes-macvlan.cfg, dst: route-mac0 }
|
||||
- {src: centos-postup-macvlan.cfg, dst: post-up-mac0 }
|
||||
notify: Macvlan | restart network
|
||||
when: ansible_os_family in ["CentOS","RedHat"]
|
||||
when: ansible_os_family == "RedHat"
|
||||
|
||||
- name: Macvlan | Install service nat via gateway on Flatcar Container Linux
|
||||
template:
|
||||
|
||||
Reference in New Issue
Block a user