aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--deploy.yml11
-rw-r--r--roles/packages/tasks/main.yml12
2 files changed, 23 insertions, 0 deletions
diff --git a/deploy.yml b/deploy.yml
new file mode 100644
index 0000000..e83139a
--- /dev/null
+++ b/deploy.yml
@@ -0,0 +1,11 @@
+---
+- name: Deploy configurations
+ hosts: "{{ host | default('all') }}"
+ user: "{{ deploy_user }}"
+ become: true
+
+ roles:
+ - packages
+ - dns
+
+# vim: set ft=yaml sw=2: #
diff --git a/roles/packages/tasks/main.yml b/roles/packages/tasks/main.yml
new file mode 100644
index 0000000..5dddeab
--- /dev/null
+++ b/roles/packages/tasks/main.yml
@@ -0,0 +1,12 @@
+---
+- name: update packages database
+ command: pkg update
+
+- name: install packages
+ pkgng:
+ name: "{{ item }}"
+ state: present
+ with_items:
+ - tmux
+ - vim-lite
+ - mosh