Created
October 6, 2016 17:27
-
-
Save v1k0d3n/8ba72c94e8b499804a94ce78a9820778 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PLAY [all] ********************************************************************* | |
TASK [setup] ******************************************************************* | |
ok: [kube2] | |
ok: [kube3] | |
ok: [kube1] | |
TASK [kube-join : collect api endpoints from kubernetes masters] *************** | |
changed: [kube1 -> None] => (item=kube1) | |
changed: [kube2 -> None] => (item=kube1) | |
changed: [kube3 -> None] => (item=kube1) | |
TASK [kube-join : setting fact for master api endpoints] *********************** | |
fatal: [kube1]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'dict object' has no attribute 'stdout'\n\nThe error appears to have been in '/Users/bj916b/Projects/github/v1k0d3n/halcyon-kubernetes/kube-deploy/roles/kube-join/tasks/main.yml': line 25, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: setting fact for master api endpoints\n ^ here\n"} | |
fatal: [kube2]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'dict object' has no attribute 'stdout'\n\nThe error appears to have been in '/Users/bj916b/Projects/github/v1k0d3n/halcyon-kubernetes/kube-deploy/roles/kube-join/tasks/main.yml': line 25, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: setting fact for master api endpoints\n ^ here\n"} | |
fatal: [kube3]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'dict object' has no attribute 'stdout'\n\nThe error appears to have been in '/Users/bj916b/Projects/github/v1k0d3n/halcyon-kubernetes/kube-deploy/roles/kube-join/tasks/main.yml': line 25, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: setting fact for master api endpoints\n ^ here\n"} | |
NO MORE HOSTS LEFT ************************************************************* | |
to retry, use: --limit @/Users/bj916b/Projects/github/v1k0d3n/halcyon-kubernetes/kube-deploy/kube-deploy.retry | |
PLAY RECAP ********************************************************************* | |
kube1 : ok=13 changed=3 unreachable=0 failed=1 | |
kube2 : ok=8 changed=1 unreachable=0 failed=1 | |
kube3 : ok=8 changed=1 unreachable=0 failed=1 | |
Ansible failed to complete successfully. Any error output should be | |
visible above. Please fix these errors and try again. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: collect api endpoints from kubernetes masters | |
shell: ip addr show {{ public_iface }} | grep "inet\b" | awk '{print $2}' | cut -d/ -f1 | |
delegate_to: "{{ item }}" | |
delegate_facts: true | |
with_items: "{{ groups['kube-masters'] }}" | |
register: kube_api_endpoint_fact | |
# when: inventory_hostname in groups['kube-workers'] | |
- name: setting fact for master api endpoints | |
set_fact: | |
kube_api_endpoint: "{{ kube_api_endpoint_fact.stdout }}" | |
#- name: collect api endpoint from masters | |
# shell: ip addr show {{ public_iface }} | grep "inet\b" | awk '{print $2}' | cut -d/ -f1 | |
# register: kube_api_endpoint | |
# when: inventory_hostname in groups['kube-masters'] | |
- name: kubernetes master api endpoints | |
debug: var=kube_api_endpoint | |
# when: inventory_hostname in groups['kube-workers'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
at set_fact.yml:8::