DEV Community

Discussion on: Deploy Ansible with GitHub Actions

Collapse
 
joshduffney profile image
Josh Duffney

Hey Ankit,

The error typically means the OS can't find the Ansible installation. To troubleshoot I'd enter the container locally by overriddng the entry point. My blog post on this is current offline as I'm migrating, but here's a link to the doc on GitHub.

github.com/Duffney/duffney.io/blob...

Once inside the container I'd attempt to run the ansible-playbook command and if it's not preset update the dockerfile to get a proper installation. :)

Hope this helps and gets you start in the right direction. Please lmk how it goes.

Collapse
 
ankitjaadoo profile image
Ankit Kumar

Hi Josh,

I am getting this error now:

manifest for ankitjaadoo/ansible-container:latest not found: manifest unknown: manifest unknown
Error: Docker build failed with exit code 1

I am using DockerHub and working on Windows 10. Could you sense what the issue might be here?

Thread Thread
 
joshduffney profile image
Josh Duffney

That means that the container image wasn't found locally. You'll first have to run the docker build . -t ankitjaadoo/ansible-container:latest from the directory where the dockerfile is located for the GH action. :)

Please lmk if that helps.

Thread Thread
 
ankitjaadoo profile image
Ankit Kumar

alright, I am going to try that

Thread Thread
 
ankitjaadoo profile image
Ankit Kumar

BTW if I were to run the docker build command as apart of the github actions, should I include it in the actions preceding the workflows or within a new workflow altogether?