-
Notifications
You must be signed in to change notification settings - Fork 7
/
site.yml
117 lines (117 loc) · 2.46 KB
/
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
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
---
- hosts: all
tasks:
- name: Group hosts by OS family
group_by:
key: os_family_{{ ansible_facts['os_family'] }}
- hosts: os_family_Debian
tasks:
- name: Install aptitude
package:
name:
- aptitude
- hosts: all
roles:
- dotfiles
- pyenv
- ufw
- wireless
tasks:
- name: Configure dhcpcd
block:
- name: Send our hostname to the DHCP server
lineinfile:
backrefs: yes
line: hostname
path: /etc/dhcpcd.conf
regexp: "^#hostname$"
- name: Get NTP servers from the DHCP server
lineinfile:
backrefs: yes
line: option ntp_servers
path: /etc/dhcpcd.conf
regexp: "^#option ntp_servers$"
- name: Turn on NTP
command: /usr/bin/timedatectl set-ntp true
- hosts: afp
roles:
- afp
- hosts: basicx
roles:
- audio
- fonts
- x-basic
- xdm
- hosts: dev
roles:
- dev
- hosts: hfs
roles:
- hfs
- hosts: cisa
roles:
- dotfiles-cisa
- piv
- hosts: cisa:&basicx
roles:
- feh-cisa
- hosts: home
roles:
- dotfiles-home
- hosts: home:&basicx
roles:
- feh-home
- hosts: permanent
roles:
- prometheus-node-exporter
- hosts: dickens
tasks:
- name: Install apcupsd
package:
name:
- apcupsd
- hosts: timemachine
tasks:
- name: Setup external drive
block:
- name: Create a timemachine group
group:
name: timemachine
- name: Create the mount point
file:
path: /mnt/my_book
owner: root
group: timemachine
mode: 0770
state: directory
- name: Create fstab entry for external drive
mount:
path: /mnt/my_book
src: UUID=b2e5b378-15f6-3322-9213-df3fcc558ca6
fstype: hfsplus
opts: defaults,nodev,noexec,nosuid,gid=timemachine
state: mounted
tags:
- timemachine
- name: Configure netatalk/afpd
blockinfile:
path: /etc/netatalk/afp.conf
block: |
[Time Machine Volume]
path = /mnt/my_book
time machine = yes
notify:
- Restart netatalk
tags:
- afp
handlers:
- name: Restart netatalk
service:
name: netatalk
state: restarted
- hosts: xfce4
tasks:
- name: Install xfce4
package:
name:
- xfce4