Skip to content

Commit

Permalink
fix(ci): Implement a fix to solve problem with systemd in molecule co…
Browse files Browse the repository at this point in the history
…ntainers

See
geerlingguy/docker-debian11-ansible#4 (comment)
for more information about the problem.
  • Loading branch information
steinbrueckri committed Mar 8, 2023
1 parent 98f8030 commit d8e75a4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,9 @@ jobs:
include:
- distro: centos8
playbook: converge-rpm.yml
- distro: centos7
playbook: converge-rpm.yml
- distro: ubuntu2004
playbook: converge-apt.yml
- distro: ubuntu1804
- distro: ubuntu2204
playbook: converge-apt.yml
- distro: debian10
playbook: converge-apt.yml
Expand Down
3 changes: 3 additions & 0 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ rules:
max-spaces-inside-empty: 0
truthy:
allowed-values: ['true', 'false', 'yes', 'no']

ignore:
- .venv/
1 change: 0 additions & 1 deletion get-package-urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"Debian11": "NessusAgent.*debian10_amd64.deb",
"RedHat6": "NessusAgent.*es6.x86_64.rpm",
"RedHat7": "NessusAgent.*es7.x86_64.rpm",
"CentOS7": "NessusAgent.*es7.x86_64.rpm",
"RedHat8": "NessusAgent.*es8.x86_64.rpm",
"CentOS8": "NessusAgent.*es8.x86_64.rpm",
"SLES12": "NessusAgent.*suse12.x86_64.rpm",
Expand Down
9 changes: 5 additions & 4 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ lint: |
platforms:
- name: instance
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest"
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos8}-ansible:latest"
command: ${MOLECULE_DOCKER_COMMAND:-""}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
privileged: true
- /sys/fs/cgroup:/sys/fs/cgroup:rw
pre_build_image: true
privileged: true
cgroupns_mode: host
provisioner:
name: ansible
playbooks:
converge: ${MOLECULE_PLAYBOOK:-converge-rpm.yml}
converge: ${MOLECULE_PLAYBOOK:-converge-rpm.yml}

0 comments on commit d8e75a4

Please sign in to comment.