mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-26 21:33:12 +00:00
@@ -67,7 +67,7 @@
|
|||||||
ANSIBLE_NOCOLOR: 'true'
|
ANSIBLE_NOCOLOR: 'true'
|
||||||
ANSIBLE_FORCE_COLOR: 'false'
|
ANSIBLE_FORCE_COLOR: 'false'
|
||||||
ANSIBLE_STDOUT_CALLBACK: community.general.yaml
|
ANSIBLE_STDOUT_CALLBACK: community.general.yaml
|
||||||
playbook: |
|
playbook: !unsafe |
|
||||||
- hosts: testhost
|
- hosts: testhost
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
vars:
|
vars:
|
||||||
@@ -78,9 +78,7 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Test to_yaml
|
- name: Test to_yaml
|
||||||
debug:
|
debug:
|
||||||
msg: "{{ '{{' }}'{{ '{{' }}'{{ '}}' }} data | to_yaml {{ '{{' }}'{{ '}}' }}'{{ '}}' }}"
|
msg: "{{ data | to_yaml }}"
|
||||||
# The above should be: msg: "{{ data | to_yaml }}"
|
|
||||||
# Unfortunately, the way Ansible handles templating, we need to do some funny 'escaping' tricks...
|
|
||||||
expected_output: [
|
expected_output: [
|
||||||
"",
|
"",
|
||||||
"PLAY [testhost] ****************************************************************",
|
"PLAY [testhost] ****************************************************************",
|
||||||
|
|||||||
Reference in New Issue
Block a user