ansible/test/integration/targets/win_user_right/tasks/main.yml
Jordan Borean e46adece48 win_user_right: add module with tests (#26276)
* win_user_right: add module with tests

* fixed up name of module in docs

* forgot the test module

* fixed up whitespace

* changes made to win_user_right based on feedback

* moved away from using secedit to Win32 with P/Invoke

* tidied up copyright for documentation
2017-08-11 07:52:07 +10:00

25 lines
526 B
YAML

---
- name: get current entries for right
test_get_right:
name: '{{test_win_user_right_name}}'
register: actual_users
- name: get facts
setup:
- block:
- name: ensure right is empty before test
win_user_right:
name: '{{test_win_user_right_name}}'
users: []
action: set
- name: run tests
include_tasks: tests.yml
always:
- name: reset entries for test right
win_user_right:
name: '{{test_win_user_right_name}}'
users: '{{actual_users.users}}'
action: set