2017-06-06 16:35:08 +02:00
|
|
|
---
|
|
|
|
- name: Set multiple users role
|
|
|
|
net_user:
|
2017-07-26 16:09:17 +02:00
|
|
|
aggregate:
|
2017-06-06 16:35:08 +02:00
|
|
|
- name: netop
|
|
|
|
- name: netend
|
|
|
|
role: network-operator
|
|
|
|
state: present
|
|
|
|
provider: "{{ cli }}"
|
|
|
|
register: result
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
that:
|
|
|
|
- 'result.changed == true'
|
|
|
|
- '"role network-operator" in result.commands'
|
|
|
|
|
|
|
|
- name: tearDown
|
|
|
|
net_user:
|
|
|
|
purge: yes
|
|
|
|
provider: "{{ cli }}"
|