* [stable-2.17] Unsafe persistence (#82779) * Ensure that unsafe is more difficult to lose [stable-2.16] (#82293) * Ensure that unsafe is more difficult to lose * Add Task.untemplated_args, and switch assert over to use it * Don't use re in first_found, switch to using native string methods * If nested templating results in unsafe, just error, don't continue * ci_complete (cherry picked from commit270b39f6ff) * Fix various issues in unsafe_proxy (#82326) - Use str/bytes directly instead of text_type/binary_type - Fix AnsibleUnsafeBytes.__str__ implementation - Fix AnsibleUnsafeBytes.__format__ return type - Remove invalid methods from AnsibleUnsafeBytes (casefold, format, format_map) - Use `chars` instead of `bytes` to match stdlib naming - Remove commented out code (cherry picked from commit59aa0145d2) * Additional Unsafe fixes (#82376) * Allow older pickle protocols to pickle unsafe classes. Fixes #82356 * Address issues when iterating or getting single index from AnsibleUnsafeBytes. Fixes #82375 * clog frag (cherry picked from commitafe3fc184f) * [stable-2.16] Enable directly using `AnsibleUnsafeText` with Python `pathlib` (#82510) * Enable directly using `AnsibleUnsafeText` with Python `pathlib`. Fixes #82414 (cherry picked from commitc6a652c081) * Prevent failures due to unsafe plugin name (#82759) (cherry picked from commit56f31126ad) * Address issues from merge conflicts --------- Co-authored-by: Matt Clay <matt@mystile.com> Co-authored-by: Martin Krizek <martin.krizek@gmail.com> (cherry picked from commit9e622ddb67) * rewrite illegal templated conditional in find test --------- Co-authored-by: Matt Martz <matt@sivel.net>
42 lines
881 B
Bash
Executable File
42 lines
881 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -eux
|
|
|
|
cleanup() {
|
|
unlink normal/library/_symlink.py
|
|
}
|
|
|
|
pushd normal/library
|
|
ln -s _underscore.py _symlink.py
|
|
popd
|
|
|
|
trap 'cleanup' EXIT
|
|
|
|
# check normal execution
|
|
for myplay in normal/*.yml
|
|
do
|
|
ansible-playbook "${myplay}" -i ../../inventory -vvv "$@"
|
|
if test $? != 0 ; then
|
|
echo "### Failed to run ${myplay} normally"
|
|
exit 1
|
|
fi
|
|
done
|
|
|
|
# check overrides
|
|
for myplay in override/*.yml
|
|
do
|
|
ansible-playbook "${myplay}" -i ../../inventory -vvv "$@"
|
|
if test $? != 0 ; then
|
|
echo "### Failed to run ${myplay} override"
|
|
exit 1
|
|
fi
|
|
done
|
|
|
|
# test config loading
|
|
ansible-playbook use_coll_name.yml -i ../../inventory -e 'ansible_connection=ansible.builtin.ssh' "$@"
|
|
|
|
# test filter loading ignoring duplicate file basename
|
|
ansible-playbook file_collision/play.yml "$@"
|
|
|
|
ANSIBLE_COLLECTIONS_PATH=$PWD/collections ansible-playbook unsafe_plugin_name.yml "$@"
|