cleanup: removed centos code, cleaned up debian & ubuntu references

This commit is contained in:
Radar231 2022-01-03 10:08:28 -05:00
parent 44fda01ca1
commit 374d4a342b
2 changed files with 1 additions and 11 deletions

View File

@ -4,5 +4,3 @@
This role will install ansible on the target host.
This role should work on both Ubuntu and CentOS based hosts.

View File

@ -16,18 +16,10 @@
state: latest
when: ansible_os_family == "Debian"
- 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
# because ansible can get in a weird state depending on the
# python version used on the target host (python 2 on CentOS 7
# vs python 3 otherwise)
# python version used on the target host
- debug: msg="Installing ansible via pip"