--- - block: - name: Include vars for {{ ansible_os_family }} include_vars: "{{ ansible_os_family }}.yml" tags: - config - name: Install PowerShell include_tasks: "install.yml" when: - not powershell_uninstall|bool tags: - install - name: Uninstall PowerShell include_tasks: "uninstall.yml" when: - powershell_uninstall|bool tags: - uninstall tags: - powershell