role_rem_base_pkgs/tasks/main.yml

58 lines
1.1 KiB
YAML

---
###########################################################################
#
# 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