Skip to content

Commit 0293f84

Browse files
[PR #9945/e5e33534 backport][stable-10] Simplify YAML callback tests (#9948)
Simplify YAML callback tests (#9945) Simplify YAML callback tests. (cherry picked from commit e5e3353) Co-authored-by: Felix Fontein <[email protected]>
1 parent 8333c88 commit 0293f84

File tree

1 file changed

+2
-4
lines changed
  • tests/integration/targets/callback_yaml/tasks

1 file changed

+2
-4
lines changed

tests/integration/targets/callback_yaml/tasks/main.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
ANSIBLE_NOCOLOR: 'true'
6868
ANSIBLE_FORCE_COLOR: 'false'
6969
ANSIBLE_STDOUT_CALLBACK: community.general.yaml
70-
playbook: |
70+
playbook: !unsafe |
7171
- hosts: testhost
7272
gather_facts: false
7373
vars:
@@ -78,9 +78,7 @@
7878
tasks:
7979
- name: Test to_yaml
8080
debug:
81-
msg: "{{ '{{' }}'{{ '{{' }}'{{ '}}' }} data | to_yaml {{ '{{' }}'{{ '}}' }}'{{ '}}' }}"
82-
# The above should be: msg: "{{ data | to_yaml }}"
83-
# Unfortunately, the way Ansible handles templating, we need to do some funny 'escaping' tricks...
81+
msg: "{{ data | to_yaml }}"
8482
expected_output: [
8583
"",
8684
"PLAY [testhost] ****************************************************************",

0 commit comments

Comments
 (0)