start pipeline server init
This commit is contained in:
@ -5,7 +5,13 @@ windows_base_packages:
|
||||
- 7zip
|
||||
- vlc
|
||||
- windirstat
|
||||
- putty
|
||||
|
||||
|
||||
windows_features:
|
||||
- NET-Framework-Features
|
||||
- Telnet-Client
|
||||
- Windows-Server-Backup
|
||||
- RSAT-Print-Services
|
||||
- RSAT-File-Services
|
||||
|
||||
...
|
||||
@ -10,6 +10,39 @@
|
||||
loop_control:
|
||||
loop_var: windows_base_packages_item
|
||||
|
||||
- name: Install Server Services
|
||||
ansible.windows.win_feature:
|
||||
name:
|
||||
- "{{ windows_features_item }}"
|
||||
state: present
|
||||
loop: "{{ windows_features }}"
|
||||
loop_control:
|
||||
loop_var: windows_features_item
|
||||
|
||||
- name: Disable ms_tcpip6 of all the Interface
|
||||
community.windows.win_net_adapter_feature:
|
||||
interface: '*'
|
||||
state: disabled
|
||||
component_id:
|
||||
- ms_tcpip6
|
||||
|
||||
- name: disable IE Enhanced Security
|
||||
block:
|
||||
|
||||
- name: disable for user
|
||||
win_shell: 'Set-ItemProperty -Path "HKLM:\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components\\{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}" -Name "IsInstalled" -Value 0'
|
||||
|
||||
- name: disable for admin
|
||||
win_shell: 'Set-ItemProperty -Path "HKLM:\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components\\{A509B1A8-37EF-4b3f-8CFC-4F3A74704073}" -Name "IsInstalled" -Value 0'
|
||||
|
||||
- name: disable automatic updates
|
||||
ansible.windows.win_regedit:
|
||||
path: HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate\AU
|
||||
name: NoAutoUpdate
|
||||
data: 1
|
||||
|
||||
- name: disable Firewall
|
||||
win_shell: "netsh advfirewall set allprofiles state off"
|
||||
|
||||
|
||||
...
|
||||
Reference in New Issue
Block a user