---
- name: Run dump vars on all!localhost
  hosts: all:!localhost:!127.0.0.2
  roles:
    - dump_vars

- name: Ensure the overcloud nodes are added to the generated inventory
  hosts: undercloud
  gather_facts: true
  tags:
    - collect-logs
  vars:
    inventory: all
  roles:
    - tripleo-inventory
  ignore_errors: true

- name: Collect logs
  hosts: all:!localhost:!127.0.0.2
  roles:
    - collect-logs

- name: Create docs, publish logs
  hosts: localhost
  roles:
    - {role: collect-logs, artcl_collect: false}
