From aaee2b443df303ed1545e9ff2c6ea141167789d2 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 9 Dec 2019 20:55:47 +0000 Subject: [PATCH] Add base packages --- ansible/main.yml | 2 +- ansible/roles/base/tasks/main.yml | 5 +++++ .../roles/{ntp/tasks/main.yml => base/tasks/ntp.yml} | 0 ansible/roles/base/tasks/packages.yml | 12 ++++++++++++ 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 ansible/roles/base/tasks/main.yml rename ansible/roles/{ntp/tasks/main.yml => base/tasks/ntp.yml} (100%) create mode 100644 ansible/roles/base/tasks/packages.yml diff --git a/ansible/main.yml b/ansible/main.yml index ed62ff6..cfbb073 100644 --- a/ansible/main.yml +++ b/ansible/main.yml @@ -1,6 +1,6 @@ - hosts: all roles: - - ntp + - base - hosts: casey roles: diff --git a/ansible/roles/base/tasks/main.yml b/ansible/roles/base/tasks/main.yml new file mode 100644 index 0000000..7128da1 --- /dev/null +++ b/ansible/roles/base/tasks/main.yml @@ -0,0 +1,5 @@ +- name: NTP + include: ntp.yml + +- name: Packages + include: packages.yml diff --git a/ansible/roles/ntp/tasks/main.yml b/ansible/roles/base/tasks/ntp.yml similarity index 100% rename from ansible/roles/ntp/tasks/main.yml rename to ansible/roles/base/tasks/ntp.yml diff --git a/ansible/roles/base/tasks/packages.yml b/ansible/roles/base/tasks/packages.yml new file mode 100644 index 0000000..4e7392a --- /dev/null +++ b/ansible/roles/base/tasks/packages.yml @@ -0,0 +1,12 @@ +- name: "Install Base Packages" + apt: + name: "{{ item }}" + become: true + become_user: root + loop: + - htop + - neofetch + - net-tools + - speedtest-cli + - sudo + - vim