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