Add some more system configuration
This commit is contained in:
parent
43854ddaee
commit
37237fea64
|
@ -2,10 +2,11 @@
|
|||
---
|
||||
ssh_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPd/4fQV7CL8/KVwbo/phiV5UdXFBIDlkZ+ps8C7FeRf
|
||||
|
||||
hostname: pi
|
||||
timezone: Europe/Copenhagen
|
||||
|
||||
hdd_name: storage
|
||||
hdd_mount_point: "/opt/{{ hdd_name }}"
|
||||
|
||||
ssd_name: pi-ssd
|
||||
ssd_mount_point: "/opt/{{ ssd_name }}"
|
||||
|
||||
timezone: Europe/Copenhagen
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
# vim: ft=yaml.ansible
|
||||
---
|
||||
- name: Set hostname
|
||||
hostname:
|
||||
name: "{{ hostname }}"
|
||||
|
||||
- name: Set timezone
|
||||
timezone:
|
||||
name: "{{ timezone }}"
|
||||
|
||||
- name: Upgrade system packages
|
||||
apt:
|
||||
update_cache: true
|
||||
|
@ -12,7 +20,10 @@
|
|||
vars:
|
||||
pkgs:
|
||||
- apparmor
|
||||
- curl
|
||||
- git
|
||||
- haveged
|
||||
- needrestart
|
||||
- python3-pip
|
||||
- ufw
|
||||
- unattended-upgrades
|
|
@ -1,7 +1,7 @@
|
|||
# vim: ft=yaml.ansible
|
||||
---
|
||||
- name: Configure system packages
|
||||
import_tasks: pkgs.yml
|
||||
- name: Configure system base
|
||||
import_tasks: base.yml
|
||||
|
||||
- name: Configure updates
|
||||
import_tasks: updates.yml
|
||||
|
|
Reference in a new issue