mirror of
https://github.com/geerlingguy/ansible-role-kubernetes.git
synced 2025-08-01 13:49:01 +02:00
Use condition
This commit is contained in:
parent
bb9ddb6e7a
commit
da0de4ce91
@ -7,12 +7,12 @@
|
|||||||
ansible_distribution != 'Debian'
|
ansible_distribution != 'Debian'
|
||||||
or ansible_distribution_major_version | int < 10
|
or ansible_distribution_major_version | int < 10
|
||||||
|
|
||||||
# - name: Ensure module br_netfilter is loaded
|
- name: Ensure module br_netfilter is loaded
|
||||||
# modprobe:
|
modprobe:
|
||||||
# name: br_netfilter
|
name: br_netfilter
|
||||||
# state: present
|
state: present
|
||||||
# persistent: present
|
persistent: present
|
||||||
# when: not ansible_virtualization_type == "docker"
|
when: not ansible_virtualization_type == "docker"
|
||||||
|
|
||||||
# See: https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/#letting-iptables-see-bridged-traffic
|
# See: https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/#letting-iptables-see-bridged-traffic
|
||||||
- name: Let iptables see bridged traffic.
|
- name: Let iptables see bridged traffic.
|
||||||
@ -24,5 +24,6 @@
|
|||||||
- net.bridge.bridge-nf-call-iptables
|
- net.bridge.bridge-nf-call-iptables
|
||||||
- net.bridge.bridge-nf-call-ip6tables
|
- net.bridge.bridge-nf-call-ip6tables
|
||||||
when: >
|
when: >
|
||||||
ansible_distribution != 'Debian'
|
( ansible_distribution != 'Debian'
|
||||||
or ansible_distribution_major_version | int < 10
|
or ansible_distribution_major_version | int < 10
|
||||||
|
) and not ansible_virtualization_type == "docker"
|
||||||
|
Loading…
Reference in New Issue
Block a user