diff --git a/scripts/upgrade-utilities/playbooks/user-secrets-adjustment.yml b/scripts/upgrade-utilities/playbooks/user-secrets-adjustment.yml index abffe07a0f..6c24641c8b 100644 --- a/scripts/upgrade-utilities/playbooks/user-secrets-adjustment.yml +++ b/scripts/upgrade-utilities/playbooks/user-secrets-adjustment.yml @@ -38,7 +38,8 @@ dest: "/etc/openstack_deploy/{{ _osa_secrets_file_name }}" line: "{{ item }}" with_items: "{{ secrets.stdout_lines }}" - when: user_secrets.stdout.find("{{ item }}") == -1 + when: + - "user_secrets.stdout.find(item) == -1" - name: Generate new secrets shell: "/opt/ansible-runtime/bin/python {{ playbook_dir }}/../../../scripts/pw-token-gen.py --file /etc/openstack_deploy/{{ _osa_secrets_file_name }}" vars: