mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
keep unsafe .. unsafe (#23742)
* keep unsafe .. unsafe fixes #23734, which was broken in previous fix that allowed non string types to be templated use new 'is_template' function vs bastardizing others refactored clean_data to allow for arbitrary data structures to clean fixed/removed some tests * deal with complex data for is_template * typos
This commit is contained in:
parent
3358abcf49
commit
4594bee65a
6 changed files with 87 additions and 64 deletions
|
@ -157,7 +157,7 @@
|
|||
- name: assert recursive copied directories mode
|
||||
assert:
|
||||
that:
|
||||
- "{{item.stat.mode}} == 0700"
|
||||
- "item.stat.mode == '0700'"
|
||||
with_items: "{{dir_stats.results}}"
|
||||
|
||||
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
assert:
|
||||
that:
|
||||
- item.0 | changed
|
||||
- item.0.path_value == "C:\\{{ item.0.item }}Path"
|
||||
- item.1.stdout_lines[0] == 'C:\\{{ item.0.item }}Path'
|
||||
- item.0.path_value == "C:\\" + item.0.item + "Path"
|
||||
- item.1.stdout_lines[0] == 'C:\\' + item.0.item + 'Path'
|
||||
with_together:
|
||||
- "{{ pathout.results }}"
|
||||
- "{{ varout.results }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue