--- - hosts: localhost user: root vars_files: - domainpwd.vault roles: - prereq - { role: networkpackagemanager, when: 'ansible_local.checksum.needs_pkg_run | bool' } - { role: init, when: 'ansible_local.checksum.needs_repo_run | bool' } - { role: custom, when: 'ansible_local.checksum.needs_repo_run | bool' } - { role: domain, when: 'ansible_local.checksum.needs_repo_run | bool' }