Skip to content

Commit bc2c52e

Browse files
authored
Merge pull request #121 from dejo1307/minor_changes_and_fixes
Minor changes and fixes
2 parents 15af9dd + 5702ce0 commit bc2c52e

File tree

26 files changed

+126
-43
lines changed

26 files changed

+126
-43
lines changed

playbooks/hcl/cleanup.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Cleanup
22
---
3+
- name: Gather facts
4+
hosts: nfs_servers
5+
tasks: []
6+
37
- name: Cleanup stuff
48
hosts: k8s_masters, k8s_workers
59
become: true

playbooks/hcl/cleanup/cleanup-k8s.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Cleanup
22
---
3+
- name: Gather facts
4+
hosts: nfs_servers
5+
tasks: []
6+
37
- name: Cleanup Kubernetes
48
hosts: k8s_masters, k8s_workers
59
become: true

playbooks/third_party/was-nd-restart.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,10 @@
2525
roles:
2626
- roles/third_party/ibm/wasnd/was-dmgr-stop-cluster
2727
- roles/third_party/ibm/wasnd/was-dmgr-start-cluster
28+
29+
- name: Restart Docs Clusters
30+
hosts: dmgr
31+
become: true
32+
roles:
33+
- roles/hcl/docs/stop_docs_clusters
34+
- roles/hcl/docs/start_docs_clusters

roles/hcl/cleanup/tasks/main.yml

Lines changed: 59 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,79 @@
1-
21
- name: Reset Kubernetes
32
command: kubeadm reset -f
43
ignore_errors: true
54
tags: k8s_cleanup
65
when:
76
- __force_destroy_kubernetes == true
87

8+
- name: Create local mount point "{{ __nfs_master_files_mount }}"
9+
file:
10+
path: "{{ __nfs_master_files_mount }}"
11+
state: directory
12+
mode: '0755'
13+
tags: k8s_cleanup
14+
ignore_errors: true
15+
when:
16+
- inventory_hostname == groups['k8s_masters'][0]
17+
- __force_destroy_kubernetes == true
18+
19+
- name: Mount "{{ __nfs_master_files_dest }}" to "{{ __nfs_master_files_mount }}" first
20+
mount:
21+
fstype: nfs
22+
opts: defaults
23+
dump: 0
24+
passno: 0
25+
state: mounted
26+
src: "{{ __nfs_master_files_dest }}"
27+
path: "{{ __nfs_master_files_mount }}"
28+
tags: k8s_cleanup
29+
when:
30+
- inventory_hostname == groups['k8s_masters'][0]
31+
- __force_destroy_kubernetes == true
32+
933
- name: Cleanup K8S
1034
command: sudo yum remove kubeadm kubectl kubelet kubernetes-cni kube* -y
1135
ignore_errors: true
1236
tags: k8s_cleanup
1337
when:
1438
- __force_destroy_kubernetes == true
1539

40+
- name: Find kubectl
41+
shell: "whereis kubectl | awk '{ print $2 }'"
42+
register: kubectl_loc
43+
ignore_errors: true
44+
tags: k8s_cleanup
45+
when:
46+
- __force_destroy_kubernetes == true
47+
48+
- name: Delete kubectl if exists {{ kubectl_loc.stdout }}
49+
file:
50+
path: "{{ kubectl_loc.stdout }}"
51+
state: absent
52+
ignore_errors: true
53+
tags: k8s_cleanup
54+
when:
55+
- __force_destroy_kubernetes == true and kubectl_loc.rc == 0
56+
57+
- name: Cleanup CP NFS data
58+
shell: "rm -rf {{ __nfs_master_files_mount }}/*/*"
59+
ignore_errors: true
60+
tags: k8s_cleanup
61+
when:
62+
- inventory_hostname == groups['k8s_masters'][0]
63+
- __force_destroy_kubernetes == true
64+
1665
- name: Unmount /mnt/customizations
1766
command: umount -f /mnt/customizations
1867
tags: k8s_cleanup
19-
when:
68+
when:
69+
- inventory_hostname == groups['k8s_masters'][0]
70+
- __force_destroy_kubernetes == true
71+
ignore_errors: true
72+
73+
- name: Unmount {{ __nfs_master_files_mount }}
74+
command: umount -f {{ __nfs_master_files_mount }}
75+
tags: k8s_cleanup
76+
when:
2077
- inventory_hostname == groups['k8s_masters'][0]
2178
- __force_destroy_kubernetes == true
2279
ignore_errors: true

roles/hcl/cleanup/vars/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@ __force_destroy_db2: "{{ force_destroy_db2 | default(false)
44
__force_destroy_ihs: "{{ force_destroy_ihs | default(false) }}"
55
__force_destroy_websphere: "{{ force_destroy_websphere | default(false) }}"
66
__force_destroy_oracle: "{{ force_destroy_oracle | default(false) }}"
7+
8+
__nfsMasterAddress: "{{ nfsMasterAddress | default( hostvars[groups['nfs_servers'][0]]['ansible_default_ipv4']['address'] ) }}"
9+
__persistentVolumePath: "{{ persistentVolumePath | default('pv-connections') }}"
10+
__nfs_master_files_dest: "{{ __nfsMasterAddress }}:/{{ __persistentVolumePath }}"
11+
__nfs_master_files_mount: "/mnt/pv-connections"

roles/hcl/component-pack/tasks/enable_es_metrics.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
become: false
6666

6767
- name: Copy {{ __es_certs_dir_temp }}.zip to {{ dmgr_hostname }}
68-
copy:
68+
copy:
6969
src: "{{ __es_certs_dir_temp }}.zip"
7070
dest: "{{ __es_certs_dir_temp }}.zip"
7171
delegate_to: "{{ dmgr_hostname }}"

roles/hcl/component-pack/tasks/setup_community_ingress.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -105,63 +105,63 @@
105105
become_user: "{{ __sudo_user }}"
106106

107107
- name: Install ingress-nginx - if Vanilla Kubernetes if Prom-Operator already Deployed helm-2
108-
shell: helm upgrade cnx-ingress -i {{ __helm2_ingress_chart }} --namespace {{ __default_namespace }} --set {{ __communityingress_env_vanilla }} -f cnx-ingress-values.yml
108+
shell: helm upgrade cnx-ingress -i {{ __helm2_ingress_chart }} --namespace {{ __default_namespace }} --set {{ __communityingress_env_vanilla }} -f cnx-ingress-values.yml --wait
109109
when:
110110
- helm_version.stdout == "v2"
111111
- prom_operator_already_provisioned_helm2.rc == 0
112112
- ("eks.amazonaws.com" not in cluster_flavor_check.stdout) and ("api." not in cluster_flavor_check.stdout)
113113
become_user: "{{ __sudo_user }}"
114114

115115
- name: Install ingress-nginx - if Vanilla Kubernetes if Prom-Operator already Deployed helm-3
116-
shell: helm upgrade cnx-ingress -i ingress-nginx/ingress-nginx --namespace {{ __default_namespace }} --set {{ __communityingress_env_vanilla }} -f cnx-ingress-values.yml
116+
shell: helm upgrade cnx-ingress -i ingress-nginx/ingress-nginx --namespace {{ __default_namespace }} --set {{ __communityingress_env_vanilla }} -f cnx-ingress-values.yml --wait
117117
when:
118118
- helm_version.stdout != "v2"
119119
- prom_operator_already_provisioned_helm3.rc == 0
120120
- ("eks.amazonaws.com" not in cluster_flavor_check.stdout) and ("api." not in cluster_flavor_check.stdout)
121121
become_user: "{{ __sudo_user }}"
122122

123123
- name: Install ingress-nginx - if Vanilla Kubernetes if Prom-Operator Not already Deployed helm-2
124-
shell: helm upgrade cnx-ingress -i {{ __helm2_ingress_chart }} --namespace {{ __default_namespace }} --set {{ __communitying_ind_env_vanilla }}
124+
shell: helm upgrade cnx-ingress -i {{ __helm2_ingress_chart }} --namespace {{ __default_namespace }} --set {{ __communitying_ind_env_vanilla }} --wait
125125
when:
126126
- helm_version.stdout == "v2"
127127
- prom_operator_already_provisioned_helm2.rc != 0
128128
- ("eks.amazonaws.com" not in cluster_flavor_check.stdout) and ("api." not in cluster_flavor_check.stdout)
129129
become_user: "{{ __sudo_user }}"
130130

131131
- name: Install ingress-nginx - if Vanilla Kubernetes if Prom-Operator Not already Deployed helm-3
132-
shell: helm upgrade cnx-ingress -i ingress-nginx/ingress-nginx --namespace {{ __default_namespace }} --set {{ __communitying_ind_env_vanilla }}
132+
shell: helm upgrade cnx-ingress -i ingress-nginx/ingress-nginx --namespace {{ __default_namespace }} --set {{ __communitying_ind_env_vanilla }} --wait
133133
when:
134134
- helm_version.stdout != "v2"
135135
- prom_operator_already_provisioned_helm3.rc != 0
136136
- ("eks.amazonaws.com" not in cluster_flavor_check.stdout) and ("api." not in cluster_flavor_check.stdout)
137137
become_user: "{{ __sudo_user }}"
138138

139139
- name: Install ingress-nginx - if EKS/OpenShift if Prom-Operator already Deployed helm-2
140-
shell: helm upgrade cnx-ingress -i {{ __helm2_ingress_chart }} --namespace {{ __default_namespace }} --set {{ __communityingress_env_eks_os }} -f cnx-ingress-values.yml
140+
shell: helm upgrade cnx-ingress -i {{ __helm2_ingress_chart }} --namespace {{ __default_namespace }} --set {{ __communityingress_env_eks_os }} -f cnx-ingress-values.yml --wait
141141
when:
142142
- helm_version.stdout == "v2"
143143
- ("eks.amazonaws.com" in cluster_flavor_check.stdout) or ("api." in cluster_flavor_check.stdout)
144144
- prom_operator_already_provisioned_helm2.rc == 0
145145
become_user: "{{ __sudo_user }}"
146146

147147
- name: Install ingress-nginx - if EKS/OpenShift if Prom-Operator already Deployed helm-3
148-
shell: helm upgrade cnx-ingress -i ingress-nginx/ingress-nginx --namespace {{ __default_namespace }} --set {{ __communityingress_env_eks_os }} -f cnx-ingress-values.yml
148+
shell: helm upgrade cnx-ingress -i ingress-nginx/ingress-nginx --namespace {{ __default_namespace }} --set {{ __communityingress_env_eks_os }} -f cnx-ingress-values.yml --wait
149149
when:
150150
- helm_version.stdout != "v2"
151151
- ("eks.amazonaws.com" in cluster_flavor_check.stdout) or ("api." in cluster_flavor_check.stdout)
152152
- prom_operator_already_provisioned_helm3.rc == 0
153153
become_user: "{{ __sudo_user }}"
154154

155155
- name: Install ingress-nginx - if EKS/OpenShift if Prom-Operator Not already Deployed helm-2
156-
shell: helm upgrade cnx-ingress -i {{ __helm2_ingress_chart }} --namespace {{ __default_namespace }} --set {{ __communitying_ind_env_eks_os }}
156+
shell: helm upgrade cnx-ingress -i {{ __helm2_ingress_chart }} --namespace {{ __default_namespace }} --set {{ __communitying_ind_env_eks_os }} --wait
157157
when:
158158
- helm_version.stdout == "v2"
159159
- ("eks.amazonaws.com" in cluster_flavor_check.stdout) or ("api." in cluster_flavor_check.stdout)
160160
- prom_operator_already_provisioned_helm2.rc != 0
161161
become_user: "{{ __sudo_user }}"
162162

163163
- name: Install ingress-nginx - if EKS/OpenShift if Prom-Operator Not already Deployed helm-3
164-
shell: helm upgrade cnx-ingress -i ingress-nginx/ingress-nginx --namespace {{ __default_namespace }} --set {{ __communitying_ind_env_eks_os }}
164+
shell: helm upgrade cnx-ingress -i ingress-nginx/ingress-nginx --namespace {{ __default_namespace }} --set {{ __communitying_ind_env_eks_os }} --wait
165165
when:
166166
- helm_version.stdout != "v2"
167167
- ("eks.amazonaws.com" in cluster_flavor_check.stdout) or ("api." in cluster_flavor_check.stdout)
@@ -190,9 +190,5 @@
190190
become_user: "{{ __sudo_user }}"
191191

192192
- name: Setup cnx-ingress Ingress Rule Only
193-
command: "helm upgrade cnx-ingress-rule {{ cnxingress_tgz.files[0].path }} -i -f {{ __cnxingressonly_env }} --namespace {{ __default_namespace }}"
193+
command: "helm upgrade cnx-ingress-rule {{ cnxingress_tgz.files[0].path }} -i -f {{ __cnxingressonly_env }} --namespace {{ __default_namespace }} --wait"
194194
become_user: "{{ __sudo_user }}"
195-
196-
- name: Give it some space...
197-
pause:
198-
seconds: 5

roles/hcl/component-pack/tasks/setup_customizer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
become_user: "{{ __sudo_user }}"
6969

7070
- name: Setup customizer
71-
command: "helm upgrade mw-proxy {{ customizer_tgz.files[0].path }} -i -f {{ __customizer_env }} --namespace {{ __default_namespace }}"
71+
command: "helm upgrade mw-proxy {{ customizer_tgz.files[0].path }} -i -f {{ __customizer_env }} --namespace {{ __default_namespace }} --wait"
7272
become_user: "{{ __sudo_user }}"
7373

7474
- name: Wait for mw-proxy to come up

roles/hcl/component-pack/tasks/setup_elasticsearch.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,9 @@
1616
become_user: "{{ __sudo_user }}"
1717

1818
- name: Setup elasticsearch
19-
command: "helm upgrade elasticsearch {{ elasticsearch_tgz.files[0].path }} -i -f {{ __elasticsearch_env }} --namespace {{ __default_namespace }}"
19+
command: "helm upgrade elasticsearch {{ elasticsearch_tgz.files[0].path }} -i -f {{ __elasticsearch_env }} --namespace {{ __default_namespace }} --wait"
2020
become_user: "{{ __sudo_user }}"
2121

22-
- name: Give it some space...
23-
pause:
24-
seconds: 300
25-
2622
- name: Check if es-master is up and running
2723
shell: kubectl get pods -n {{ __default_namespace }} | grep -i es-master | grep -i Running
2824
when: not __skip_pod_checks

roles/hcl/component-pack/tasks/setup_elasticsearch7.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
become_user: "{{ __sudo_user }}"
1717

1818
- name: Setup elasticsearch7
19-
command: "helm upgrade elasticsearch7 {{ elasticsearch7_tgz.files[0].path }} -i -f {{ __elasticsearch_env }} --namespace {{ __default_namespace }}"
19+
command: "helm upgrade elasticsearch7 {{ elasticsearch7_tgz.files[0].path }} -i -f {{ __elasticsearch_env }} --namespace {{ __default_namespace }} --wait"
2020
become_user: "{{ __sudo_user }}"
2121

2222
- name: Wait for es-data-7-0 pod to become ready

roles/hcl/component-pack/tasks/setup_elasticstack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
become_user: "{{ __sudo_user }}"
1313

1414
- name: Setup elasticstack
15-
command: "helm upgrade elasticstack {{ elasticstack_tgz.files[0].path }} -i -f {{ __elasticstack_env }} --namespace {{ __default_namespace }}"
15+
command: "helm upgrade elasticstack {{ elasticstack_tgz.files[0].path }} -i -f {{ __elasticstack_env }} --namespace {{ __default_namespace }} --wait"
1616
become_user: "{{ __sudo_user }}"
1717

1818
- name: Wait for Kibana, Filebeat and Logstash to come up

roles/hcl/component-pack/tasks/setup_elasticstack7.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
become_user: "{{ __sudo_user }}"
1313

1414
- name: Setup elasticstack7
15-
command: "helm upgrade elasticstack-7 {{ elasticstack7_tgz.files[0].path }} -i -f {{ __elasticstack7_env }} --namespace {{ __default_namespace }}"
15+
command: "helm upgrade elasticstack-7 {{ elasticstack7_tgz.files[0].path }} -i -f {{ __elasticstack7_env }} --namespace {{ __default_namespace }} --wait"
1616
become_user: "{{ __sudo_user }}"
1717

1818
- name: Wait for Kibana, Filebeat and Logstash to come up

roles/hcl/component-pack/tasks/setup_infrastructure.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
become_user: "{{ __sudo_user }}"
1717

1818
- name: Setup infrastructure
19-
command: "helm upgrade infrastructure {{ infrastructure_tgz.files[0].path }} -i -f {{ __infrastructure_env }} --namespace {{ __default_namespace }}"
19+
command: "helm upgrade infrastructure {{ infrastructure_tgz.files[0].path }} -i -f {{ __infrastructure_env }} --namespace {{ __default_namespace }} --wait"
2020
become_user: "{{ __sudo_user }}"
2121

2222
- name: Wait for infrastructure to come up

roles/hcl/component-pack/tasks/setup_ingress.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
msg: "{{ cnxingress_tgz.files[0].path }}"
6666

6767
- name: Setup cnx-ingress
68-
command: "helm upgrade cnx-ingress {{ cnxingress_tgz.files[0].path }} -i -f {{ __cnxingress_env }} --namespace {{ __default_namespace }}"
68+
command: "helm upgrade cnx-ingress {{ cnxingress_tgz.files[0].path }} -i -f {{ __cnxingress_env }} --namespace {{ __default_namespace }} --wait"
6969
become_user: "{{ __sudo_user }}"
7070

7171
- name: Give it some space...

roles/hcl/component-pack/tasks/setup_kudosboards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@
3434
become_user: "{{ __sudo_user }}"
3535

3636
- name: Setup kudosboards
37-
command: "helm upgrade kudos-boards-cp {{ kudosboards_tgz.files[0].path }} -i -f {{ __kudos_boards_destination }} --namespace {{ __default_namespace }} --recreate-pods"
37+
command: "helm upgrade kudos-boards-cp {{ kudosboards_tgz.files[0].path }} -i -f {{ __kudos_boards_destination }} --namespace {{ __default_namespace }}"
3838
become_user: "{{ __sudo_user }}"

roles/hcl/component-pack/tasks/setup_orientme.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
become_user: "{{ __sudo_user }}"
1717

1818
- name: Setup orientme
19-
command: "helm upgrade orientme {{ orientme_tgz.files[0].path }} -i -f {{ __orientme_env }} --namespace {{ __default_namespace }}"
19+
command: "helm upgrade orientme {{ orientme_tgz.files[0].path }} -i -f {{ __orientme_env }} --namespace {{ __default_namespace }} --wait"
2020
become_user: "{{ __sudo_user }}"
2121

2222
- name: Wait for people-migrate pod to become ready

roles/hcl/component-pack/tasks/setup_outlook_addin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@
3434
become_user: "{{ __sudo_user }}"
3535

3636
- name: Setup connections-outlook-desktop
37-
command: "helm upgrade connections-outlook-desktop {{ outlook_tgz.files[0].path }} -i -f {{ __outlook_addin_destination }} --namespace {{ __default_namespace }}"
37+
command: "helm upgrade connections-outlook-desktop {{ outlook_tgz.files[0].path }} -i -f {{ __outlook_addin_destination }} --namespace {{ __default_namespace }} --wait"
3838
become_user: "{{ __sudo_user }}"

roles/hcl/component-pack/tasks/setup_psp.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,3 @@
1212
- name: Upgrade PSP
1313
command: "helm upgrade k8s-psp {{ psp_tgz.files[0].path }} -i --set namespace={{ __default_namespace }} --namespace {{ __default_namespace }}"
1414
become_user: "{{ __sudo_user }}"
15-
16-
- name: Give k8s-psp the couple of seconds
17-
pause:
18-
seconds: 10

roles/hcl/component-pack/tasks/setup_tailored_exp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
become_user: "{{ __sudo_user }}"
1717

1818
- name: Setup tailored_exp
19-
command: "helm upgrade tailored-exp {{ tailored_exp_tgz.files[0].path }} -i -f {{ __tailored_exp_env }} --namespace {{ __default_namespace }}"
19+
command: "helm upgrade tailored-exp {{ tailored_exp_tgz.files[0].path }} -i -f {{ __tailored_exp_env }} --namespace {{ __default_namespace }} --wait"
2020
become_user: "{{ __sudo_user }}"
2121

2222
- name: Wait for te-creation-wizard to come up

roles/hcl/component-pack/tasks/setup_teams.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
become_user: "{{ __sudo_user }}"
1717

1818
- name: Setup teams
19-
command: "helm upgrade teams {{ teams_tgz.files[0].path }} -i -f {{ __teams_env }} --namespace {{ __default_namespace }}"
19+
command: "helm upgrade teams {{ teams_tgz.files[0].path }} -i -f {{ __teams_env }} --namespace {{ __default_namespace }} --wait"
2020
become_user: "{{ __sudo_user }}"
2121

2222
- name: Wait for teams to come up

roles/hcl/connections/mt/provision_users/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
__everyone: "no"
1111
__allauth: "no"
1212
__users: "{{ __ic_admin_username }}"
13-
__groups: "{{ __ic_admin_password }}"
13+
__groups: ""
1414
with_items:
1515
- Communities
1616
- Profiles

roles/third_party/docker-install/tasks/install_docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
vars:
7878
ansible_python_interpreter: /usr/bin/python3
7979
pip:
80-
name: ['docker', 'passlib']
80+
name: ['docker', 'passlib', 'six']
8181
when:
8282
- ansible_os_family == "RedHat"
8383

roles/third_party/docker-install/tasks/setup_docker_registry.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,17 @@
9393
when:
9494
- inventory_hostname == groups['docker_registry'][0]
9595
- ansible_os_family == "RedHat"
96+
register: docker_registry_status
9697

97-
- name: Wait a bit, container is just starting
98-
pause:
99-
seconds: 30
98+
- name: Save Docker Registry status
99+
set_fact:
100+
docker_registry_is_running: "{{ docker_registry_status.ansible_facts.docker_container.State.Running }}"
101+
102+
- name: Fail if Docker Registry is not running
103+
fail:
104+
msg: "Docker Registry could not be started"
105+
when:
106+
- not docker_registry_is_running
100107

101108
- name: Test Docker Registry Login on RHEL
102109
vars:

0 commit comments

Comments
 (0)