summaryrefslogtreecommitdiffstats
path: root/site.yml
blob: acd3793832a8d002ff21ed28cdb5730476994aeb (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
---
- 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:
    - archlinux.local
    - ubuntu.local
    - rpi5.local
  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

- name: "Distro configure common roles"
  gather_facts: true
  hosts:
    - archlinux.local
    - ubuntu.local
    - rpi5.local
  roles:
    - role: "locales"
    - role: "timezone"