mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Fixed ansible syntax error.
This commit is contained in:
parent
dfe1eb9b96
commit
e507dbe7b8
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
- name: Open etcd client port with iptables
|
- name: Open etcd client port with iptables
|
||||||
command: /sbin/iptables -I INPUT 1 -p tcp --dport {{ item }} -j ACCEPT -m comment --comment "etcd"
|
command: /sbin/iptables -I INPUT 1 -p tcp --dport {{ item }} -j ACCEPT -m comment --comment "etcd"
|
||||||
when: etcd not in iptablesrules.stdout
|
when: "'etcd' not in iptablesrules.stdout"
|
||||||
notify:
|
notify:
|
||||||
- Save iptables rules
|
- Save iptables rules
|
||||||
with_items:
|
with_items:
|
||||||
|
@ -6,10 +6,10 @@
|
|||||||
|
|
||||||
- name: Open apiserver port with iptables
|
- name: Open apiserver port with iptables
|
||||||
command: /sbin/iptables -I INPUT 1 -p tcp --dport 443 -j ACCEPT -m comment --comment "kube-apiserver"
|
command: /sbin/iptables -I INPUT 1 -p tcp --dport 443 -j ACCEPT -m comment --comment "kube-apiserver"
|
||||||
when: kube-apiserver not in iptablesrules.stdout
|
when: "'kube-apiserver' not in iptablesrules.stdout"
|
||||||
notify:
|
notify:
|
||||||
- restart iptables
|
- restart iptables
|
||||||
|
|
||||||
- name: Save iptables rules
|
- name: Save iptables rules
|
||||||
command: service iptables save
|
command: service iptables save
|
||||||
when: kube-apiserver not in iptablesrules.stdout
|
when: "'kube-apiserver' not in iptablesrules.stdout"
|
||||||
|
@ -9,10 +9,10 @@
|
|||||||
|
|
||||||
- name: Open kubelet port with iptables
|
- name: Open kubelet port with iptables
|
||||||
command: /sbin/iptables -I INPUT 1 -p tcp --dport 10250 -j ACCEPT -m comment --comment "kubelet"
|
command: /sbin/iptables -I INPUT 1 -p tcp --dport 10250 -j ACCEPT -m comment --comment "kubelet"
|
||||||
when: kubelet not in iptablesrules.stdout
|
when: "'kubelet' not in iptablesrules.stdout"
|
||||||
notify:
|
notify:
|
||||||
- restart iptables
|
- restart iptables
|
||||||
|
|
||||||
- name: Save iptables rules
|
- name: Save iptables rules
|
||||||
command: service iptables save
|
command: service iptables save
|
||||||
when: kubelet not in iptablesrules.stdout
|
when: "'kubelet' not in iptablesrules.stdout"
|
||||||
|
Loading…
Reference in New Issue
Block a user