Secure Koji setup: add koji user, fix NFS/SELinux, use CentOS Stream 10 repos

This commit is contained in:
Rénich Bon Ćirić 2025-11-12 21:54:15 -06:00
commit 1f301725db
Signed by: renich
GPG key ID: AB2A9F49384FE324
21 changed files with 654 additions and 129 deletions

View file

@ -85,10 +85,25 @@
ansible.builtin.shell:
cmd: "gpg --armor --export 'Koji Signing Key' > {{ koji_pki_dir }}/gpg_key.pub"
creates: "{{ koji_pki_dir }}/gpg_key.pub"
changed_when: false
delegate_to: localhost
run_once: true
- name: Set hostname
ansible.builtin.hostname:
name: "{{ inventory_hostname }}"
when: inventory_hostname != 'localhost'
- name: Enable persistent systemd journal
ansible.builtin.file:
path: /var/log/journal
state: directory
mode: "0755"
when: inventory_hostname != 'localhost'
- name: Flush systemd journal to disk
ansible.builtin.command: journalctl --flush
when: inventory_hostname != 'localhost'
- name: "Remove existing host keys"
ansible.builtin.shell:
cmd: "ssh-keygen -R {{ item }}"