-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook.yml
42 lines (39 loc) · 1.32 KB
/
playbook.yml
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
---
- name: Raspberry Pi 5
hosts: raspberrypi
become: true
gather_facts: true
vars_files:
- secrets.yml
pre_tasks:
- name: Upgrade system
ansible.builtin.import_tasks: pre_tasks/upgrade_system.yml
- name: Static IPv4
ansible.builtin.import_tasks: pre_tasks/ipv4.yml
- name: Gather package facts
ansible.builtin.import_tasks: pre_tasks/gather_facts.yml
- name: Ensure the keyrings directory exists
ansible.builtin.import_tasks: pre_tasks/keyrings_dir.yml
- name: Ensure the NVME SSDs are mounted
ansible.builtin.import_tasks: pre_tasks/mount_nvme_ssds.yml
- name: Suppress login message
ansible.builtin.import_tasks: pre_tasks/suppress_login_message.yml
post_tasks:
- name: Display new public key for manual GitHub setup
ansible.builtin.debug:
msg: "Copy this public key into your GitHub account: {{ keypair_result.public_key }}"
when: keypair_result.changed
- name: Post-install instructions for Dotfiles
ansible.builtin.debug:
msg: "To initialize the dotfiles, run the following command: chezmoi init --source=~/.dotfiles --apply"
when: not dotfiles_stat.stat.exists
roles:
- dotfiles
- docker
- caddy
- cloudflare-ddns-updater
- pivpn
- vaultwarden
- immich
- home-assistant
- nextcloud