0

when I run playbook with --check option I see names only for "ok" or "changed" tasks (trying with ansible 2.5 - 2.9)

TASK [playbook : taskN] ************************************************************************************************
ok: [host00.domain]

TASK [playbook : taskN+1] ************************************************************************************************
ok: [host00.domain]

TASK [playbook : taskN+2] ************************************************************************************************
changed: [host00.domain] => (item=item_stuff)

PLAY RECAP ************************************************************************************************
host00.domain         : ok=6    changed=2    unreachable=0    failed=0    skipped=2    rescued=0    ignored=0   

I see "skipped=2", but which exactly tasks were skipped ? -vvv doesn't help

UPD :

example of skipped task:

tasks/main.yml

- import_tasks: taskF.yml
  when: "'host_group' in group_names"

tasks/taskF.yml

- name: test network
  shell: echo AAA
  tags: full, test
Dmitry Perfilyev
  • 536
  • 1
  • 4
  • 14
  • try posting your playbook content as well. – bosari Mar 21 '20 at 06:46
  • I've updated post, but I don't know how playbook may help you, I want to print skipped tasks in all possible cases. – Dmitry Perfilyev Mar 21 '20 at 09:48
  • increasing verbosity should help. The output you posted tells the verbosity was set to 0. It normally shows the skipped tasks. I have outputs available with me of my jobs. – bosari Mar 21 '20 at 11:19
  • -vvv doesn't help - I wrote this in first edition. Verbosity affects only details of already printed tasks (ok, changed). Skipped tasks always show as summary. – Dmitry Perfilyev Mar 22 '20 at 07:39

0 Answers0