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