8643e9cb34
* changed collection arg to argregate on 2.4 network modules * replace users with aggregate in eos_user, junos_user, nxos_user * added version_added to places where we replaced users with aggregate in the docs * fix ios_static_route test * update tests to reference aggregate instead of collection/users
22 lines
469 B
YAML
22 lines
469 B
YAML
---
|
|
- name: Set multiple users role
|
|
net_user:
|
|
aggregate:
|
|
- name: netop
|
|
- name: netend
|
|
role: network-operator
|
|
state: present
|
|
authorize: yes
|
|
provider: "{{ cli }}"
|
|
register: result
|
|
|
|
- assert:
|
|
that:
|
|
- 'result.changed == true'
|
|
- 'result.commands == ["username netop role network-operator", "username netend role network-operator"]'
|
|
|
|
- name: tearDown
|
|
net_user:
|
|
purge: yes
|
|
authorize: yes
|
|
provider: "{{ cli }}"
|