diff options
author | Nikita Korolev <66738864+doc-sheet@users.noreply.github.com> | 2023-08-14 15:59:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-14 15:59:40 +0200 |
commit | bd3ffbe10903125993d7d68fa8cfd687124a241f (patch) | |
tree | f745ab37094f0f3f4391961591c295bc4d12f034 /test/integration/targets/template/runme.sh | |
parent | sanity: Document pep8 known issue with Python 3.12 (#81495) (diff) | |
download | ansible-bd3ffbe10903125993d7d68fa8cfd687124a241f.tar.xz ansible-bd3ffbe10903125993d7d68fa8cfd687124a241f.zip |
fix incorrect ansible_managed formatting (#79129)
Ansible breaks configs if file name could be parsed as jinja template
or contains `%` chars.
Especially `%n`[ame%] which is a line break pattern according to [strftime (3)](https://manpages.debian.org/bullseye/manpages-dev/strftime.3.en.html)
Diffstat (limited to 'test/integration/targets/template/runme.sh')
-rwxr-xr-x | test/integration/targets/template/runme.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/integration/targets/template/runme.sh b/test/integration/targets/template/runme.sh index eaaa6aa6a5..d3913d971a 100755 --- a/test/integration/targets/template/runme.sh +++ b/test/integration/targets/template/runme.sh @@ -8,7 +8,10 @@ ANSIBLE_ROLES_PATH=../ ansible-playbook template.yml -i ../../inventory -v "$@" ansible testhost -i testhost, -m debug -a 'msg={{ hostvars["localhost"] }}' -e "vars1={{ undef() }}" -e "vars2={{ vars1 }}" # Test for https://github.com/ansible/ansible/issues/27262 -ansible-playbook ansible_managed.yml -c ansible_managed.cfg -i ../../inventory -v "$@" +ANSIBLE_CONFIG=ansible_managed.cfg ansible-playbook ansible_managed.yml -i ../../inventory -v "$@" + +# Test for https://github.com/ansible/ansible/pull/79129 +ANSIBLE_CONFIG=ansible_managed.cfg ansible-playbook ansible_managed_79129.yml -i ../../inventory -v "$@" # Test for #42585 ANSIBLE_ROLES_PATH=../ ansible-playbook custom_template.yml -i ../../inventory -v "$@" |