2017-07-31 18:10:57 +00:00
|
|
|
- name: Gather facts
|
|
|
|
setup:
|
|
|
|
|
|
|
|
- name: Remove potentially leftover test group
|
|
|
|
win_group: &wg_absent
|
2017-08-02 02:06:39 +00:00
|
|
|
name: WinGroupMembershipTest
|
2017-07-31 18:10:57 +00:00
|
|
|
state: absent
|
|
|
|
|
|
|
|
- name: Add new test group
|
|
|
|
win_group:
|
2017-08-02 02:06:39 +00:00
|
|
|
name: WinGroupMembershipTest
|
2017-07-31 18:10:57 +00:00
|
|
|
state: present
|
|
|
|
|
2017-08-02 02:06:39 +00:00
|
|
|
- name: Run tests for win_group_membership
|
2017-07-31 18:10:57 +00:00
|
|
|
block:
|
|
|
|
|
|
|
|
- name: Test in normal mode
|
|
|
|
include_tasks: tests.yml
|
|
|
|
vars:
|
2017-08-02 02:06:39 +00:00
|
|
|
win_local_group: WinGroupMembershipTest
|
2017-07-31 18:10:57 +00:00
|
|
|
in_check_mode: no
|
|
|
|
|
|
|
|
- name: Test in check-mode
|
|
|
|
include_tasks: tests.yml
|
|
|
|
vars:
|
2017-08-02 02:06:39 +00:00
|
|
|
win_local_group: WinGroupMembershipTest
|
2017-07-31 18:10:57 +00:00
|
|
|
in_check_mode: yes
|
|
|
|
check_mode: yes
|
|
|
|
|
|
|
|
- name: Remove test group
|
|
|
|
win_group: *wg_absent
|