Skip to content
Snippets Groups Projects
Commit b78e9916 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Add cm gpg key when needed

parent 2041c260
No related branches found
No related tags found
1 merge request!35Fix knightly pipeline
---
- name: Copy yum repo files
- name: Copy yum repo files into place
ansible.builtin.copy:
src: "{{ item }}"
dest: "/etc/yum.repos.d/{{ item }}"
......@@ -8,6 +8,15 @@
mode: 0644
loop: "{{ yum_repo_files }}"
- name: Copy CM repo GPG key
ansible.builtin.copy:
src: RPM-GPG-KEY-cm
dest: /etc/pki/rpm-gpg/RPM-GPG-KEY-cm
owner: root
group: root
mode: 0644
when: "'cm.repo' in yum_repo_files"
- name: Install packages
ansible.builtin.yum:
state: present
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment