We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfe8e54 commit efb59c6Copy full SHA for efb59c6
ocne2/deploy_ocne_oci.yml
@@ -291,14 +291,24 @@
291
chdir: ~/
292
become: true
293
become_user: "{{ username }}"
294
- register: provision_cluster
+ async: 3600
295
+ poll: 0
296
+ register: cluster_sleeper
297
changed_when: provision_cluster.rc == 0
298
299
- name: Print cluster provision output
300
ansible.builtin.debug:
- var: provision_cluster
301
+ var: cluster_sleeper
302
when: debug_enabled
303
304
+ - name: Check on cluster provisioning
305
+ ansible.builtin.async_status:
306
+ jid: "{{ cluster_sleeper.ansible_job_id }}"
307
+ register: job_result
308
+ until: job_result.finished
309
+ retries: 360
310
+ delay: 10
311
+
312
- name: Add kubeconfig to .bashrc file
313
ansible.builtin.lineinfile:
314
path: ~/.bashrc
0 commit comments