Fix warning in upgrade
Ansible emits this warning message when doing our upgrade: [WARNING]: when statements should not include jinja2 templating delimiters This should fix it. Change-Id: I91984ee69bdb612e8c8ef1f4b4b50777e35be2c1
This commit is contained in:
parent
a95896d0d2
commit
8de63d61d4
@ -38,7 +38,8 @@
|
|||||||
dest: "/etc/openstack_deploy/{{ _osa_secrets_file_name }}"
|
dest: "/etc/openstack_deploy/{{ _osa_secrets_file_name }}"
|
||||||
line: "{{ item }}"
|
line: "{{ item }}"
|
||||||
with_items: "{{ secrets.stdout_lines }}"
|
with_items: "{{ secrets.stdout_lines }}"
|
||||||
when: user_secrets.stdout.find("{{ item }}") == -1
|
when:
|
||||||
|
- "user_secrets.stdout.find(item) == -1"
|
||||||
- name: Generate new secrets
|
- 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 }}"
|
shell: "/opt/ansible-runtime/bin/python {{ playbook_dir }}/../../../scripts/pw-token-gen.py --file /etc/openstack_deploy/{{ _osa_secrets_file_name }}"
|
||||||
vars:
|
vars:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user