--- - hosts: localhost connection: local name: "Collect facts" become: no gather_facts: yes - hosts: baremetal connection: local name: "Enroll hardware from inventory into Ironic" become: no roles: - role: ironic-enroll-dynamic - { role: ironic-inspect-node, when: inspect_nodes | default('false') | bool }