-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsite.yaml
110 lines (90 loc) · 2.89 KB
/
site.yaml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
---
- name: Main Execution Playbook
hosts: '{{ local }}'
serial: '25%'
ignore_unreachable: true
roles:
- smd
- hosts_file
gather_facts: no
pre_tasks:
- name: Choose High Performance energy power plan for 7010, 780, m3209, 5400AIO
community.windows.win_power_plan:
name: Alto desempenho
when:
- ansible_facts['product_name'] != "DB85PRO"
- name: Choose high power plan for HP Compaq 6005
community.windows.win_power_plan:
name: Alto desempenho
when: ansible_facts['product_name'] == "HP Compaq 6005 Pro SFF PC"
- name: Ensure schedule task 'Shutdown everyday at 23:00' is present
community.windows.win_scheduled_task:
name: Desligar às 23h
description: Desligar todos os dias às 23h
actions:
- path: shutdown.exe
arguments: /s /f
triggers:
- type: daily
start_boundary: '2022-05-06T23:00:00'
username: SYSTEM
run_level: highest
wake_to_run: yes
state: present
enabled: yes
tasks:
- name: Win Updates
import_tasks: win_updates.yaml
tags: never, win_updates
- name: Install windows Exporter
import_tasks: windows_exporter.yml
tags: never, windows_exporter
- name: Install node_exporter
import_tasks: node_exporter.yml
tags: never, node_exporter
- name: reboot
win_reboot:
reboot_timeout: 3600
msg: "Restarting to apply updates"
tags: never, reboot
- name: Trash Bin clean
win_shell: rd /s /q %systemdrive%\$Recycle.bin
args:
executable: cmd
ignore_errors: true
ignore_unreachable: true
tags: never,bin
- name: NVDA
import_tasks: nvda.yaml
tags: never,nvda
- name: iProjection
import_tasks: iprojection.yaml
tags: never,iprojection
- name: SQLServer
import_tasks: sqlserver.yaml
tags: never,sqlserver
- name: Collect Hardware Info
import_tasks: collect_hardware.yaml
tags: never,collect_hardware
- name: Installed Softwares List
import_tasks: collect_software.yaml
tags: never,collect_software
- name: Copy PowerBI installer to Downloads path
import_tasks: powerbi.yaml
tags: never,powerbi
- name: Unzip SEER files to Desktop to hosts
import_tasks: seer.yaml
tags: never,seer
- name: Prepare Windows Hosts for Ansible Basic Method Authentication
import_tasks: prepare_win_hosts.yaml
tags: never,prepare_win_host
post_tasks:
- name: Choose Balanced energy power plan for 7010, 780, m3209, 5400AIO
community.windows.win_power_plan:
name: equilibrado
when:
- ansible_facts['product_name'] != "DB85PRO"
- name: Set autologon for user aluno
community.windows.win_auto_logon:
username: aluno
password: aluno