ansible/test/integration/targets/win_group_membership/tasks/main.yml
Andrew Saraceni bcb49f2575 Refactor/fix win_group_membership to use SIDs for internal comparisons (#40725)
* refactor win_group_membership to use SIDs for comparisons instead of name parsing

* carry over previous doc cleanup changes

* remove trailing whitespace from docs
2018-06-27 10:54:27 +10:00

47 lines
No EOL
1,002 B
YAML

- name: Gather facts
setup:
- name: Remove potentially leftover test group
win_group: &wg_absent
name: WinGroupMembershipTest
state: absent
- name: Remove potentially leftover test user
win_user: &wu_absent
name: WinTestUser
state: absent
- name: Add new test group
win_group:
name: WinGroupMembershipTest
state: present
- name: Add new test user
win_user:
name: WinTestUser
password: "W1nGr0upM3mb3rsh1pT3$tP@$$w0rd"
state: present
- name: Run tests for win_group_membership
block:
- name: Test in normal mode
import_tasks: tests.yml
vars:
win_local_group: WinGroupMembershipTest
win_local_user: WinTestUser
in_check_mode: no
- name: Test in check-mode
import_tasks: tests.yml
vars:
win_local_group: WinGroupMembershipTest
win_local_user: WinTestUser
in_check_mode: yes
check_mode: yes
- name: Remove test group
win_group: *wg_absent
- name: Remove test user
win_group: *wu_absent