aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-08-31 16:13:42 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-08-31 16:16:25 +0200
commit0a3675cb6497b70369120cdba0cfb0709d05d0df (patch)
treee9e5b8e90e00195da6d0440506672a0d43d2b815
parentuse role dependencies where appropriate (diff)
downloadinfra-ansible-0a3675cb6497b70369120cdba0cfb0709d05d0df.tar.gz
infra-ansible-0a3675cb6497b70369120cdba0cfb0709d05d0df.zip
add a meta role debian_cloud_server
-rw-r--r--roles/debian_cloud_server/defaults/main.yml12
-rw-r--r--roles/debian_cloud_server/meta/main.yml10
2 files changed, 22 insertions, 0 deletions
diff --git a/roles/debian_cloud_server/defaults/main.yml b/roles/debian_cloud_server/defaults/main.yml
new file mode 100644
index 0000000..12eab69
--- /dev/null
+++ b/roles/debian_cloud_server/defaults/main.yml
@@ -0,0 +1,12 @@
+debian_cloud_server_packages:
+ # Some common & useful packages:
+ - curl
+ - dnsutils
+ - git
+ - man-db
+ - rsync
+ - screen
+ - telnet
+ - tmux
+ - vim
+ - wget
diff --git a/roles/debian_cloud_server/meta/main.yml b/roles/debian_cloud_server/meta/main.yml
new file mode 100644
index 0000000..65a5821
--- /dev/null
+++ b/roles/debian_cloud_server/meta/main.yml
@@ -0,0 +1,10 @@
+dependencies:
+ - role: cloud_init_wait
+ - role: apt
+ vars:
+ apt_extra_packages: '{{ debian_cloud_server_packages }}'
+ apt_unattended: true
+ - role: sshd
+ - role: firewall
+ - role: linux_status
+ - role: journald