From da7465dabddc700f3c4e1bcc6fe84badcb37d9e8 Mon Sep 17 00:00:00 2001 From: Adrien Reslinger Date: Fri, 5 Feb 2021 00:28:58 +0100 Subject: [PATCH] Fix rpm key --- tasks/main.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 04e30fc..51cb77a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -44,9 +44,9 @@ creates: /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:rhcontainerbot:container-selinux.repo warn: no - name: Install container-selinux GPG key - command: - cmd: rpm --import https://download.copr.fedorainfracloud.org/results/rhcontainerbot/container-selinux/pubkey.gpg - warn: no + rpm_key: + key: "https://download.copr.fedorainfracloud.org/results/rhcontainerbot/container-selinux/pubkey.gpg" + state: present - name: Registering libcontainers repository get_url: @@ -56,9 +56,9 @@ group: root mode: 0644 - name: Install libcontainers GPG key - command: - cmd: rpm --import https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/CentOS_{{ ansible_distribution_major_version }}/repodata/repomd.xml.key - warn: no + rpm_key: + key: "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/CentOS_{{ ansible_distribution_major_version }}/repodata/repomd.xml.key" + state: present - name: Registering CRI-O {{ crio_version }} repository get_url: @@ -68,9 +68,9 @@ group: root mode: 0644 - name: Install CRI-O GPG key - command: - cmd: rpm --import https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/{{ crio_version }}/CentOS_{{ ansible_distribution_major_version }}/repodata/repomd.xml.key - warn: no + rpm_key: + key: "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/{{ crio_version }}/CentOS_{{ ansible_distribution_major_version }}/repodata/repomd.xml.key" + state: present - name: Update package manager list package: