mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-09 15:44:20 -07:00
Adjust YAML files (#10233)
Adjust YAML files.
(cherry picked from commit eaa5e07b28
)
This commit is contained in:
parent
e8ff74f077
commit
a9e892952d
244 changed files with 7272 additions and 7329 deletions
|
@ -24,18 +24,17 @@
|
|||
- name: Sample task
|
||||
debug:
|
||||
msg: This is a test
|
||||
expected_output: [
|
||||
"",
|
||||
"PLAY [testhost] ****************************************************************",
|
||||
"",
|
||||
"TASK [Sample task] *************************************************************",
|
||||
"ok: [testhost] => {",
|
||||
" \"msg\": \"This is a test\"",
|
||||
"}",
|
||||
"",
|
||||
"PLAY RECAP *********************************************************************",
|
||||
"testhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 "
|
||||
]
|
||||
expected_output:
|
||||
- ""
|
||||
- "PLAY [testhost] ****************************************************************"
|
||||
- ""
|
||||
- "TASK [Sample task] *************************************************************"
|
||||
- "ok: [testhost] => {"
|
||||
- " \"msg\": \"This is a test\""
|
||||
- "}"
|
||||
- ""
|
||||
- "PLAY RECAP *********************************************************************"
|
||||
- "testhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 "
|
||||
|
||||
- name: community.general.print_task is enabled
|
||||
environment:
|
||||
|
@ -49,23 +48,22 @@
|
|||
- name: Sample task
|
||||
debug:
|
||||
msg: This is a test
|
||||
expected_output: [
|
||||
"",
|
||||
"PLAY [testhost] ****************************************************************",
|
||||
"",
|
||||
"TASK [Sample task] *************************************************************",
|
||||
"",
|
||||
"- name: Sample task",
|
||||
" debug:",
|
||||
" msg: This is a test",
|
||||
"",
|
||||
"ok: [testhost] => {",
|
||||
" \"msg\": \"This is a test\"",
|
||||
"}",
|
||||
"",
|
||||
"PLAY RECAP *********************************************************************",
|
||||
"testhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 "
|
||||
]
|
||||
expected_output:
|
||||
- ""
|
||||
- "PLAY [testhost] ****************************************************************"
|
||||
- ""
|
||||
- "TASK [Sample task] *************************************************************"
|
||||
- ""
|
||||
- "- name: Sample task"
|
||||
- " debug:"
|
||||
- " msg: This is a test"
|
||||
- ""
|
||||
- "ok: [testhost] => {"
|
||||
- " \"msg\": \"This is a test\""
|
||||
- "}"
|
||||
- ""
|
||||
- "PLAY RECAP *********************************************************************"
|
||||
- "testhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 "
|
||||
|
||||
- name: Print with msg parameter on the same line
|
||||
environment:
|
||||
|
@ -78,22 +76,21 @@
|
|||
tasks:
|
||||
- name: Sample task
|
||||
debug: msg="This is a test"
|
||||
expected_output: [
|
||||
"",
|
||||
"PLAY [testhost] ****************************************************************",
|
||||
"",
|
||||
"TASK [Sample task] *************************************************************",
|
||||
"",
|
||||
"- name: Sample task",
|
||||
" debug: msg=\"This is a test\"",
|
||||
"",
|
||||
"ok: [testhost] => {",
|
||||
" \"msg\": \"This is a test\"",
|
||||
"}",
|
||||
"",
|
||||
"PLAY RECAP *********************************************************************",
|
||||
"testhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 "
|
||||
]
|
||||
expected_output:
|
||||
- ""
|
||||
- "PLAY [testhost] ****************************************************************"
|
||||
- ""
|
||||
- "TASK [Sample task] *************************************************************"
|
||||
- ""
|
||||
- "- name: Sample task"
|
||||
- " debug: msg=\"This is a test\""
|
||||
- ""
|
||||
- "ok: [testhost] => {"
|
||||
- " \"msg\": \"This is a test\""
|
||||
- "}"
|
||||
- ""
|
||||
- "PLAY RECAP *********************************************************************"
|
||||
- "testhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 "
|
||||
|
||||
- name: Task with additional parameters
|
||||
environment:
|
||||
|
@ -110,23 +107,22 @@
|
|||
test_var: "Hello World"
|
||||
debug:
|
||||
var: test_var
|
||||
expected_output: [
|
||||
"",
|
||||
"PLAY [testhost] ****************************************************************",
|
||||
"",
|
||||
"TASK [Sample task] *************************************************************",
|
||||
"",
|
||||
"- name: Sample task",
|
||||
" when: true",
|
||||
" vars:",
|
||||
" test_var: Hello World",
|
||||
" debug:",
|
||||
" var: test_var",
|
||||
"",
|
||||
"ok: [testhost] => {",
|
||||
" \"test_var\": \"Hello World\"",
|
||||
"}",
|
||||
"",
|
||||
"PLAY RECAP *********************************************************************",
|
||||
"testhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 "
|
||||
]
|
||||
expected_output:
|
||||
- ""
|
||||
- "PLAY [testhost] ****************************************************************"
|
||||
- ""
|
||||
- "TASK [Sample task] *************************************************************"
|
||||
- ""
|
||||
- "- name: Sample task"
|
||||
- " when: true"
|
||||
- " vars:"
|
||||
- " test_var: Hello World"
|
||||
- " debug:"
|
||||
- " var: test_var"
|
||||
- ""
|
||||
- "ok: [testhost] => {"
|
||||
- " \"test_var\": \"Hello World\""
|
||||
- "}"
|
||||
- ""
|
||||
- "PLAY RECAP *********************************************************************"
|
||||
- "testhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue