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
|
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
|
|
||||||
|
|
|
@ -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
|
|
@ -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
|
||||||
|
|
Reference in a new issue