r database]
ok: [vyos-router.lan] => {
"ansible_facts": {
"users": [{
"configured_password": "abcd1234",
"full_name": "Olof Lundgren",
"level": "admin",
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
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 playbook.
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.
vyos_