1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_ranger.git synced 2024-08-16 14:19:48 +02:00

fix var name and add centos6 support"

This commit is contained in:
L3D 2020-03-04 23:00:16 +01:00
parent 37b5e2bd62
commit 789d52d645
Signed by: l3d
GPG key ID: CD08445BFF4313D1
2 changed files with 12 additions and 1 deletions

View file

@ -26,6 +26,8 @@
package: package:
name: python3 name: python3
state: present state: present
register: install_python3
ignore_errors: yes
- name: install ranger with python3 - name: install ranger with python3
become: yes become: yes
@ -33,3 +35,12 @@
args: args:
chdir: "{{ ranger_download_directory }}" chdir: "{{ ranger_download_directory }}"
creates: '/usr/local/bin/ranger' creates: '/usr/local/bin/ranger'
when: not install_python3.failed
- name: install ranger with legacy-python
become: yes
command: python setup.py install --optimize=1
args:
chdir: "{{ ranger_download_directory }}"
creates: '/usr/local/bin/ranger'
when: install_python3.failed

View file

@ -4,7 +4,7 @@ playbook_version_number: 1025 # should be over ninethousand
playbook_version_path: 'role-ranger_chaos-bodensee_github.com.version' playbook_version_path: 'role-ranger_chaos-bodensee_github.com.version'
# variables for ranger # variables for ranger
ranger: _ranger:
repo: 'https://github.com/ranger/ranger.git' repo: 'https://github.com/ranger/ranger.git'
branch: 'master' branch: 'master'
download_directory: "{{ x_ansible_download_dir | default('~/.ansible/tmp/downloads/ranger') }}" download_directory: "{{ x_ansible_download_dir | default('~/.ansible/tmp/downloads/ranger') }}"