---
- name: 'Install eget'
  hosts: all

  vars_files:
    - vars/ports.yml
    - vars/vars.yml

  tasks:

    - name: 'Install eget'
      ansible.builtin.import_role:
        name: eget
      vars:
        eget_version: '1.3.4'
        eget_install_path: '/usr/bin/eget'

    - name: 'Install rclone with eget'
      ansible.builtin.command:
        cmd: '/usr/bin/eget rclone/rclone --quiet --upgrade-only --to /usr/bin --tag v1.68.2 --asset zip'
      changed_when: false

    - name: 'Install btop with eget'
      ansible.builtin.command:
        cmd: '/usr/bin/eget aristocratos/btop --quiet --upgrade-only --to /usr/bin --tag v1.4.0'
      changed_when: false