cleaning up role

This commit is contained in:
Radar231 2021-07-23 09:50:17 -04:00
parent 389768ed81
commit ea4b20c08f
1 changed files with 18 additions and 1 deletions

View File

@ -4,7 +4,24 @@
# This playbook will install ansible to the target host.
#
###########################################################################
# tasks file for main.yml
# tasks file for ansible role
############################################################
# ensure python3-pip package has been installed
- name: Confirm python-pip3 installed (Ubuntu)
apt:
name:
- python3-pip
state: latest
when: ansible_distribution == "Ubuntu" or ansible_distribution == "Pop!_OS"
- name: Confirm python-pip3 installed (CentOS)
yum:
name:
- python3-pip
state: latest
when: ansible_distribution == "CentOS"
############################################################
# using the pip3 command rather than the pip ansible module