ansible/test/integration/targets/callback_default/test_dryrun.yml
Rick Elrod abfb7919dc
[default callback] Show include_tasks task banner (#71821)
Change:
- In some cases (always with free strategy, sometimes with linear), the
  default callback would not show the task banner for include_tasks.
- This only affects the include_tasks task itself, not the tasks in the
  included file.

Test Plan:
- Updated default callback tests

Tickets:
- Fixes #71277

Signed-off-by: Rick Elrod <rick@elrod.me>
2020-09-22 11:40:12 -04:00

93 lines
1.8 KiB
YAML

---
- name: A common play
hosts: testhost
gather_facts: no
tasks:
- debug:
msg: 'ansible_check_mode: {{ansible_check_mode}}'
- name: Command
command: ls -l
- name: "Command with check_mode: false"
command: ls -l
check_mode: false
- name: "Command with check_mode: true"
command: ls -l
check_mode: true
- name: "Play with check_mode: true (runs always in check_mode)"
hosts: testhost
gather_facts: no
check_mode: true
tasks:
- debug:
msg: 'ansible_check_mode: {{ansible_check_mode}}'
- name: Command
command: ls -l
- name: "Command with check_mode: false"
command: ls -l
check_mode: false
- name: "Command with check_mode: true"
command: ls -l
check_mode: true
- name: "Play with check_mode: false (runs always in wet mode)"
hosts: testhost
gather_facts: no
check_mode: false
tasks:
- debug:
msg: 'ansible_check_mode: {{ansible_check_mode}}'
- name: Command
command: ls -l
- name: "Command with check_mode: false"
command: ls -l
check_mode: false
- name: "Command with check_mode: true"
command: ls -l
check_mode: true
- name: "Play with a block with check_mode: true"
hosts: testhost
gather_facts: no
tasks:
- block:
- name: Command
command: ls -l
- name: "Command with check_mode: false"
command: ls -l
check_mode: false
- name: "Command with check_mode: true"
command: ls -l
check_mode: true
check_mode: true
- name: "Play with a block with check_mode: false"
hosts: testhost
gather_facts: no
tasks:
- block:
- name: Command
command: ls -l
- name: "Command with check_mode: false"
command: ls -l
check_mode: false
- name: "Command with check_mode: true"
command: ls -l
check_mode: true
check_mode: false