mirror of
https://github.com/roles-ansible/ansible_role_ranger.git
synced 2024-08-16 14:19:48 +02:00
27 lines
674 B
YAML
27 lines
674 B
YAML
---
|
|
- name: combine ranger configuration
|
|
ansible.builtin.set_fact:
|
|
ranger: "{{ _ranger|combine(ranger, recursive=True) }}"
|
|
|
|
- name: run optional versionscheck
|
|
ansible.builtin.include_tasks: 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
|
|
become: true
|
|
ansible.builtin.package:
|
|
name: ranger
|
|
state: present
|
|
register: install_ranger
|
|
ignore_errors: true
|
|
|
|
- name: compile ranger if install failed
|
|
ansible.builtin.include_tasks: compile_ranger.yml
|
|
when: install_ranger.failed
|