From 71ced50b69cb34c4fad19afd4e8540fa270274f1 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Mon, 11 Aug 2025 23:36:25 +0200 Subject: Fix molecule test fail ansible_default_ipv4 is undefined --- molecule/default/Dockerfile.raspberrypi.j2 | 2 +- molecule/default/Dockerfile.ubuntu.j2 | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'molecule/default') diff --git a/molecule/default/Dockerfile.raspberrypi.j2 b/molecule/default/Dockerfile.raspberrypi.j2 index 0345c21f..28bde7c8 100644 --- a/molecule/default/Dockerfile.raspberrypi.j2 +++ b/molecule/default/Dockerfile.raspberrypi.j2 @@ -8,7 +8,7 @@ ENV container docker RUN apt-get update \ && apt-get install -y --no-install-recommends \ - systemd python3 avahi-daemon \ + systemd python3 avahi-daemon iproute2 \ && rm -Rf /var/lib/apt/lists/* \ && rm -Rf /usr/share/doc \ && rm -Rf /usr/share/man \ diff --git a/molecule/default/Dockerfile.ubuntu.j2 b/molecule/default/Dockerfile.ubuntu.j2 index 4cf904ed..c5bf53cc 100644 --- a/molecule/default/Dockerfile.ubuntu.j2 +++ b/molecule/default/Dockerfile.ubuntu.j2 @@ -7,11 +7,12 @@ ARG DEBIAN_FRONTEND=noninteractive ENV container docker RUN apt-get update \ - && apt-get install -y --no-install-recommends locales systemd avahi-daemon python3 \ - && apt-get clean \ + && apt-get install -y --no-install-recommends \ + locales systemd avahi-daemon python3 iproute2 \ && rm -Rf /var/lib/apt/lists/* \ && rm -Rf /usr/share/doc \ - && rm -Rf /usr/share/man + && rm -Rf /usr/share/man \ + && apt-get clean # Fix potential UTF-8 errors with ansible-test. RUN locale-gen en_US.UTF-8 -- cgit v1.2.3