commit 0acdbfb2635b4eedb4eb6ef9a1a48a934a6374dd Author: Radar231 Date: Thu Jul 22 23:14:54 2021 -0400 initial checkin 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