PARALLAX

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

NameTypeRequiredDefaultDescription
aggregatelist
configured_passwordstr
namestr
nopasswordbool
privilegeint
purgeboolfalse
rolestr
sshkeystr
statestrpresent
update_passwordstralways

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
Search
    ↑ ↓ move↵ openesc close