--- - name: Set Cipher Suite ansible.builtin.import_tasks: set-cipher-suite.yml - name: Set Features ansible.builtin.import_tasks: set-windows-features.yml - name: Set DevOps Environment Variables ansible.windows.win_environment: level: machine variables: ASPNETCORE_ENVIRONMENT: "{{ devops_env }}" DOTNET_ENVIRONMENT: "{{ devops_env }}" - name: Install Framework 4.8 ansible.builtin.import_tasks: install-dotnet-framework.yml - name: Install Latest Microsoft Edge chocolatey.chocolatey.win_chocolatey: name: microsoft-edge state: latest - name: Create IIS Log Retention Task community.windows.win_scheduled_task: state: present enabled: true name: IIS Log Retention description: "{{ iis_log_retention_days }}-day retention" allow_demand_start: true allow_hard_terminate: true execution_time_limit: PT1H # group: NT AUTHORITY username: SYSTEM compatibility: 4 actions: - path: C:\Windows\System32\forfiles.exe arguments: /P "{{ iis_log_directory }}" /S /M *.log /D -{{ iis_log_retention_days }} /C "cmd /c del @PATH" triggers: - type: daily enabled: true start_boundary: "2000-10-10T03:00:00"