ctucx.git: ansible-configs

My personal ansible roles and playbooks [deprecated in favor of nixos]

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 
118 
119 
120 
121 
122 
123 
124 
125 
126 
127 
128 
129 
130 
131 
132 ---
- hosts: all
  remote_user: root
  gather_facts: false
  tasks:
    - name: "[Alpine] Install Python"
      changed_when: false
      raw: test -e /usr/bin/python || (test -e /sbin/apk && apk update && apk add python3; true)
    - name: "[Archlinux] Install Python"
      changed_when: false
      raw: test -e /usr/bin/python || (test -e /usr/bin/pacman && pacman -Sy --noconfirm python; true)


- hosts: taurus
  name: Install taurus
  vars_files: configuration/taurus.yml
  roles:
    - role: common
      tags: common
    - role: openssh
      tags: [ openssh, common ]
    - role: files
      tags: files
    - role: bind
      tags: bind
    - role: vnstat
      tags: vnstat
    - role: nginx
      tags: nginx
    - role: synapse
      tags: synapse
    - role: pleroma
      tags: pleroma
    - role: backup
      tags: backup

- hosts: lollo
  name:  Install lollo
  vars_files: configuration/lollo.yml
  roles: 
    - role: common
      tags: common
    - role: openssh
      tags: [ openssh, common ]
    - role: files
      tags: files
    - role: systemd-timers
      tags: timers
    - role: systemd-networkd
      tags: systemd-networkd
    - role: vnstat
      tags: vnstat
    - role: php-fpm  
      tags: php-fpm
    - role: nginx
      tags: nginx
    - role: hostapd
      tags: hostapd
    - role: dnsmasq
      tags: dnsmasq
    - role: syncthing
      tags: syncthing
    - role: frpc
      tags:
        - frp
        - frpc
    - role: influxdb
      tags: [ influxdb, smarthome ]
    - role: smartied
      tags: [ smartied, smarthome ]
    - role: rest-server
      tags: [ backup, rest-server, restic ]

- hosts: osterei
  name:  Install osterei
  vars_files: configuration/osterei.yml
  roles: 
    - role: common
      tags: common
    - role: openssh
      tags: [ openssh, common ]
    - role: files
      tags: files
    - role: bind
      tags: bind
    - role: vnstat
      tags: vnstat
    - role: nginx
      tags: nginx
    - role: prometheus 
      tags: prometheus
    - role: grafana
      tags: grafana
    - role: fritzboxExporter
      tags: fritzboxExporter
    - role: frps
      tags: [ frp, frps ]
    - role: oeffisearch
      tags: oeffisearch
    - role: oeffi-web
      tags: oeffi-web
    - role: radicale
      tags: radicale
    - role: gitolite
      tags: gitolite
    - role: cgit
      tags: cgit
    - role: maddy
      tags: maddy
    - role: syncthing
      tags: syncthing
    - role: pleroma
      tags: pleroma
    - role: synapse
      tags: synapse
    - role: ctucx-gallery
      tags: ctucx-gallery
    - role: backup
      tags: backup

- hosts: repo
  name: Install repo.ctu.cx
  vars_files: configuration/repo.yml
  roles:
    - role: common
      tags: common
    - role: openssh
      tags: [ openssh, common ]
    - role: vnstat
      tags: vnstat
    - role: nginx
      tags: nginx