-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmestre_lab_win.yml
56 lines (49 loc) · 1.62 KB
/
mestre_lab_win.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
- name: Laboratórios Windows
hosts: laboratorios_win
roles:
- revit
- zoiper
# - microsip
tasks:
- name: Configura servidor NTP
ansible.windows.win_regedit:
path: HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DateTime\Servers
name: "1"
data: pool.ntp.br
when: ansible_os_family == 'Windows'
tags: config_hora
- name: Configuracao para UTC
ansible.windows.win_regedit:
path: HKLM:\System\CurrentControlSet\Control\TimeZoneInformation
name: RealTimeIsUniversal
data: "1"
type: dword
when: ansible_os_family == 'Windows'
tags: config_hora
- name: Set timezime to Pacific Standard time and disable Daylight Saving time adjustments
community.windows.win_timezone:
timezone: E. South America Standard Time_dstoff
when: ansible_os_family == 'Windows'
tags: config_hora
- name: Configurações aplicadas somente para as maquinas dos professores
hosts: lab_profs_win
roles:
- ingressa_ldap
- name: Atualizar computadores Windows do grupo laboratorios_win
hosts: laboratorios_win
tasks:
- name: Verificar e instalar atualizações do Windows Update
win_updates:
category_names:
- CriticalUpdates
- SecurityUpdates
reboot: yes
- name: Reiniciar o computador se necessário
win_reboot:
msg: "Reiniciando após aplicar atualizações do Windows Update."
timeout: 300
# ######################## ORDEM ALFABÉTICA ########################
# - name: Laboratório de Comunicação sem fio
# hosts: csfio_win
# roles:
# - hfss