-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmestre_adm_lin.yml
176 lines (161 loc) · 4.49 KB
/
mestre_adm_lin.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
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
- name: Administrativo Linux -salas
hosts: administrativos_lin,!sala,!note
roles:
- ingressa_ldap
- acesso_remoto
- cadeia_certificados
- token_gd_starsign
- token_safenet
- hodprint
- name: Administrativo Linux
hosts: administrativos_lin
#############################################################
##################### INCLUSÃO DE ROLES #####################
roles:
- upgrade_11to12
- sources_list
- openaudit
- fonte_garamound
- unattendedUpgrades_adm
- glpi_agent
- auto_desligamento
- warsaw
- foxit
- java8-oracle
# - role: grub
# tipo: grub_soh_lin
tasks:
- name: Add an Apt signing key to a specific keyring file
ansible.builtin.apt_key:
url: https://dl-ssl.google.com/linux/linux_signing_key.pub
keyring: /etc/apt/trusted.gpg.d/google-chrome.gpg
changed_when: false
when: ansible_os_family == 'Debian'
- name: Run the equivalent of "apt-get clean" as a separate step
ansible.builtin.apt:
clean: true
when: ansible_os_family == 'Debian'
- name: Instala utilitários para o bash
ansible.builtin.apt:
update_cache: true
pkg:
- apt-transport-https
- aptitude
- bash-completion
- chrony
- command-not-found
- dia
- dkms
- firmware-linux-free
- firmware-linux-nonfree
- gnome-terminal
- gscan2pdf
- gtklp
- icedtea-netx
- kdenlive
- kolourpaint4
- libcurl4
- linux-image-amd64
- linux-headers-amd64
- network-manager
- network-manager-gnome
- nfs-common
- okular
- pdfshuffler
- ssh
- system-config-printer
- unrar
- vim
- vlc
when: ansible_os_family == 'Debian'
- name: Instala pacotes .deb
ansible.builtin.apt:
deb: "{{ deb_pkgs }}"
loop:
- https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
loop_control:
loop_var: deb_pkgs
when: ansible_os_family == 'Debian'
- name: Remover programas - Linux
ansible.builtin.apt:
state: absent
pkg:
- transmission
- transmission-common
- linux-image-6.5.0-0.deb12.4-amd64
- linux-headers-6.5.0-0.deb12.4-amd64
- linux-headers-6.5.0-0.deb12.4-common
when: ansible_os_family == 'Debian'
tags: remove
#########################################################
##################### CONFIGURAÇÕES #####################
- name: Adiciona conteúdo do /etc/bash.bashrc
ansible.builtin.blockinfile:
path: /etc/bash.bashrc
marker: "# {mark} ANSIBLE MANAGED BLOCK"
content: |
# enable bash completion in interactive shells
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
export SHELL=/bin/bash
export PATH=$PATH:/sbin
backup: true
when: ansible_os_family == 'Debian'
tags: bashrc
##########################################################
################ CONFIGURAÇÕES INDIVIUAIS ################
- name: Configuração salas de aula, se der problema comentar o scrcpy # e depois descomentar de novo
hosts: sala
roles:
- configura_monitores
- remove_ldap
- flatpak
- geogebra
- aluno
- scrcpy
tasks:
- name: Pacotes especiais
ansible.builtin.apt:
pkg:
- x2goclient
- wxmaxima
- python3-matplotlib
- python3-numpy
- python3-scipy
- python3-pandas
- python3-pip
- snapd
tags: pacotes
- name: Configuração dos notebooks da turno
hosts: note
roles:
- configura_wifi
- aluno
- name: Computadores Financeiro
hosts: financeiro
roles:
- savpdf
- role: instala_impressora_cups
install: 0
financeiro: 1
cgp: 1
- name: Computadores meios de RAC
hosts: mrac_lin
roles:
- role: grub
tipo: grub_win
- name: Notebook acer
hosts: sje-lin-dae-926476.maquinas.sj.ifsc.edu.br
roles:
- remove_ldap
- name: Computadores da biblioteca
hosts: biblio
roles:
- role: softwares_remotos
apps:
- sophiaslade