-
Notifications
You must be signed in to change notification settings - Fork 7
Hostname module does not recognize systemd #1
Comments
The
Similar messages appear for other systemd commands. For instance, |
Running the container with the following command (wich is shown in the README file), I get this:
There was an issue with unmounted volumes. I will implement it inside molecule. |
Visibly, the image wasn't starting using systemd with Molecule. I've modified my platform configuration like so: - name: Fedora
image: geerlingguy/docker-fedora29-ansible
pre_build_image: True
privileged: True
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
command: /usr/sbin/init Now the error message reads like so:
Same thing happens on a vanilla image that I run on the command line. Time to find a more specific way to solve this. But I'm getting there, as simple commandes like |
Excerpt from the molecule documentation for the docker driver:
|
Summary
Using the ansible module Hostname on a docker container using molecule, the following message appears:
However, the task completes without any problems on Ubuntu 16.04 and 18.04.
Ansible version
Configuration
excerp from molecule.yml:
Steps to reproduce
Run the following task on a vanilla container with the image docker-fedora29-ansible:
The text was updated successfully, but these errors were encountered: