diff options
author | Aaron LI <aly@aaronly.me> | 2018-02-21 11:51:21 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2018-02-21 11:51:21 +0800 |
commit | 5cc888e1c9384ae4f0a6f71718ab2acc97c0269d (patch) | |
tree | 3e6bc972f0f406391985179ff232cfbe392884d3 | |
parent | 182ecc547112a050bba4444b8e91ebb1e269baab (diff) | |
download | ansible-dfly-vps-5cc888e1c9384ae4f0a6f71718ab2acc97c0269d.tar.bz2 |
Add deploy playbook with packages role
-rw-r--r-- | deploy.yml | 11 | ||||
-rw-r--r-- | roles/packages/tasks/main.yml | 12 |
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 |