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

update new naming scheme

This commit is contained in:
L3D 2021-03-12 23:59:59 +01:00
parent c4ee96e0e7
commit 2850f5ad75
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 21 additions and 19 deletions

View file

@ -1,11 +1,11 @@
---
galaxy_info:
author: L3D
author: do1jlr
description: Ansible role to install the ranger file manager on linux. ranger is a console file manager with VI key bindings.
role_name: ranger
license: MIT
min_ansible_version: 2.8
github_branch: master
github_branch: main
platforms:
- name: Archlinux
versions: all

View file

@ -1,13 +1,13 @@
---
- name: download ranger git repo
git:
ansible.builtin.git:
repo: "{{ ranger.repo }}"
dest: "{{ ranger.download_directory }}"
version: "{{ ranger.branch }}"
- name: install build packages
become: true
package:
ansible.builtin.package:
name:
- make
- git
@ -15,23 +15,23 @@
state: present
- name: Run 'install' target as root
become: yes
make:
become: true
community.general.make:
chdir: "{{ ranger.download_directory }}"
target: install
when: ansible_python_version[:1] == '3'
- name: install python3
become: true
package:
ansible.builtin.package:
name: python3
state: present
register: install_python3
ignore_errors: yes
ignore_errors: true
- name: install ranger with python3
become: yes
command: python3 setup.py install --optimize=1
become: true
ansible.builtin.command: python3 setup.py install --optimize=1
args:
chdir: "{{ ranger.download_directory }}"
creates: '/usr/local/bin/ranger'
@ -39,7 +39,7 @@
- name: install legacy-python f00
become: true
package:
ansible.builtin.package:
name:
- python
- python-setuptools
@ -47,8 +47,8 @@
when: install_python3.failed
- name: install ranger with legacy-python
become: yes
command: python setup.py install --optimize=1
become: true
ansible.builtin.command: python setup.py install --optimize=1
args:
chdir: "{{ ranger.download_directory }}"
creates: '/usr/local/bin/ranger'

View file

@ -1,18 +1,20 @@
---
- name: combine ranger configuration
set_fact:
ansible.builtin.set_fact:
ranger: "{{ _ranger|combine(ranger, recursive=True) }}"
- include_tasks: versioncheck.yml
- name: run optional versionscheck
ansible.builtin.include_tasks: versioncheck.yml
when: submodules_versioncheck|bool
- name: install ranger
become: yes
package:
become: true
ansible.builtin.package:
name: ranger
state: present
register: install_ranger
ignore_errors: yes
ignore_errors: true
- include_tasks: compile_ranger.yml
- name: compile ranger if install failed
ansible.builtin.include_tasks: compile_ranger.yml
when: install_ranger.failed