diff --git a/roles/add-repository/tasks/main.yml b/roles/add-repository/tasks/main.yml index 8903dc909..856e068bd 100644 --- a/roles/add-repository/tasks/main.yml +++ b/roles/add-repository/tasks/main.yml @@ -20,6 +20,10 @@ tags: add_repo - block: # RedHat/CentOS + - name: Add repository GPG key + ansible.builtin.command: "rpm --import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux-{{ ansible_distribution_major_version }}" + when: ansible_distribution == "AlmaLinux" + - name: Add repository ansible.builtin.yum_repository: name: "{{ item.name }}"