Split handler tasks for setup_remote_tmp_dir.
This allows a platform handler to run even when the module required for the other platform is not present.
This commit is contained in:
parent
a0242b2173
commit
7724fb8f33
3 changed files with 11 additions and 7 deletions
|
@ -1,10 +1,5 @@
|
||||||
- name: delete temporary directory
|
- name: delete temporary directory
|
||||||
file:
|
include_tasks: default-cleanup.yml
|
||||||
path: "{{ remote_tmp_dir }}"
|
|
||||||
state: absent
|
|
||||||
no_log: yes
|
|
||||||
|
|
||||||
- name: delete temporary directory (windows)
|
- name: delete temporary directory (windows)
|
||||||
win_file:
|
include_tasks: windows-cleanup.yml
|
||||||
path: "{{ remote_tmp_dir }}"
|
|
||||||
state: absent
|
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
- name: delete temporary directory
|
||||||
|
file:
|
||||||
|
path: "{{ remote_tmp_dir }}"
|
||||||
|
state: absent
|
||||||
|
no_log: yes
|
|
@ -0,0 +1,4 @@
|
||||||
|
- name: delete temporary directory (windows)
|
||||||
|
win_file:
|
||||||
|
path: "{{ remote_tmp_dir }}"
|
||||||
|
state: absent
|
Loading…
Add table
Reference in a new issue