Skip to content

Commit 4b23dd6

Browse files
authored
Merge branch 'master' into update-251127
2 parents 33f072c + c5fc8f7 commit 4b23dd6

File tree

1 file changed

+2
-1
lines changed
  • ibm/mas_devops/roles/db2/tasks/install

1 file changed

+2
-1
lines changed

ibm/mas_devops/roles/db2/tasks/install/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@
140140
set_fact:
141141
new_secret: "{{ content | join('') }}"
142142

143+
# Note: We use "new_secret | to_json | string" to avoid older versions of Ansible creating invalid json representation containing single quotes
143144
- name: "Generate 'ibm-registry' secret"
144145
no_log: true
145146
kubernetes.core.k8s:
@@ -151,7 +152,7 @@
151152
name: ibm-registry
152153
namespace: "{{ db2_namespace }}"
153154
data:
154-
.dockerconfigjson: "{{ new_secret | b64encode }}"
155+
.dockerconfigjson: "{{ new_secret | to_json | string | b64encode }}"
155156
register: secretUpdateResult
156157

157158
- name: "Delete old db2 subscription, operand request and csv from {{ ibm_common_services_namespace }}"

0 commit comments

Comments
 (0)