aboutsummaryrefslogtreecommitdiffstats
path: root/roles/common/tasks/main.yml
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/common/tasks/main.yml
parentb1b6258471e8d7294af3c79d4788266080fd012b (diff)
downloaddebian-hpc-71250e63079886396de414981b3cd11075d83007.tar.bz2
Add basic common role
Diffstat (limited to 'roles/common/tasks/main.yml')
-rw-r--r--roles/common/tasks/main.yml16
1 files changed, 16 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: