From 0a044f572564412df4d33a6899c6c6f007c004f6 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Thu, 2 Mar 2023 22:48:26 -0800 Subject: add ansible playbooks for system initialization --- hetzner/user.yaml | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 hetzner/user.yaml (limited to 'hetzner/user.yaml') diff --git a/hetzner/user.yaml b/hetzner/user.yaml new file mode 100644 index 0000000..bf21687 --- /dev/null +++ b/hetzner/user.yaml @@ -0,0 +1,59 @@ +--- + - name: System initialization + hosts: localhost + become: true + roles: + - role: gantsign.oh-my-zsh + users: + - username: clarkzjw + oh_my_zsh: + theme: robbyrussell + plugins: + - git + update_mode: reminder + update_frequency: 28 + tasks: + - name: Install required packages + apt: + name: + - debian-archive-keyring + - apt-transport-https + - build-essential + - ca-certificates + - lsb-release + - cifs-utils + - vnstat + - python3-dev + - python3-pip + - python3 + - iperf3 + - gnupg2 + - unzip + - rsync + - wget + - sudo + - htop + - curl + - tree + - zip + - vim + - zsh + - git + update_cache: true + + - name: Postgresql + apt: + name: + - postgresql + - postgresql-client + - postgresql-contrib + update_cache: true + + - name: Clean unneeded packages + apt: + autoremove: true + purge: true + + - name: Clean unneeded packages + apt: + autoclean: true -- cgit v1.2.3