--- - name: Apply group policy win_shell: powershell C:\eidf\{{ group_policy_script }} tags: apply_gpo when: inventory_hostname in groups['meta-name_dc01'] - name: Copy Start menu DC01 win_copy: src: "{{ start_menu_xml }}" dest: "C:\\eidf" force: true tags: start_menu when: inventory_hostname in groups['meta-name_dc01']