From 537aab113b860f3622396bf70d2b3b8e0c744a42 Mon Sep 17 00:00:00 2001 From: Henry Geay de Montenon Date: Thu, 21 Oct 2021 16:13:18 +0200 Subject: [PATCH] better handle pull_secret --- tasks/deploy_cluster_sno_iso.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/deploy_cluster_sno_iso.yml b/tasks/deploy_cluster_sno_iso.yml index 46efa5d..35c91f5 100644 --- a/tasks/deploy_cluster_sno_iso.yml +++ b/tasks/deploy_cluster_sno_iso.yml @@ -54,7 +54,7 @@ path: /root/lab/install-config.yaml regexp: '^pullSecret: ' insertafter: '^#pullSecret: ' - line: "pullSecret: '{{ pull_secret }}'" + line: "pullSecret: {{pull_secret | to_json | to_json if pull_secret is mapping else pull_secret | to_json }}" - name: Copy lab install-config to SNO install directory ansible.builtin.copy: