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
|
||||
file:
|
||||
path: "{{ remote_tmp_dir }}"
|
||||
state: absent
|
||||
no_log: yes
|
||||
include_tasks: default-cleanup.yml
|
||||
|
||||
- name: delete temporary directory (windows)
|
||||
win_file:
|
||||
path: "{{ remote_tmp_dir }}"
|
||||
state: absent
|
||||
include_tasks: windows-cleanup.yml
|
||||
|
|
|
@ -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…
Reference in a new issue