From dac2b7dcf55a8cc54c3961f5f212d2da4706796d Mon Sep 17 00:00:00 2001 From: Arsenii Petrovich Date: Fri, 28 Jun 2019 13:23:11 +0300 Subject: [PATCH] fix conditional bug and variables --- group_vars/all.yml.example | 6 ------ roles/main_software/tasks/main.yml | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/group_vars/all.yml.example b/group_vars/all.yml.example index d138603..9a039ad 100644 --- a/group_vars/all.yml.example +++ b/group_vars/all.yml.example @@ -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" diff --git a/roles/main_software/tasks/main.yml b/roles/main_software/tasks/main.yml index 51a3337..9d3cec9 100644 --- a/roles/main_software/tasks/main.yml +++ b/roles/main_software/tasks/main.yml @@ -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