This repository has been archived by the owner on Nov 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsite.yml
65 lines (53 loc) · 1.7 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
---
# This is the top-level playbook that defines our entire infrastructure.
- hosts: server2.home
user: deploy
become: True
gather_facts: True
roles:
- role: ansible-role-samba
samba_services: "{{ arch_samba_services }}"
- hosts: all
user: deploy
become: True
gather_facts: True
roles:
- grog.management-user
- role: dotfiles
dotfiles_files: "{{ dotfiles.dotfiles_files }}"
dotfiles_zsh_files: "{{ dotfiles.dotfiles_zsh_files }}"
dotfiles_shellrc_files: "{{ dotfiles.dotfiles_shellrc_files }}"
dotfiles_git_files: "{{ dotfiles.dotfiles_git_files }}"
- os_upgrade # up-to-date operating system
- role: package_install
package_list: "{{ package_install.package_list }}"
- ansible-role-timezone
- common
- role: backup
files: "{{ backup.files }}"
cp_bin: "{{ backup.cp_bin }}"
rm_bin: "{{ backup.rm_bin }}"
- role: ansible-role-cron
cron_daemon: "{{ cron_daemon }}"
- ansible-role-systemd-service
- hosts: all
user: deploy
gather_facts: False
roles:
- role: dotfiles
dotfiles_files: "{{ dotfiles.dotfiles_files }}"
dotfiles_zsh_files: "{{ dotfiles.dotfiles_zsh_files }}"
dotfiles_shellrc_files: "{{ dotfiles.dotfiles_shellrc_files }}"
dotfiles_git_files: "{{ dotfiles.dotfiles_git_files }}"
- hosts: all
user: deploy
become: True
become_user: mainuser
gather_facts: False
roles:
- role: dotfiles
dotfiles_files: "{{ dotfiles.dotfiles_files }}"
dotfiles_zsh_files: "{{ dotfiles.dotfiles_zsh_files }}"
dotfiles_shellrc_files: "{{ dotfiles.dotfiles_shellrc_files }}"
dotfiles_git_files: "{{ dotfiles.dotfiles_git_files }}"
- role: webmon