Re: how to run ansible-playbook in a container on origin 3.9

2018-06-21 Thread Scott Dodson
That's the openssh control path, look in ansible.cfg there are several variables that default to ~/.ansible that need to be configured to point at a writable path. On Thu, Jun 21, 2018 at 8:57 AM Marc Boorshtein wrote: > Thanks! I'll check it out. > > On Thu, Jun 21, 2018, 7:39 AM Aleksandar

Re: how to run ansible-playbook in a container on origin 3.9

2018-06-21 Thread Marc Boorshtein
Thanks! I'll check it out. On Thu, Jun 21, 2018, 7:39 AM Aleksandar Kostadinov wrote: > FYI there is an image `origin-ansible` [1] in case it has ansible > readily installed and working. > > [1] https://github.com/openshift/openshift-ansible > > Marc Boorshtein wrote on 06/21/18 07:48: > > I

Re: how to run ansible-playbook in a container on origin 3.9

2018-06-21 Thread Aleksandar Kostadinov
FYI there is an image `origin-ansible` [1] in case it has ansible readily installed and working. [1] https://github.com/openshift/openshift-ansible Marc Boorshtein wrote on 06/21/18 07:48: I created a simple container on centos7 designed to run an ansible playbook.  Runs great on local

Re: how to run ansible-playbook in a container on origin 3.9

2018-06-21 Thread Marc Boorshtein
> > > > From the logs, it clearly says its a permission issue, > > worked that out, was wondering if there was experience running ansible-playbook openshift to know what environment variable, option, etc could let me have it NOT try writing to /.ansible

Re: how to run ansible-playbook in a container on origin 3.9

2018-06-21 Thread Syam G Krishnan
Hi Marc, >From the logs, it clearly says its a permission issue, either use a Persistence Volume for the directories where writes are supposed to happen or change permissions to write in those directories Since Openshift runs containers using an arbitrarily assigned user ID. ref:

how to run ansible-playbook in a container on origin 3.9

2018-06-20 Thread Marc Boorshtein
I created a simple container on centos7 designed to run an ansible playbook. Runs great on local docker, but in openshift I get permission denied errors. I added ANSIBLE_LOCAL_TMP=/tmp as an environment variable but I'm still getting the error that local directories can't be created: fatal: