Secure Koji setup: add koji user, fix NFS/SELinux, use CentOS Stream 10 repos
This commit is contained in:
parent
8b9fd80a0d
commit
1f301725db
21 changed files with 654 additions and 129 deletions
|
|
@ -26,9 +26,13 @@
|
|||
- { src: "kojira.key", dest: "/etc/pki/koji/kojira.key", mode: "0600" }
|
||||
|
||||
- name: "Concatenate certificate and key into a PEM file"
|
||||
ansible.builtin.copy:
|
||||
content: "{{ lookup('file', '/etc/pki/koji/kojira.crt') }}\n{{ lookup('file', '/etc/pki/koji/kojira.key') }}"
|
||||
dest: "/etc/pki/koji/kojira.pem"
|
||||
ansible.builtin.shell: cat /etc/pki/koji/kojira.crt /etc/pki/koji/kojira.key > /etc/pki/koji/kojira.pem
|
||||
args:
|
||||
creates: /etc/pki/koji/kojira.pem
|
||||
|
||||
- name: Set permissions on kojira PEM file
|
||||
ansible.builtin.file:
|
||||
path: /etc/pki/koji/kojira.pem
|
||||
mode: "0600"
|
||||
|
||||
- name: Start and enable kojira service
|
||||
|
|
|
|||
Loading…
Reference in a new issue