mirror of
https://github.com/roles-ansible/ansible_role_ranger.git
synced 2024-08-16 14:19:48 +02:00
28 lines
702 B
YAML
28 lines
702 B
YAML
---
|
|
- name: Combine ranger configuration
|
|
ansible.builtin.set_fact:
|
|
ranger: "{{ _ranger | combine(ranger, recursive=True) }}"
|
|
|
|
- name: Run optional versionscheck
|
|
ansible.builtin.include_tasks:
|
|
file: 'versioncheck.yml'
|
|
when: submodules_versioncheck|bool
|
|
|
|
- name: Update apt cache
|
|
become: true
|
|
ansible.builtin.apt:
|
|
cache_valid_time: 3600
|
|
update_cache: true
|
|
when: ansible_pkg_mgr == "apt"
|
|
|
|
- name: Install ranger
|
|
block:
|
|
- name: Install ranger
|
|
become: true
|
|
ansible.builtin.package:
|
|
name: ranger
|
|
state: present
|
|
rescue:
|
|
- name: Compile ranger if regular install failed
|
|
ansible.builtin.include_tasks:
|
|
file: 'compile_ranger.yml'
|