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: 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. description: Ansible role to install the ranger file manager on linux. ranger is a console file manager with VI key bindings.
role_name: ranger role_name: ranger
license: MIT license: MIT
min_ansible_version: 2.8 min_ansible_version: 2.8
github_branch: master github_branch: main
platforms: platforms:
- name: Archlinux - name: Archlinux
versions: all versions: all

View file

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

View file

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