Re: [ansible-project] Unable to load variable from include_vars into my playbook

2020-02-25 Thread Shifa Shaikh
It's works. Thank you Stefen On Wed, 26 Feb, 2020, 12:13 am Stefan Hornburg (Racke), wrote: > On 2/24/20 9:52 PM, Dick Visser wrote: > > You can’t resolve variables with names that contain variables > themselves. > > Instead, use a lookup: > > > >

Re: [ansible-project] Unable to load variable from include_vars into my playbook

2020-02-25 Thread Stefan Hornburg (Racke)
On 2/24/20 9:52 PM, Dick Visser wrote: > You can’t resolve variables with names that contain variables themselves.  > Instead, use a lookup: > > https://docs.ansible.com/ansible/latest/plugins/lookup/vars.html > > Also try to use the args: chdir option instead of doing &&, see  >

Re: [ansible-project] Unable to load variable from include_vars into my playbook

2020-02-24 Thread Dick Visser
You can’t resolve variables with names that contain variables themselves. Instead, use a lookup: https://docs.ansible.com/ansible/latest/plugins/lookup/vars.html Also try to use the args: chdir option instead of doing &&, see https://docs.ansible.com/ansible/latest/modules/shell_module.html

[ansible-project] Unable to load variable from include_vars into my playbook

2020-02-24 Thread Shifa Shaikh
I have a playbook where I load a variable file cat vars/BASE.yaml EXCLUDE_front: value1 EXCLUDE_back: value2 I run my test.yml playbook using this command: ansible-playbook test.yml -e Layer="back" -e base_folder="/tmp" - name: Load a variable file" include_vars: file: