fix conditional bug and variables

This commit is contained in:
Arsenii Petrovich 2019-06-28 13:23:11 +03:00
parent 4ecac2083f
commit dac2b7dcf5
2 changed files with 1 additions and 7 deletions

View File

@ -1,9 +1,3 @@
blockscout_repo: https://github.com/poanetwork/blockscout
ps_host: localhost
ps_user: myuser
ps_password: mypass
# System variables
ansible_python_interpreter: "/usr/bin/python3"

View File

@ -280,7 +280,7 @@
profile: "{{ aws_profile|default(omit) }}"
region: "{{ aws_region|default(omit) }}"
with_dict: "{{ lower_env }}"
when: hostvars[groups['all'][0]].user_answer.user_input | lower | bool
when: hostvars[groups['all'][0]].user_answer.user_input | lower | bool and lower_env is defined
tags:
- update_vars