Skip to content

Commit

Permalink
Refactor: move repeating task into a separate playbook
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoszbetka committed Mar 20, 2019
1 parent fa21690 commit fcb6bb9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
8 changes: 8 additions & 0 deletions concent-builder/common_tasks/install-basic-utilities.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- name: Install basic packages
apt:
name:
- ncdu
- tree
- htop
- tmux

9 changes: 2 additions & 7 deletions concent-builder/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,8 @@
- name: Install system updates for Debian
apt: update_cache=yes

- name: Install basic packages
apt:
name:
- ncdu
- tree
- htop
- tmux
- name: include task from `install-basic-utilities.yml` file
include_tasks: common_tasks/install-basic-utilities.yml

- name: Install dependencies
apt:
Expand Down
11 changes: 3 additions & 8 deletions ethnode/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,9 @@
- name: Update apt source repositories list
apt: update_cache=yes

- name: Install basic utilities
apt:
name:
- ncdu
- tree
- htop
- tmux
- vim

- name: include task from `install-basic-utilities.yml` file
include_tasks: ../concent-builder/common_tasks/install-basic-utilities.yml

- name: Install dependencies
apt:
Expand Down

0 comments on commit fcb6bb9

Please sign in to comment.