Skip to content

Commit 5971de1

Browse files
committed
Use .path from result of win_tempfile
According to recent win_tempfile documentation, its result is a dictionary, with the temporary path under the path key. https://docs.ansible.com/ansible/latest/collections/ansible/windows/win_tempfile_module.html Updating uses of the result to make use of the .path value This makes is possible for me to use the role on macos 11, provisioning a win2019 VM, using ansible 2.10.3
1 parent 6e518d0 commit 5971de1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/Win32NT/install/adoptopenjdk_tarball.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
- name: Unarchive to temporary directory
2020
win_unzip:
2121
src: '{{ java_artifact }}'
22-
dest: '{{ temp_dir_path }}'
22+
dest: '{{ temp_dir_path.path }}'
2323

2424
- name: Find java_folder in temp
2525
win_find:
26-
paths: '{{ temp_dir_path }}'
26+
paths: '{{ temp_dir_path.path }}'
2727
recurse: false
2828
file_type: directory
2929
register: java_temp_folder

0 commit comments

Comments
 (0)