Debian Codegraph @

test/integration/targets/display-newline/tasks/main.yml

raw
1 - name: Run a command which generates a warning with NL, CR and CRNL
2 command: ansible -m noisy localhost
3 register: result
4 environment:
5 ANSIBLE_FORCE_COLOR: 0
6 ANSIBLE_LIBRARY: "{{ role_path }}/library"
7
8 - name: Verify NL and CR are preserved, but CRNL is converted to NL
9 assert:
10 that: result.stderr is contains 'Hello\nNew\rAnsible\nWorld'