Renamed infra/image/inventory to build-inventory, dropped interpreter

This change also removed ansible_python_interpreter setting in the
inventory as the interpreter should be discovered by ansible for the
distributions.

The dockerfiles have been adapted to not force the installation of
python3 for CentOS-Stream 8, 9 and 10.
This commit is contained in:
Thomas Woerner
2024-09-16 14:11:24 +02:00
parent 50ba326ed8
commit 9ebc365d69
5 changed files with 2 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
[ipaserver] [ipaserver]
ansible-freeipa-image-builder ansible_connection=podman ansible_python_interpreter=/usr/bin/python3 ansible-freeipa-image-builder ansible_connection=podman
[ipaserver:vars] [ipaserver:vars]
ipaadmin_password=SomeADMINpassword ipaadmin_password=SomeADMINpassword

View File

@@ -68,7 +68,7 @@ then
deploy_playbook="${TOPDIR}/playbooks/install-server.yml" deploy_playbook="${TOPDIR}/playbooks/install-server.yml"
[ -f "${deploy_playbook}" ] || die "Can't find playbook '${deploy_playbook}'" [ -f "${deploy_playbook}" ] || die "Can't find playbook '${deploy_playbook}'"
inventory_file="${BASEDIR}/inventory" inventory_file="${BASEDIR}/build-inventory"
[ -f "${inventory_file}" ] || die "Can't find inventory '${inventory_file}'" [ -f "${inventory_file}" ] || die "Can't find inventory '${inventory_file}'"
fi fi

View File

@@ -4,7 +4,6 @@ ENV container=podman
RUN rm -fv /var/cache/dnf/metadata_lock.pid; \ RUN rm -fv /var/cache/dnf/metadata_lock.pid; \
dnf makecache; \ dnf makecache; \
dnf --assumeyes install \ dnf --assumeyes install \
/usr/bin/python3 \
/usr/bin/dnf-3 \ /usr/bin/dnf-3 \
sudo \ sudo \
bash \ bash \

View File

@@ -7,8 +7,6 @@ sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo; \
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo; \ sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo; \
dnf makecache; \ dnf makecache; \
dnf --assumeyes install \ dnf --assumeyes install \
/usr/bin/python3 \
/usr/bin/python3-config \
/usr/bin/dnf-3 \ /usr/bin/dnf-3 \
sudo \ sudo \
bash \ bash \

View File

@@ -4,7 +4,6 @@ ENV container=podman
RUN rm -fv /var/cache/dnf/metadata_lock.pid; \ RUN rm -fv /var/cache/dnf/metadata_lock.pid; \
dnf makecache; \ dnf makecache; \
dnf --assumeyes install \ dnf --assumeyes install \
/usr/bin/python3 \
/usr/bin/dnf-3 \ /usr/bin/dnf-3 \
sudo \ sudo \
bash \ bash \