From 53a7ecc2067594c2e346eb4de270e388010475b9 Mon Sep 17 00:00:00 2001 From: Sandwich Date: Thu, 12 Mar 2026 05:38:10 +0100 Subject: [PATCH] fix(environment): create /etc/rpm directory before writing macros file --- roles/environment/tasks/_prepare_installer.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/environment/tasks/_prepare_installer.yml b/roles/environment/tasks/_prepare_installer.yml index be62742..ea96aef 100644 --- a/roles/environment/tasks/_prepare_installer.yml +++ b/roles/environment/tasks/_prepare_installer.yml @@ -79,6 +79,13 @@ # bootstrapping RHEL-family distros from the Arch ISO, where the # host rpm/dnf does not trust target distro GPG keys. Package # integrity is verified by the target system's own rpm after reboot. +- name: Create RPM macros directory + when: is_rhel | bool + ansible.builtin.file: + path: /etc/rpm + state: directory + mode: "0755" + - name: Relax RPM Sequoia signature policy for RHEL bootstrap when: is_rhel | bool ansible.builtin.copy: