When running ansible script the following error message occurs.
maarten@maarten-desktop:~/src/ansible-dandelion/inventory$ docker run --rm -it \
-v $HOME/.kube:/root/.kube \ -v $HOME/.ansible:/root/.ansible \ -v $HOME/.local/bin:/root/.local/bin \ -v $HOME/.ssh/id_rsa:/root/.ssh/id_rsa:Z,ro \ -v $PWD:/ansible \ --entrypoint bash \ gimbalabs/ansible:latest \ -c "ansible-galaxy install -r requirements.yaml && ansible-playbook -i inventory/my-k8s.yaml dandelion-node.yaml"
Unable to find image 'gimbalabs/ansible:latest' locally latest: Pulling from gimbalabs/ansible 08c01a0ec47e: Already exists 98122d1bf19b: Pull complete d7c4ae7aeefb: Pull complete 10f16a6f9607: Pull complete 1d3bcecdcb21: Pull complete Digest: sha256:c9f497927a5c3c5764c3d556dea609f27691e515f240f5afabf58a09708e5443 Status: Downloaded newer image for gimbalabs/ansible:latest ERROR! The requirements file '/ansible/requirements.yaml' does not exist.
Copying the requirements.yaml file from the ansible-dandelion git root folder fixes the issue. docker cp requirements.yaml a72a1bd5aab3:/ansible/