1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_ranger.git synced 2024-08-16 14:19:48 +02:00
ansible_role_ranger/tasks/main.yml
2021-09-28 01:22:05 +02:00

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