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 
---
- 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: luna
  name:  Install luna
  vars_files: configuration/f2k1de/luna.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: php-fpm
      tags: php-fpm
    - role: nginx
      tags: nginx
    - role: prometheus
      tags: prometheus
    - role: grafana
      tags: grafana
    - role: fritzboxExporter
      tags: fritzboxExporter
    - role: vnstat
      tags: vnstat
    - role: mumble
      tags: mumble
    - role: ctucx-gallery
      tags: ctucx-gallery

- hosts: isanuc
  name:  Install isa-nuc
  vars_files: configuration/f2k1de/isa-nuc.yml
  roles:
    - role: common
      tags: common
    - role: systemd-networkd
      tags: systemd-networkd
    - role: openssh
      tags: [ openssh, common ]
    - role: files
      tags: files
    - role: vnstat
      tags: vnstat
    - role: nginx
      tags: nginx

- hosts: matrix
  name:  Install matrix
  vars_files: configuration/f2k1de/matrix.yml
  roles:
    - role: common
      tags: common
    - role: openssh
      tags: [ openssh, common ]
    - role: files
      tags: files
    - role: vnstat
      tags: vnstat
    - role: postgresql
      tags: postgresql
    - role: nginx
      tags: nginx
    - role: synapse
      tags: synapse