summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--playbooks/common/openshift-cluster/node_docker_ca.yml4
2 files changed, 5 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index dcea26d60..48507c5d1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,3 +20,4 @@ multi_inventory.yaml
.tags*
ansible.cfg
*.retry
+.vscode/*
diff --git a/playbooks/common/openshift-cluster/node_docker_ca.yml b/playbooks/common/openshift-cluster/node_docker_ca.yml
index 6482c827b..a291aeeb7 100644
--- a/playbooks/common/openshift-cluster/node_docker_ca.yml
+++ b/playbooks/common/openshift-cluster/node_docker_ca.yml
@@ -86,12 +86,14 @@
-o jsonpath='{.status.availableReplicas}'
--config={{ openshift_hosted_kubeconfig }}
-n default
+ delegate_to: "{{ groups.oo_first_master.0}}"
register: l_docker_registry_available_replicas
until: l_docker_registry_available_replicas.stdout | default("0") != "0"
retries: 30
delay: 1
failed_when: false
changed_when: false
+ run_once: true
- name: Wait for registry-console deployment
command: >
@@ -99,12 +101,14 @@
-o jsonpath='{.status.availableReplicas}'
--config={{ openshift_hosted_kubeconfig }}
-n default
+ delegate_to: "{{ groups.oo_first_master.0 }}"
register: l_registry_console_available_replicas
until: l_registry_console_available_replicas.stdout | default("0") != "0"
retries: 30
delay: 1
failed_when: false
changed_when: false
+ run_once: true
- name: Restart docker
service: