Skip to content

Commit

Permalink
Add container env var with value docker for AmazonLinux
Browse files Browse the repository at this point in the history
Without this, we get an error of the form "Failed to get D-Bus
connection: No such file or directory" when Ansible attempts to run
any systemctl commands.

I'm not sure exactly why this is necessary, but I came across it here:
moby/moby#7459
  • Loading branch information
jsf9k committed Dec 13, 2022
1 parent bf3dcfc commit c7a132b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions molecule/default/molecule-with-systemd.yml
Expand Up @@ -17,6 +17,8 @@ lint: |
platforms:
- cgroupns_mode: host
command: /lib/systemd/systemd
env:
container: docker
image: geerlingguy/docker-amazonlinux2-ansible:latest
name: amazonlinux2-systemd
platform: amd64
Expand Down

0 comments on commit c7a132b

Please sign in to comment.