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 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 state: latest
when: ansible_os_family == "Debian" 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 # using the pip3 command rather than the pip ansible module
# because ansible can get in a weird state depending on the # because ansible can get in a weird state depending on the
# python version used on the target host (python 2 on CentOS 7 # python version used on the target host
# vs python 3 otherwise)
- debug: msg="Installing ansible via pip" - debug: msg="Installing ansible via pip"