Re: [ansible-project] loop and pass variables from vars_files to task command

3 views
Skip to first unread message

Kai Stian Olstad

unread,
Jan 20, 2020, 12:25:32 PM1/20/20
to ansible...@googlegroups.com
On 15.01.2020 20:55, Matthew DeSantos wrote:
> #### My vars_file
> --- - vlan_name: Test1 vlan_id: 10 vlan_subnet: 10.3.10.2/24 -
> vlan_name:
> Test2 vlan_id: 20 vlan_subnet: 10.3.20.2/24

This (formatting mess, you should post plain text) is not a correct
variable file.
What you have here is a list, but this list need to but assigned to a
variable for it to be used.

--
Kai Stian Olstad
Reply all
Reply to author
Forward
0 new messages