Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ansible >2.2: conditional check fails on undefined variables in ini lookup #13

Closed
eumel8 opened this Issue Dec 24, 2017 · 1 comment

Comments

Projects
None yet
1 participant
@eumel8
Copy link
Owner

eumel8 commented Dec 24, 2017

There are some major changes in variable lookup handling in newer Ansible versions, so this code in one of the important role (lookup name) will fail:

- name: Set fact for availability_zone_id (eu_de-01)
set_fact:
availability_zone_id: "bf84aba586ce4e948da0b97d9a7d62fb"
when:
- elb_name is defined
- listener_name is undefined
- elb_availability_zone is defined and elb_availability_zone == "eu_de-01"
- name: Set fact for availability_zone_id (eu_de-02)
set_fact:
availability_zone_id: "bf84aba586ce4e948da0b97d9a7d62fc"
when:
- elb_name is defined
- listener_name is undefined
- elb_availability_zone is defined and elb_availability_zone == "eu_de-02"

There is an issue open on Ansible repo: ansible/ansible#23675

@eumel8

This comment has been minimized.

Copy link
Owner Author

eumel8 commented Feb 24, 2018

This code is removed in the current release

@eumel8 eumel8 closed this Feb 24, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.