mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
425537861a
* Fix typo in net_logging/eos * This seems to be required to use eos_user in this way * Fix indentation in net_static_route/eos * Rework interface check in eos_vrf This should do the right thing.
20 lines
378 B
YAML
20 lines
378 B
YAML
---
|
|
- name: Set user to privilege level 15
|
|
net_user:
|
|
name: netop
|
|
nopassword: yes
|
|
privilege: 15
|
|
state: present
|
|
authorize: yes
|
|
provider: "{{ cli }}"
|
|
register: result
|
|
|
|
- assert:
|
|
that:
|
|
- 'result.changed == true'
|
|
- 'result.commands == ["username netop privilege 15"]'
|
|
|
|
- name: tearDown
|
|
net_user:
|
|
purge: yes
|
|
provider: "{{ cli }}"
|