geektechdude / ansible_container Goto Github PK
View Code? Open in Web Editor NEWLooking to place Ansible in a container (i.e. run Ansible in a container to manage other stuff).
Looking to place Ansible in a container (i.e. run Ansible in a container to manage other stuff).
I think that line 35
and 38
must be merged into one. You can delete the ansible.tar in line 38
but it continue existing in the layer created at line 35
. Check this https://cloud.google.com/solutions/best-practices-for-building-containers. You can save 15 mb if you merge the two lines. And maybe you can delete curl and tar applications.
Hi,
I am trying to run playbook from my local machine with inventory as argument with below command but ran into below issues.
docker run --rm --network host -v /home/centos/local-test/rala-v2:/tmp/rala-v2 philm/ansible_playbook:latest -i /tmp/rala-v2/runners/src/test/bashscript/inventory.sh /tmp/rala-v2/runners/src/test/ansible/hadoopenv.yml
ERROR! Attempted to execute "/tmp/rala-v2/runners/src/test/bashscript/inventory.sh" as inventory script: problem running /tmp/rala-v2/runners/src/test/bashscript/inventory.sh --list ([Errno 2] No such file or directory)
[centos@sql-common test]$ docker run --rm --network host -v /home/centos/local-test/rala-v2:/tmp/rala-v2 philm/ansible_playbook:latest /tmp/rala-v2/runners/src/test/ansible/hadoopenv.yml
PLAY RECAP *********************************************************************
So just need to know if I have to pass inventory and playbook from local host how can I achieve this using current docker image.
When trying to run Ansible or Ansible-Playbook against a host, SSH warns that the host is not in known hosts, asks if the host should be added and waits on a yes/no reply.
i tried modifying the Dockerfile to use pip install ansible rather downloading and installing hard coded version .
ex: RUN pip install ansible
Can we in cooperate ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.