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:
Matt Clay 2020-02-07 11:40:08 -08:00
parent a0242b2173
commit 7724fb8f33
3 changed files with 11 additions and 7 deletions

View file

@ -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

View file

@ -0,0 +1,5 @@
- name: delete temporary directory
file:
path: "{{ remote_tmp_dir }}"
state: absent
no_log: yes

View file

@ -0,0 +1,4 @@
- name: delete temporary directory (windows)
win_file:
path: "{{ remote_tmp_dir }}"
state: absent