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

21 lines
527 B
YAML
Raw Normal View History

2020-01-29 12:51:25 +01:00
---
2020-03-02 15:09:17 +01:00
- name: combine ranger configuration
2021-03-12 23:59:59 +01:00
ansible.builtin.set_fact:
2020-03-02 15:09:17 +01:00
ranger: "{{ _ranger|combine(ranger, recursive=True) }}"
2021-03-12 23:59:59 +01:00
- name: run optional versionscheck
ansible.builtin.include_tasks: versioncheck.yml
2020-01-29 12:51:25 +01:00
when: submodules_versioncheck|bool
2020-01-29 13:58:23 +01:00
- name: install ranger
2021-03-12 23:59:59 +01:00
become: true
ansible.builtin.package:
2020-01-29 13:58:23 +01:00
name: ranger
state: present
register: install_ranger
2021-03-12 23:59:59 +01:00
ignore_errors: true
2020-01-29 13:58:23 +01:00
2021-03-12 23:59:59 +01:00
- name: compile ranger if install failed
ansible.builtin.include_tasks: compile_ranger.yml
2020-01-29 13:58:23 +01:00
when: install_ranger.failed