fix some issues with fedora 23 and dnf

This commit is contained in:
Smana
2016-02-03 21:26:49 +01:00
parent 98e2d6957a
commit b2d6626363
3 changed files with 3 additions and 5 deletions

View File

@@ -87,7 +87,7 @@
when: inventory_hostname == groups['kube-master'][0]
- name: Check if kube-system exists
command: kubectl get ns kube-system
command: "{{ bin_dir }}/kubectl get ns kube-system"
register: 'kubesystem'
changed_when: False
ignore_errors: yes
@@ -99,7 +99,7 @@
timeout: 60
- name: Create 'kube-system' namespace
command: kubectl create -f /etc/kubernetes/kube-system-ns.yml
command: "{{ bin_dir }}/kubectl create -f /etc/kubernetes/kube-system-ns.yml"
changed_when: False
when: kubesystem|failed and inventory_hostname == groups['kube-master'][0]