Skip to content

Commit

Permalink
Use .path from result of win_tempfile
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rockdreamer committed Dec 17, 2020
1 parent 6e518d0 commit 5971de1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/Win32NT/install/adoptopenjdk_tarball.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
- name: Unarchive to temporary directory
win_unzip:
src: '{{ java_artifact }}'
dest: '{{ temp_dir_path }}'
dest: '{{ temp_dir_path.path }}'

- name: Find java_folder in temp
win_find:
paths: '{{ temp_dir_path }}'
paths: '{{ temp_dir_path.path }}'
recurse: false
file_type: directory
register: java_temp_folder
Expand Down

0 comments on commit 5971de1

Please sign in to comment.