--- - name: enable terra repo for fedora >=41 become: true when: - ansible_distribution == 'Fedora' - ansible_distribution_major_version|int >= 41 ansible.builtin.command: creates: /etc/yum.repos.d/terra.repo cmd: dnf install -y --nogpgcheck --repofrompath 'terra,https://repos.fyralabs.com/terra$releasever' terra-release - name: enable terra repo for fedora <41 when: - ansible_distribution == 'Fedora' - ansible_distribution_major_version|int < 41 block: - ansible.builtin.command: creates: /etc/yum.repos.d/terra.repo cmd: dnf config-manager --add-repo https://terra.fyralabs.com/terra.repo become: true - ansible.builtin.dnf: name: terra-release state: present