inventory hostname for cordoning/uncordoning

This commit is contained in:
Spencer Smith
2017-05-26 17:47:25 -04:00
parent 11c774b04f
commit 56b86bbfca
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
---
- name: Uncordon node
command: "{{ bin_dir }}/kubectl uncordon {{ ansible_hostname }}"
command: "{{ bin_dir }}/kubectl uncordon {{ inventory_hostname }}"
delegate_to: "{{ groups['kube-master'][0] }}"
when: needs_cordoning|default(false)