Compare commits
5 Commits
38466a4dee
...
2d13301250
| Author | SHA1 | Date |
|---|---|---|
|
|
2d13301250 | |
|
|
3efa639a11 | |
|
|
7958e28c21 | |
|
|
77b6ea1efc | |
|
|
8c220ddeaf |
|
|
@ -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"]
|
|
||||||
|
|
@ -15,13 +15,8 @@ platforms:
|
||||||
- name: 'test-ag-apache'
|
- name: 'test-ag-apache'
|
||||||
ipv4_address: '192.168.11.1'
|
ipv4_address: '192.168.11.1'
|
||||||
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'
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: Prepare
|
||||||
|
hosts: all
|
||||||
|
gather_facts: false
|
||||||
|
tasks:
|
||||||
|
- name: APT Update
|
||||||
|
ansible.builtin.apt:
|
||||||
|
update_cache: true
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
state: absent
|
state: absent
|
||||||
when: >
|
when: >
|
||||||
force_removal or
|
force_removal or
|
||||||
removal_prompt.user_input == 'yes'
|
removal_prompt.user_input | bool
|
||||||
loop:
|
loop:
|
||||||
- "/etc/apache2/sites-enabled/site_{{ name }}.conf"
|
- "/etc/apache2/sites-enabled/site_{{ name }}.conf"
|
||||||
- "/etc/apache2/sites-available/site_{{ name }}.conf"
|
- "/etc/apache2/sites-available/site_{{ name }}.conf"
|
||||||
|
|
@ -30,4 +30,4 @@
|
||||||
when: >
|
when: >
|
||||||
site.mode == 'serve' and
|
site.mode == 'serve' and
|
||||||
(force_removal or
|
(force_removal or
|
||||||
removal_prompt.user_input == 'yes')
|
removal_prompt.user_input | bool)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue