- include_tasks: file: install.yml apply: tags: never,install tags: always - debug: var=wireguard_state - import_tasks: present.yml when: wireguard_state == "present" - import_tasks: absent.yml when: wireguard_state == "absent"