2020-01-29 12:51:25 +01:00
|
|
|
---
|
2023-10-29 15:09:27 +01:00
|
|
|
- name: Combine ranger configuration
|
2021-03-12 23:59:59 +01:00
|
|
|
ansible.builtin.set_fact:
|
2023-10-29 15:09:27 +01:00
|
|
|
ranger: "{{ _ranger | combine(ranger, recursive=True) }}"
|
2020-03-02 15:09:17 +01:00
|
|
|
|
2023-10-29 15:09:27 +01:00
|
|
|
- name: Run optional versionscheck
|
|
|
|
ansible.builtin.include_tasks:
|
|
|
|
file: 'versioncheck.yml'
|
2020-01-29 12:51:25 +01:00
|
|
|
when: submodules_versioncheck|bool
|
|
|
|
|
2021-09-28 01:22:05 +02:00
|
|
|
- name: Update apt cache
|
|
|
|
become: true
|
|
|
|
ansible.builtin.apt:
|
|
|
|
cache_valid_time: 3600
|
|
|
|
update_cache: true
|
|
|
|
when: ansible_pkg_mgr == "apt"
|
|
|
|
|
2023-10-29 15:09:27 +01:00
|
|
|
- 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'
|