--- - name: Configure WSUS server tags: configure_wsus block: - name: WSUS Script tags: wsus_script block: - name: Copy WSUS script win_copy: src: "{{ wsus_script }}" dest: "{{ script_dir }}\\{{ wsus_script }}" force: true tags: copy_wsus_script - name: Apply WSUS script win_shell: "powershell {{ script_dir }}\\{{ wsus_script }}" tags: - apply_wsus_script - never