Add some more system configuration

This commit is contained in:
Sam A. 2022-12-25 19:20:23 +01:00
parent 43854ddaee
commit 37237fea64
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
3 changed files with 16 additions and 4 deletions

View file

@ -2,10 +2,11 @@
--- ---
ssh_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPd/4fQV7CL8/KVwbo/phiV5UdXFBIDlkZ+ps8C7FeRf ssh_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPd/4fQV7CL8/KVwbo/phiV5UdXFBIDlkZ+ps8C7FeRf
hostname: pi
timezone: Europe/Copenhagen
hdd_name: storage hdd_name: storage
hdd_mount_point: "/opt/{{ hdd_name }}" hdd_mount_point: "/opt/{{ hdd_name }}"
ssd_name: pi-ssd ssd_name: pi-ssd
ssd_mount_point: "/opt/{{ ssd_name }}" ssd_mount_point: "/opt/{{ ssd_name }}"
timezone: Europe/Copenhagen

View file

@ -1,5 +1,13 @@
# vim: ft=yaml.ansible # vim: ft=yaml.ansible
--- ---
- name: Set hostname
hostname:
name: "{{ hostname }}"
- name: Set timezone
timezone:
name: "{{ timezone }}"
- name: Upgrade system packages - name: Upgrade system packages
apt: apt:
update_cache: true update_cache: true
@ -12,7 +20,10 @@
vars: vars:
pkgs: pkgs:
- apparmor - apparmor
- curl
- git
- haveged - haveged
- needrestart - needrestart
- python3-pip - python3-pip
- ufw - ufw
- unattended-upgrades

View file

@ -1,7 +1,7 @@
# vim: ft=yaml.ansible # vim: ft=yaml.ansible
--- ---
- name: Configure system packages - name: Configure system base
import_tasks: pkgs.yml import_tasks: base.yml
- name: Configure updates - name: Configure updates
import_tasks: updates.yml import_tasks: updates.yml