From 5cc888e1c9384ae4f0a6f71718ab2acc97c0269d Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Wed, 21 Feb 2018 11:51:21 +0800 Subject: Add deploy playbook with packages role --- deploy.yml | 11 +++++++++++ roles/packages/tasks/main.yml | 12 ++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 deploy.yml create mode 100644 roles/packages/tasks/main.yml 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 -- cgit v1.2.2