Skip to content

Commit 9cb39e0

Browse files
committed
Correct check for writing barbican id to file
Currently gives the error below, as the default field is not being applied to the varriable. ``` TASK [Write barbican Approle ID to file if requested] ************************************************************************* Monday 30 October 2023 09:57:48 +0000 (0:00:00.075) 0:00:07.517 ******** fatal: [controller01 -> localhost]: FAILED! => msg: |- The conditional check 'stackhpc_write_barbican_role_id_to_file | bool | default(false)' failed. The error was: error while evaluating conditional (stackhpc_write_barbican_role_id_to_file | bool | default(false)): 'stackhpc_write_barbican_role_id_to_file' is undefined The error appears to be in '/var/lib/home/stackhpc/mattc/src/kayobe-config/etc/kayobe/ansible/vault-deploy-barbican.yml': line 80, column 7, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: Write barbican Approle ID to file if requested ^ here ```
1 parent fdbfbfc commit 9cb39e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

etc/kayobe/ansible/vault-deploy-barbican.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
copy:
8383
content: "{{ barbican_role_id.id }}"
8484
dest: "{{ stackhpc_barbican_role_id_file_path | default('~/barbican-role-id') }}"
85-
when: stackhpc_write_barbican_role_id_to_file | bool | default(false)
85+
when: stackhpc_write_barbican_role_id_to_file | default(false) | bool
8686

8787
- name: Check if barbican Approle Secret ID is defined
8888
hashivault_approle_role_secret_list:

0 commit comments

Comments
 (0)