---
- name: "Ensure {{ app_name }} is installed"
  dnf:
    name: timeshift
    state: present
    enablerepo: "{{ 'epel' if ansible_os_distribution != 'Fedora' else omit }}"
    update_cache: "{{ omit if skip_package_cache_update is defined else 'true' }}"
  when:
    - "'cent' in ansible_os_distribution and ansible_os_major_version | int == 7"
    - "not ('cent' in ansible_os_distribution)"

- name: Run generic configuration tasks
  include_tasks: config-Linux.yml
  when: "'btrfs' in root_fs_type.stdout"
