summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--molecule/default/Dockerfile.raspberrypi.j22
-rw-r--r--molecule/default/Dockerfile.ubuntu.j27
-rw-r--r--roles/pihole/tasks/main.yml2
3 files changed, 7 insertions, 4 deletions
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
diff --git a/roles/pihole/tasks/main.yml b/roles/pihole/tasks/main.yml
index bb377957..028b95f6 100644
--- a/roles/pihole/tasks/main.yml
+++ b/roles/pihole/tasks/main.yml
@@ -27,6 +27,8 @@
group: "pihole"
mode: "0644"
notify: "Restart pihole"
+ # pihole.toml is being rewritten after successful setup
+ # This is why this task is not idempotent and can't be.
tags:
- molecule-idempotence-notest