Skip to content
Snippets Groups Projects
Select Git revision
  • Add_buttons_01
  • main default protected
2 results

README.md

Blame
  • ansible molecule tests for role: dependencies

    Why to use it

    It's allways a good idea to test your things.

    With ansible molecule you can test your role locally without the need of using a real server but a local docker container.

    Dependencies

    • molecule

      You need to have ansible molecule installed.

    • DIND (docker in docker)

      For using the tests, you will to have docker installed locally and and set it for using DIND (docker in docker)

      • DIND linux

        You have to create/edit the file /etc/docker/daemon.json with the content:
      {
      "exec-opts": ["native.cgroupdriver=systemd"],
      "features": {
          "buildkit": true
      },
      "experimental": true,
      "cgroup-parent": "docker.slice"
      }

    Configuration

    There's not much for configuring for using the tests

    Running the tests

    For running the molecule tests you just need to run the command:

    molecule test

    Here you can find how to run the