mirror of https://github.com/ceph/ceph-ansible.git
24 lines
726 B
YAML
24 lines
726 B
YAML
|
---
|
||
|
- name: check for python
|
||
|
stat:
|
||
|
path: /usr/bin/python
|
||
|
ignore_errors: yes
|
||
|
register: systempython
|
||
|
|
||
|
- name: install python for debian based systems
|
||
|
raw: apt-get -y install python-simplejson
|
||
|
ignore_errors: yes
|
||
|
when:
|
||
|
- systempython.stat is undefined or not systempython.stat.exists
|
||
|
|
||
|
- name: install python for fedora
|
||
|
raw: dnf -y install python3; ln -sf /usr/bin/python3 /usr/bin/python creates=/usr/bin/python
|
||
|
ignore_errors: yes
|
||
|
when:
|
||
|
- systempython.stat is undefined or not systempython.stat.exists
|
||
|
|
||
|
- name: install python for opensuse
|
||
|
raw: zypper -n install python-base creates=/usr/bin/python2.7
|
||
|
ignore_errors: yes
|
||
|
when:
|
||
|
- systempython.stat is undefined or not systempython.stat.exists
|