summaryrefslogtreecommitdiffstats
path: root/site.yml
blob: b362ac0e1a8b5c28459a720d6750929050eee72e (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
---
- name: Distro bootstrap configure
  gather_facts: true
  hosts:
    - homelab
    - chroot
  roles:
    - role: "network"
      tags: ["required_for_boot"]
    - role: "user"
      tags: ["required_for_boot"]
    - role: "ssh"
      tags: ["required_for_boot"]
    - role: "password_policy"
      # 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"]
    - role: "locales"
    - role: "timezone"

  pre_tasks:
    - name: "Update package cache"
      become: true
      ansible.builtin.package:
        update_cache: true
      tags: ["required_for_boot"]