Merge pull request #11769 from aveshagarwal/kubernetes-ansible-fixes

Fixes ansible syntax errors
This commit is contained in:
Vish Kannan 2015-07-23 17:04:48 -07:00
commit 2a10eabfdf
3 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@
- name: Open etcd client port with iptables
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:
- Save iptables rules
with_items:

View File

@ -6,10 +6,10 @@
- name: Open apiserver port with iptables
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:
- restart iptables
- name: Save iptables rules
command: service iptables save
when: kube-apiserver not in iptablesrules.stdout
when: "'kube-apiserver' not in iptablesrules.stdout"

View File

@ -9,10 +9,10 @@
- name: Open kubelet port with iptables
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:
- restart iptables
- name: Save iptables rules
command: service iptables save
when: kubelet not in iptablesrules.stdout
when: "'kubelet' not in iptablesrules.stdout"