-
Notifications
You must be signed in to change notification settings - Fork 0
/
site.yml
67 lines (40 loc) · 933 Bytes
/
site.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
---
- hosts: all
gather_facts: false
tasks:
- apt: package={{ item }} state=present
with_items:
- vim-nox
- screen
- htop
- alternatives: name=editor path=/usr/bin/vim.tiny
###########################################################
- hosts: all
gather_facts: false
vars:
admin_keys:
entropia:
- ssh-rsa AAAA001
roles:
- { role: user, username: entropia }
############################################################
- hosts: all
gather_facts: false
vars:
admin_mail: [email protected]
tasks:
- name: Set root mail
lineinfile:
dest: /etc/aliases
regexp: '^root:'
line: "root:\t{{ admin_mail }}"
- name: Clear motd
copy: dest=/etc/motd content=""
#########################################################
- hosts: all
vars:
snmp_community: "geheim"
trusted_subnets:
- "192.168.121.0/24"
roles:
- snmpd