summaryrefslogtreecommitdiffstats
path: root/site.yml
blob: 0ced1e0b7451cda1a2153db0fc7167edc07899e0 (plain) (blame)
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
---
- name: "Distro bootstrap configure"
  gather_facts: true
  # Password policy is technically not required for boot,
  # But it's quite nice to configure it for boot and therefore
  # enforce the required policies/configurations wanted for the first passwrod change
  tags: ["required_for_boot"]
  hosts: all
  roles:
    - role: "hostname"
    - role: "network"
    - role: "user"
    - role: "ssh"
    - role: "password_policy"
  pre_tasks:
    - name: "Update package cache"
      become: true
      ansible.builtin.package:
        update_cache: true
      async: 60
      poll: 5
      failed_when: false

- name: "Dev machines configure"
  gather_facts: true
  hosts:
    - archlinux.local
    - ubuntu.local
  roles:
    - role: "locales"
    - role: "timezone"
    - role: "wireguard"
    - role: "homebrew"
    - role: "python"
    - role: "go"
    - role: "docker"
    - role: "podman"

- name: "Raspberry Pi configure"
  gather_facts: true
  hosts:
    - rpi5.local
  become: true
  roles:
    - role: "locales"
    - role: "timezone"
    - role: "wireguard"
    - role: "wireguard_gateway"
    - role: "pihole"