b793f08a92
function changed to do in place replacement, should be less expensive even with copy as it avoids 'sub copies', can compose with module_args_copy to create replacement for old behavior attempt to fix #52910 * handle lists and subdicts correctly * added missing exception case, which was not noticed since 'cleaning' was not working * added comments to clarify exceptions
11 lines
300 B
Bash
Executable file
11 lines
300 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -eux
|
|
|
|
# user output has:
|
|
#ok: [localhost] => (item=looped_var foo_label) => {
|
|
#ok: [localhost] => (item=looped_var bar_label) => {
|
|
MATCH='foo_label
|
|
bar_label'
|
|
[ "$(ansible-playbook label.yml "$@" |grep 'item='|sed -e 's/^.*(item=looped_var \(.*\)).*$/\1/')" == "${MATCH}" ]
|
|
|