[ansible-project] Re: How do I loop a task with variables defined in another file?

2018-04-11 Thread Olof Lundgren
r database] ok: [vyos-router.lan] => { "ansible_facts": { "users": [{ "configured_password": "abcd1234", "full_name": "Olof Lundgren", "level": "admin",

[ansible-project] How do I loop a task with variables defined in another file?

2018-04-11 Thread Olof Lundgren
I have built a .yml file with a set of users that I want to push to my routers with vyos_user module. This is my *users.yml* users: - full_name: "Olof Lundgren" name:"olof" configured_password: "abcd1234" l

[ansible-project] Re: Creating environmental variable in ansible playbook

2017-07-14 Thread Olof Lundgren
I did not get that working either. I ended up putting my environment variables in the actual environment in Linux. Like this: export ANSIBLE_NET_USERNAME=vyos export ANSIBLE_NET_PASSWORD=password On Friday, July 14, 2017 at 2:06:02 PM UTC+2, Prakash Khadka wrote: > > I have created a

[ansible-project] Task fails when using more than one with_items.

2017-07-14 Thread Olof Lundgren
I have a network module playbook that connect to vyos router and gathers some info. --- - name: play hosts: vyos gather_facts: no connection: local tasks: - name: vyos facts vyos_facts: gather_subset: "!config" - name: vyos command.