commit b46378df9f047e524b97c006f52a06cd96a3fc6d Author: Radar231 Date: Thu Jul 22 23:14:57 2021 -0400 initial checkin diff --git a/README.md b/README.md new file mode 100644 index 0000000..da48588 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# Ansible Role: rem_base_pkgs + +## Introduction + +This role removes the packages install in the 'base_pkgs' role. This is used +for testing the 'base_pkgs' role. + diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..83a6b26 --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,57 @@ +--- +########################################################################### +# +# This role removes the packages install in the 'base_pkgs' role. This is +# used for testing the 'base_pkgs' role. +# +########################################################################### +# tasks file for rem_base_pkgs + +- name: Remove list of base packages (Ubuntu) + apt: + name: + - build-essential + - curl + - dnsutils + - elinks + - git + - htop + - multitail + - net-tools + - pandoc + - pylint + - python3 + - python3-pip + - tmux + - tree + - vim + - vim-scripts + - wget + state: absent + when: ansible_distribution == "Ubuntu" or ansible_distribution == "Pop!_OS" + +- name: Remove 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: absent + when: ansible_distribution == "CentOS" + +# EOF