-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsite.yml
43 lines (37 loc) · 859 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
---
- name: Generic install for mat servers
hosts:
- "*.mat.stacken.kth.se"
tasks:
- name: Install packages
apt:
name: "{{ item }}"
loop:
- fail2ban
- heimdal-clients
- tmux
- screen
- emacs
- neovim
- sharutils
- collectd-core
- name: Deploy sshkeys from GH
authorized_key:
user: root
key: "https://github.com/{{ item }}.keys"
comment: "GitHub user {{ item }}"
loop:
- nsg
- fabstr
- kaj
- include_tasks: krb.yml
- name: Deploy collectd.conf file
template:
src: collectd.conf.j2
dest: /etc/collectd/collectd.conf
- name: Enable and start collectd
service:
name: collectd
state: restarted
enabled: yes
- import_playbook: kvm.yml