aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-06-14 23:24:17 +0800
committerAaron LI <aly@aaronly.me>2017-06-14 23:24:17 +0800
commit71250e63079886396de414981b3cd11075d83007 (patch)
treefc0ea7e007f73eb298261c794e1e6d6111665653 /roles
parentb1b6258471e8d7294af3c79d4788266080fd012b (diff)
downloaddebian-hpc-71250e63079886396de414981b3cd11075d83007.tar.bz2
Add basic common role
Diffstat (limited to 'roles')
-rw-r--r--roles/common/tasks/main.yml16
-rw-r--r--roles/common/vars/main.yml10
2 files changed, 26 insertions, 0 deletions
diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml
new file mode 100644
index 0000000..ddcb6be
--- /dev/null
+++ b/roles/common/tasks/main.yml
@@ -0,0 +1,16 @@
+---
+- name: Ensure the APT cache is up-to-date
+ apt:
+ update_cache: yes
+ cache_valid_time: 3600
+
+- name: Perform a full system upgrade
+ apt:
+ upgrade: "safe"
+
+- name: Install basic common packages
+ apt:
+ name: "{{ item }}"
+ with_items: "{{ common_packages }}"
+
+# vim: set ft=yaml sw=2:
diff --git a/roles/common/vars/main.yml b/roles/common/vars/main.yml
new file mode 100644
index 0000000..7a7c360
--- /dev/null
+++ b/roles/common/vars/main.yml
@@ -0,0 +1,10 @@
+---
+
+# Common/basic packages for both master and nodes
+common_packages:
+ - aptitude
+ - chrony
+ - vim
+ - zsh
+
+# vim: set ft=yaml sw=2: