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:
parent
37b5e2bd62
commit
789d52d645
2 changed files with 12 additions and 1 deletions
|
@ -26,6 +26,8 @@
|
|||
package:
|
||||
name: python3
|
||||
state: present
|
||||
register: install_python3
|
||||
ignore_errors: yes
|
||||
|
||||
- name: install ranger with python3
|
||||
become: yes
|
||||
|
@ -33,3 +35,12 @@
|
|||
args:
|
||||
chdir: "{{ ranger_download_directory }}"
|
||||
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
|
||||
|
|
|
@ -4,7 +4,7 @@ playbook_version_number: 1025 # should be over ninethousand
|
|||
playbook_version_path: 'role-ranger_chaos-bodensee_github.com.version'
|
||||
|
||||
# variables for ranger
|
||||
ranger:
|
||||
_ranger:
|
||||
repo: 'https://github.com/ranger/ranger.git'
|
||||
branch: 'master'
|
||||
download_directory: "{{ x_ansible_download_dir | default('~/.ansible/tmp/downloads/ranger') }}"
|
||||
|
|
Loading…
Reference in a new issue