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 will install ansible on the target host.
|
||||||
|
|
||||||
This role should work on both Ubuntu and CentOS based hosts.
|
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue