changed from ansible_distribution to ansible_os_family

This commit is contained in:
Radar231 2021-12-30 14:21:57 -05:00
parent dd9cfa5182
commit a55d9018b6
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
###########################################################################
# tasks file for rem_base_pkgs
- name: Remove list of base packages (Ubuntu)
- name: Remove list of base packages (Ubuntu/Debian)
apt:
name:
- build-essential
@ -28,7 +28,7 @@
- vim-scripts
- wget
state: absent
when: ansible_distribution == "Ubuntu" or ansible_distribution == "Pop!_OS" or ansible_distribution == "Linux Mint"
when: ansible_os_family == "Debian"
- name: Remove list of base packages (CentOS)
yum: