Compare commits
4 Commits
046c3a18b4
...
e7dccbc17d
| Author | SHA1 | Date |
|---|---|---|
|
|
e7dccbc17d | |
|
|
85bb5ea34e | |
|
|
807a2dfe7a | |
|
|
414d8647cd |
|
|
@ -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"]
|
|
||||||
|
|
@ -16,13 +16,8 @@ platforms:
|
||||||
ipv4_address: '192.168.0.1'
|
ipv4_address: '192.168.0.1'
|
||||||
etc_hosts: {zoneminder.test.ansibleguy.net: '192.168.0.2'}
|
etc_hosts: {zoneminder.test.ansibleguy.net: '192.168.0.2'}
|
||||||
groups: [grp_tester]
|
groups: [grp_tester]
|
||||||
|
|
||||||
# docker config
|
|
||||||
docker_host: 'tcp://molecule-docker.local:2375'
|
docker_host: 'tcp://molecule-docker.local:2375'
|
||||||
purge_networks: true
|
image: 'ansible0guy/molecule:debian-latest'
|
||||||
image: 'debian:11-slim'
|
|
||||||
dockerfile: 'Dockerfile_debian11_systemd.j2'
|
|
||||||
build_image: yes
|
|
||||||
tmpfs: ['/tmp', '/run', '/run/lock']
|
tmpfs: ['/tmp', '/run', '/run/lock']
|
||||||
privileged: true
|
privileged: true
|
||||||
command: '/sbin/init'
|
command: '/sbin/init'
|
||||||
|
|
@ -32,13 +27,8 @@ platforms:
|
||||||
- name: 'test-ag-zm'
|
- name: 'test-ag-zm'
|
||||||
ipv4_address: '192.168.0.2'
|
ipv4_address: '192.168.0.2'
|
||||||
groups: [grp_targets]
|
groups: [grp_targets]
|
||||||
|
|
||||||
# docker config
|
|
||||||
docker_host: 'tcp://molecule-docker.local:2375'
|
docker_host: 'tcp://molecule-docker.local:2375'
|
||||||
purge_networks: true
|
image: 'ansible0guy/molecule:debian-latest'
|
||||||
image: 'debian:11-slim'
|
|
||||||
dockerfile: 'Dockerfile_debian11_systemd.j2'
|
|
||||||
build_image: yes
|
|
||||||
tmpfs: ['/tmp', '/run', '/run/lock']
|
tmpfs: ['/tmp', '/run', '/run/lock']
|
||||||
privileged: true
|
privileged: true
|
||||||
command: '/sbin/init'
|
command: '/sbin/init'
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: Prepare
|
||||||
|
hosts: all
|
||||||
|
gather_facts: false
|
||||||
|
tasks:
|
||||||
|
- name: APT Update
|
||||||
|
ansible.builtin.apt:
|
||||||
|
update_cache: true
|
||||||
Loading…
Reference in New Issue