Hi, I am trying to run a simple ansible playbook to create a user in Juniper device. junipernetworks.junos.junos_user – Manage local user accounts on Juniper JUNOS devices — Ansible Documentation <https://docs.ansible.com/ansible/latest/collections/junipernetworks/junos/junos_user_module.html>
I have all the collection junipernetworks.junos installed- *[root@localhost ansible-content]# ansible-galaxy collection list | grep junijunipernetworks.junos 2.8.0juniper.device 1.0.1junipernetworks.junos 2.8.0* But everytime when I try to run the playbook, I get this error- *[root@localhost ansible-content]# ansible-playbook playbook-Create_User.ymlERROR! 'junipernetworks.junos.junos_user' is not a valid attribute for a PlayThe error appears to be in '/home/ansible-content/playbook-Create_User.yml': line 2, column 3, but maybe elsewhere in the file depending on the exact syntax problem.The offending line appears to be:---- name: Create new user account ^ here* Here is my playbook- *[root@localhost ansible-content]# cat playbook-Create_User.yml---- name: Create new user account hosts: all #connection: local junipernetworks.junos.junos_user: name: ansibleusr role: super-user state: present* Any help is appriciated Nish -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/80dacf6b-1e19-4be2-8101-055c81c25878n%40googlegroups.com.
