Compare commits

...

4 Commits

Author SHA1 Message Date
AnsibleGuy e7dccbc17d
molecule fix systemd-boot 2024-05-04 16:33:20 +02:00
AnsibleGuy 85bb5ea34e
molecule apt-cache fix 2024-05-04 16:31:38 +02:00
AnsibleGuy 807a2dfe7a
updated molecule docker-image 2024-05-04 16:19:16 +02:00
AnsibleGuy 414d8647cd
molecule debian11 => 12 2024-05-04 14:37:22 +02:00
3 changed files with 11 additions and 26 deletions

View File

@ -1,14 +0,0 @@
# docker build -t mantest - < ./Dockerfile.j2
# docker run -it --privileged --name mantest mantest:latest /sbin/init --tmpfs /tmp --tmpfs /run --tmpfs /run/lock
FROM debian:11-slim
ENV container docker
ENV LC_ALL C
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update \
&& apt-get install -y systemd systemd-sysv python3 sudo \
&& apt-get clean
CMD ["/sbin/init"]

View File

@ -16,13 +16,8 @@ platforms:
ipv4_address: '192.168.0.1'
etc_hosts: {zoneminder.test.ansibleguy.net: '192.168.0.2'}
groups: [grp_tester]
# docker config
docker_host: 'tcp://molecule-docker.local:2375'
purge_networks: true
image: 'debian:11-slim'
dockerfile: 'Dockerfile_debian11_systemd.j2'
build_image: yes
image: 'ansible0guy/molecule:debian-latest'
tmpfs: ['/tmp', '/run', '/run/lock']
privileged: true
command: '/sbin/init'
@ -32,13 +27,8 @@ platforms:
- name: 'test-ag-zm'
ipv4_address: '192.168.0.2'
groups: [grp_targets]
# docker config
docker_host: 'tcp://molecule-docker.local:2375'
purge_networks: true
image: 'debian:11-slim'
dockerfile: 'Dockerfile_debian11_systemd.j2'
build_image: yes
image: 'ansible0guy/molecule:debian-latest'
tmpfs: ['/tmp', '/run', '/run/lock']
privileged: true
command: '/sbin/init'

View File

@ -0,0 +1,9 @@
---
- name: Prepare
hosts: all
gather_facts: false
tasks:
- name: APT Update
ansible.builtin.apt:
update_cache: true