--- - name: Verify hosts: all gather_facts: false any_errors_fatal: true vars: iface_name: adm tasks: - name: "Check that the Wireguard service is running" ansible.builtin.service: name: wg-quick@{{ iface_name }} state: started