File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
generate-ocp-admin-credentials
generate-ocp-ldap-sa-credentials Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
+
2
3
- name : Generate admin password for OCP
3
4
hosts : local
4
5
gather_facts : false
27
28
dest : " {{ ocp_credentials_file }}"
28
29
content : " {{ {'ocp_admin_username':'admin','ocp_admin_password':ocp_password } | to_nice_json }}"
29
30
when :
30
- - r_ocp_credentials_file.stat.exists == False
31
- - ocp_version is defined
31
+ - r_ocp_credentials_file.stat.exists == False
32
+ - hosting_environments is defined
33
+ - hosting_environments|length > 0
34
+ - hosting_environments[0].ocp_version is defined
Original file line number Diff line number Diff line change 27
27
dest : " {{ credentials_file }}"
28
28
content : " {{ {'ocp_ldap_sa_username':'ldap-sa','ocp_ldap_sa_password':sa_password } | to_nice_json }}"
29
29
when :
30
- - r_credentials_file.stat.exists == False
31
- - ocp_version is defined
30
+ - r_credentials_file.stat.exists == False
31
+ - hosting_environments is defined
32
+ - hosting_environments|length > 0
33
+ - hosting_environments[0].ocp_version is defined
You can’t perform that action at this time.
0 commit comments