finished demo

This commit is contained in:
Price Hiller 2022-09-18 22:41:46 -05:00
parent a0ed7e7373
commit f27748fedd
2 changed files with 31 additions and 5 deletions

View File

@ -12,15 +12,15 @@
ASPNETCORE_ENVIRONMENT: "{{ devops_env }}" ASPNETCORE_ENVIRONMENT: "{{ devops_env }}"
DOTNET_ENVIRONMENT: "{{ devops_env }}" DOTNET_ENVIRONMENT: "{{ devops_env }}"
- name: Install Framework 4.8 - name: Ensure Framework 4.8 is Installed
ansible.builtin.import_tasks: install-dotnet-framework.yml ansible.builtin.import_tasks: install-dotnet-framework.yml
- name: Install Latest Microsoft Edge - name: Ensure Latest Microsoft Edge is Installed
chocolatey.chocolatey.win_chocolatey: chocolatey.chocolatey.win_chocolatey:
name: microsoft-edge name: microsoft-edge
state: latest state: latest
- name: Create IIS Log Retention Task - name: Ensure IIS Log Retention Task Exists
community.windows.win_scheduled_task: community.windows.win_scheduled_task:
state: present state: present
enabled: true enabled: true
@ -78,3 +78,29 @@
members: members:
- svc-rmagent - svc-rmagent
state: present state: present
- name: Ensure DL_ISG_WEB Group Exists
ansible.windows.win_group:
name: DL_ISG_WEB
state: present
- name: Ensure ISG Team & Admin Have Proper Log Permissions
ansible.windows.win_acl:
path: "{{ item.path }}"
user: "{{ item.user }}"
type: allow
rights: "{{ item.rights }}"
state: present
loop:
- user: DL_ISG_WEB
path: C:\IISLogs
rights: Read
- user: DL_ISG_WEB
path: C:\Logs
rights: Read
- user: Administrators
path: C:\IISLogs
rights: FullControl
- user: Administrators
path: C:\Logs
rights: FullControl

View File

@ -1,12 +1,12 @@
--- ---
- name: Install Desired Windows Features - name: Ensure Desired Windows Features Are Installed
ansible.windows.win_feature: ansible.windows.win_feature:
name: "{{ desired_features }}" name: "{{ desired_features }}"
state: present state: present
include_management_tools: true include_management_tools: true
register: installed_features register: installed_features
- name: Remove Undesired Windows Features - name: Ensure Undesired Windows Features Are Removed
ansible.windows.win_feature: ansible.windows.win_feature:
name: "{{ undesired_features }}" name: "{{ undesired_features }}"
state: absent state: absent