From bdcabbe81fea5c159f3d7553860c7fdf51d8fec8 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 3 Nov 2024 14:33:47 +0100 Subject: split out debian_server from debian_cloud_server Additionally, some refactoring. --- roles/debian_server/README.md | 2 ++ roles/debian_server/defaults/main.yml | 16 ++++++++++++++++ roles/debian_server/meta/main.yml | 9 +++++++++ 3 files changed, 27 insertions(+) create mode 100644 roles/debian_server/README.md create mode 100644 roles/debian_server/defaults/main.yml create mode 100644 roles/debian_server/meta/main.yml (limited to 'roles/debian_server') diff --git a/roles/debian_server/README.md b/roles/debian_server/README.md new file mode 100644 index 0000000..ae55607 --- /dev/null +++ b/roles/debian_server/README.md @@ -0,0 +1,2 @@ +This is a meta-role, it simply pulls in other roles as dependencies. It's used +for general maintenance of all my Debian-based machines. diff --git a/roles/debian_server/defaults/main.yml b/roles/debian_server/defaults/main.yml new file mode 100644 index 0000000..80776a4 --- /dev/null +++ b/roles/debian_server/defaults/main.yml @@ -0,0 +1,16 @@ +debian_server_packages: + # Some common & useful packages: + - curl + - dnsutils + - git + - man-db + - ncat + - net-tools + - nmap + - rsync + - screen + - telnet + - tmux + - vim + - wget +debian_server_unattended_upgrades: false diff --git a/roles/debian_server/meta/main.yml b/roles/debian_server/meta/main.yml new file mode 100644 index 0000000..10d3eb8 --- /dev/null +++ b/roles/debian_server/meta/main.yml @@ -0,0 +1,9 @@ +dependencies: + - role: apt + vars: + apt_packages: '{{ debian_server_packages }}' + apt_unattended_upgrades: '{{ debian_server_unattended_upgrades }}' + - role: sshd + - role: firewall + - role: linux_status + - role: journald -- cgit v1.2.3