From 0acdbfb2635b4eedb4eb6ef9a1a48a934a6374dd Mon Sep 17 00:00:00 2001 From: Radar231 Date: Thu, 22 Jul 2021 23:14:54 -0400 Subject: [PATCH] initial checkin --- README.md | 10 ++++++++ tasks/main.yml | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 README.md create mode 100644 tasks/main.yml diff --git a/README.md b/README.md new file mode 100644 index 0000000..62dcbb1 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +# Ansible Role: base_pkgs + +## Introduction + +This role will install a selected set of packages as a desired baseline +package collection. + +There is a separate (but as similar as possible) package list for +Ubuntu and CentOS based hosts. + diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..25495e6 --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,63 @@ +--- +########################################################### +# +# This role will install a selected set of packages as a desired baseline +# package collection. +# +# There is a separate (but as similar as possible) package list for +# Ubuntu and CentOS based hosts. +# +########################################################### +# tasks file for base_pkgs + +- debug: msg="Installing desired list of base packages" + +- name: Installed desired list of base packages (Ubuntu) + apt: + name: + - build-essential + - conspy + - curl + - dnsutils + - elinks + - git + - htop + - multitail + - net-tools + - pandoc + - pylint + - python3 + - python3-pip + - tmux + - tree + - vim + - vim-scripts + - wget + state: latest + when: ansible_distribution == "Ubuntu" or ansible_distribution == "Pop!_OS" + +- name: Installed desired list of base packages (CentOS) + yum: + name: + - bind-utils + - curl + - elinks + - git +# - htop +# - multitail + - less + - man + - net-tools +# - pandoc +# - pylint + - python3 + - python3-pip + - tmux + - tree + - vim + - vim-enhanced + - wget + state: latest + when: ansible_distribution == "CentOS" + +# EOF