Skip to content

Commit ecb79ac

Browse files
authored
Fixing how password automation is looking for 'ocp_version' (#44)
1 parent 018524b commit ecb79ac

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

generate-ocp-admin-credentials/site.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
23
- name: Generate admin password for OCP
34
hosts: local
45
gather_facts: false
@@ -27,5 +28,7 @@
2728
dest: "{{ ocp_credentials_file }}"
2829
content: "{{ {'ocp_admin_username':'admin','ocp_admin_password':ocp_password } | to_nice_json }}"
2930
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

generate-ocp-ldap-sa-credentials/site.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,7 @@
2727
dest: "{{ credentials_file }}"
2828
content: "{{ {'ocp_ldap_sa_username':'ldap-sa','ocp_ldap_sa_password':sa_password } | to_nice_json }}"
2929
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

0 commit comments

Comments
 (0)