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:
Jean-Philippe Evrard 2017-10-04 09:55:36 +01:00
parent a95896d0d2
commit 8de63d61d4
1 changed files with 2 additions and 1 deletions

View File

@ -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: