This repository has been archived on 2023-12-29. You can view files and clone it, but cannot push or open issues or pull requests.
pi-ansible/roles/os_config/tasks/base.yml

30 lines
468 B
YAML
Raw Normal View History

2022-12-22 19:18:27 +00:00
# vim: ft=yaml.ansible
---
2022-12-25 18:20:23 +00:00
- name: Set hostname
hostname:
name: "{{ hostname }}"
- name: Set timezone
timezone:
name: "{{ timezone }}"
2022-12-22 19:18:27 +00:00
- name: Upgrade system packages
2022-12-22 22:34:09 +00:00
apt:
2022-12-22 19:18:27 +00:00
update_cache: true
upgrade: full
- name: Install packages via apt
apt:
name: "{{ pkgs }}"
state: present
vars:
pkgs:
- apparmor
2022-12-25 18:20:23 +00:00
- curl
- git
2022-12-22 19:18:27 +00:00
- haveged
2022-12-23 15:57:37 +00:00
- needrestart
- python3-pip
2022-12-22 19:18:27 +00:00
- ufw
2022-12-25 18:20:23 +00:00
- unattended-upgrades