cleanup: removed centos code, cleaned up debian & ubuntu references
This commit is contained in:
parent
44fda01ca1
commit
374d4a342b
|
@ -4,5 +4,3 @@
|
|||
|
||||
This role will install ansible on the target host.
|
||||
|
||||
This role should work on both Ubuntu and CentOS based hosts.
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue