Skip to content

Commit

Permalink
updated molecule docker-image
Browse files Browse the repository at this point in the history
  • Loading branch information
ansibleguy committed May 4, 2024
1 parent 60c2e49 commit e673127
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 24 deletions.
14 changes: 0 additions & 14 deletions molecule/default/Dockerfile_debian12_systemd.j2

This file was deleted.

11 changes: 3 additions & 8 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,10 @@ _references:
all: &docker_all
docker_host: 'tcp://molecule-docker.local:2375'
# docker_host: 'unix://var/run/docker.sock' # localhost

Check warning on line 8 in molecule/default/molecule.yml

View workflow job for this annotation

GitHub Actions / build

8:7 [comments-indentation] comment not indented like content
purge_networks: true
image: 'debian:12-slim'
# for docker systemd config see: https://serverfault.com/questions/1053187/systemd-fails-to-run-in-a-docker-container-when-using-cgroupv2-cgroupns-priva
dockerfile: 'Dockerfile_debian12_systemd.j2'
build_image: yes
tmpfs: ['/tmp', '/run', '/run/lock']
image: 'ansible0guy/molecule:debian-latest'

Check failure on line 9 in molecule/default/molecule.yml

View workflow job for this annotation

GitHub Actions / build

9:9 syntax error: expected <block end>, but found '<block mapping start>' (syntax)
tmpfs: ['/tmp', '/run', '/run/lock']
privileged: true
command: '/sbin/init'
sysctls:
sysctls:
'net.ipv4.ip_forward': 1
'net.ipv4.conf.all.arp_filter': 0
'net.ipv4.conf.all.rp_filter': 2
Expand Down
4 changes: 2 additions & 2 deletions molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
tasks:
- name: Installing dependencies
ansible.builtin.apt:
pkg: ['iputils-ping', 'ufw', 'iproute2']
pkg: ['iputils-ping', 'ufw']
state: present
update_cache: yes

- name: Installing troubleshooting tools
ansible.builtin.apt:
pkg: ['procps', 'net-tools', 'traceroute', 'vim', 'nano', 'tcpdump']
pkg: ['traceroute', 'tcpdump']
state: present

- name: Allowing traffic by ufw
Expand Down

0 comments on commit e673127

Please sign in to comment.