2018-07-22 21:16:42 +02:00
|
|
|
---
|
|
|
|
- name: ensure we start with a clean dir
|
|
|
|
win_file:
|
|
|
|
path: '{{ test_acl_path }}'
|
|
|
|
state: '{{ item }}'
|
|
|
|
with_items:
|
|
|
|
- absent
|
|
|
|
- directory
|
|
|
|
|
2019-03-27 00:52:39 +01:00
|
|
|
- name: ensure we start with a clean reg path
|
|
|
|
win_regedit:
|
|
|
|
path: '{{ test_acl_reg_path }}'
|
|
|
|
delete_key: yes
|
|
|
|
state: '{{ item }}'
|
|
|
|
with_items:
|
|
|
|
- absent
|
|
|
|
- present
|
|
|
|
|
2018-07-22 21:16:42 +02:00
|
|
|
- block:
|
|
|
|
- name: run tests
|
|
|
|
include_tasks: tests.yml
|
|
|
|
|
|
|
|
always:
|
2019-03-15 05:57:41 +01:00
|
|
|
- name: cleanup testing dir
|
2018-07-22 21:16:42 +02:00
|
|
|
win_file:
|
|
|
|
path: '{{ test_acl_path }}'
|
|
|
|
state: absent
|
2019-03-27 00:52:39 +01:00
|
|
|
|
|
|
|
- name: cleanup testing reg path
|
|
|
|
win_regedit:
|
|
|
|
path: '{{ test_acl_reg_path }}'
|
|
|
|
delete_key: yes
|
|
|
|
state: absent
|