ansible/roles/osbs-namespace/operations/tasks/enable-node.yml
Clement Verna fb240ea470 Update osbs-namespace to latest upstream.
This is an update of the ansible-role-osbs-namespace role
to the latest upstream available + PR16 not yet merged.

https://github.com/projectatomic/ansible-role-osbs-namespace
Signed-off-by: Clement Verna <cverna@tutanota.com>
2018-02-19 14:55:32 +01:00

15 lines
488 B
YAML

---
- name: Mark node as schedulable
command: >
oadm manage-node {{ inventory_hostname }} --schedulable=true
- name: Wait for node to be Ready
register: node_status
shell: >
oc get node {{ inventory_hostname }} --no-headers=true |
awk '{print $2}'
until: "'Ready' in node_status.stdout_lines"
changed_when: false # read-only command
environment: "{{ osbs_environment }}"
retries: "{{ osbs_wait_node_ready_retries }}"
delay: "{{ osbs_wait_node_ready_delay }}"