summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/template/runme.sh
diff options
context:
space:
mode:
authorNikita Korolev <66738864+doc-sheet@users.noreply.github.com>2023-08-14 15:59:40 +0200
committerGitHub <noreply@github.com>2023-08-14 15:59:40 +0200
commitbd3ffbe10903125993d7d68fa8cfd687124a241f (patch)
treef745ab37094f0f3f4391961591c295bc4d12f034 /test/integration/targets/template/runme.sh
parentsanity: Document pep8 known issue with Python 3.12 (#81495) (diff)
downloadansible-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-xtest/integration/targets/template/runme.sh5
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 "$@"