-
Notifications
You must be signed in to change notification settings - Fork 0
/
playbook-provision.yml
64 lines (60 loc) · 1.5 KB
/
playbook-provision.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
# This file was written by Damien Dart, <[email protected]>. This is
# free and unencumbered software released into the public domain. For
# more information, please refer to the accompanying "UNLICENCE" file.
---
- name: 'Provision development machines'
hosts: 'development'
become: true
roles:
- 'base'
- 'chrome'
- 'composer'
- 'development'
- 'docker'
- 'golang'
- 'imagemagick'
- 'nodejs'
- 'polypane'
- 'python'
- 'rust'
- 'syncthing'
- 'tailscale'
- 'virtualbox'
- 'vuescan'
- 'webserver'
vars:
webserver__vhosts_cleanup: '{{ cli__website_cleanup | default(False) }}'
# Work-related machines are provisioned by other means, so only run what
# is necessary for things like dotfiles, miscellaneous utilities, etc.
- name: 'Provision work-related machines'
hosts: 'development_work'
become: true
roles:
- 'development'
- 'golang'
- 'python'
- name: 'Provision testing and experimentation machines'
hosts: 'playground_production'
become: true
roles:
- 'base'
- 'imagemagick'
- 'lego'
- 'monitoring'
- 'tarsnap'
- 'webserver'
vars:
webserver__vhosts_cleanup: '{{ cli__website_cleanup | default(False) }}'
- name: 'Provision servers for hosting websites'
hosts: 'production'
become: true
roles:
- 'base'
- 'imagemagick'
- 'lego'
- 'livepatch'
- 'monitoring'
- 'tarsnap'
- 'webserver'
vars:
webserver__vhosts_cleanup: '{{ cli__website_cleanup | default(False) }}'