-
Notifications
You must be signed in to change notification settings - Fork 2
/
portatiles-prestamo.yml
53 lines (42 loc) · 1.38 KB
/
portatiles-prestamo.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
---
- hosts: portatiles-prestamo
user: root
connection: paramiko
vars:
grupos: adm,cdrom,dialout,kvm,libvirt,lpadmin,plugdev,sambashare,ubridge,vboxusers
handlers:
- name: restart sshd
service:
name: sshd
state: restarted
tasks:
# Tareas por defecto
- include: default.yml
# Cambio de hostname
- include: /home/vcarceler/playbooks/cambia-hostname.yml base_hostname=portatil
# Cambio en la configuración de sshd para bloquear la autenticación con password
- name: Bloquea la autenticación con password en /etc/ssh/sshd_config
replace:
dest: /etc/ssh/sshd_config
regexp: '^#PasswordAuthentication yes'
replace: 'PasswordAuthentication no'
notify:
- restart sshd
# Tareas particulares de las aulas de informática
- include: apagado-1455.yml
# Tareas generales de informática (DPT y Aulas)
#
# Borrado de usuarios por defecto (mati y tarda)
- include: del-default-users.yml
# Usuario invitado
- include: convidat.yml
# Gnome3 dconf
- include: gnome3-dconf.yml
# Instalación general de paquetes para Informàtica (DPT y Aulas)
- include: informatica-paquetes-u1804.yml
# Usuarios
- include: users/dam2a.yml
- include: users/dam2b.yml
- include: users/afcat.yml
- include: users/afeng.yml
- include: users/docent.yml