added mint to ubuntu repos recognized

This commit is contained in:
Radar231 2021-10-06 09:46:03 -04:00
parent 8162c65aa2
commit c3c1a3c7dc
1 changed files with 3 additions and 3 deletions

View File

@ -16,18 +16,18 @@
apt:
name: "*"
state: latest
when: ansible_distribution == "Ubuntu" or ansible_distribution == "Pop!_OS"
when: ansible_distribution == "Ubuntu" or ansible_distribution == "Pop!_OS" or ansible_distribution == "Linux Mint"
- name: Clean up the autoremove packages (Ubuntu)
apt:
autoremove: true
purge: true
when: ansible_distribution == "Ubuntu" or ansible_distribution == "Pop!_OS"
when: ansible_distribution == "Ubuntu" or ansible_distribution == "Pop!_OS" or ansible_distribution == "Linux Mint"
- name: Clean up any packages left in the 'rc' state (Ubuntu)
shell:
cmd: /usr/bin/apt -y --purge remove $(dpkg -l | grep "^rc " | sed 's/ \+/ /g' | cut -d ' ' -f2)
when: ansible_distribution == "Ubuntu" or ansible_distribution == "Pop!_OS"
when: ansible_distribution == "Ubuntu" or ansible_distribution == "Pop!_OS" or ansible_distribution == "Linux Mint"
- name: Upgraded packages (CentOS)
yum: