eos_user
Manage the collection of local users on EOS devices
Collection: arista.eos
Full Name: arista.eos.eos_user
Controller module — runs on the local controller, not on remote hosts.
Synopsis
Manage the collection of local users on EOS devices
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| aggregate | list | |||
| configured_password | str | |||
| name | str | |||
| nopassword | bool | |||
| privilege | int | |||
| purge | bool | false | ||
| role | str | |||
| sshkey | str | |||
| state | str | present | ||
| update_password | str | always |
Example
yaml
- name: create a new user
arista.eos.eos_user:
name: ansible
sshkey: "{{ lookup('file', '~/.ssh/id_rsa.pub') }}"
state: present
- name: remove all users except admin
arista.eos.eos_user:
purge: true
- name: set multiple users to privilege level 15
arista.eos.eos_user:
aggregate:
- name: netop
- name: netend
privilege: 15
state: present
- name: Change Password for User netop
arista.eos.eos_user:
username: netop
configured_password: '{{ new_password }}'
update_password: always
state: present