2020-01-29 13:58:23 +01:00
|
|
|
---
|
|
|
|
- name: download ranger git repo
|
|
|
|
git:
|
|
|
|
repo: "{{ ranger_repo }}"
|
2020-02-13 15:13:44 +01:00
|
|
|
dest: "{{ ranger_download_directory }}"
|
2020-01-29 13:58:23 +01:00
|
|
|
version: "{{ ranger_branch }}"
|
|
|
|
|
|
|
|
- name: install build packages
|
|
|
|
become: true
|
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- make
|
|
|
|
- git
|
|
|
|
- vim
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: Run 'install' target as root
|
|
|
|
become: yes
|
|
|
|
make:
|
|
|
|
chdir: "{{ ranger_download_directory }}"
|
|
|
|
target: install
|
|
|
|
when: ansible_python_version[:1] == '3'
|
|
|
|
|
|
|
|
- name: install python3
|
|
|
|
become: true
|
|
|
|
package:
|
|
|
|
name: python3
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: install ranger with python3
|
|
|
|
become: yes
|
|
|
|
command: python3 setup.py install --optimize=1
|
|
|
|
args:
|
|
|
|
chdir: "{{ ranger_download_directory }}"
|
|
|
|
creates: '/usr/local/bin/ranger'
|