changed from ansible_distribution to ansible_os_family
This commit is contained in:
parent
dd9cfa5182
commit
a55d9018b6
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue