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 <mboorsht...@gmail.com> wrote: > Thanks! I'll check it out. > > On Thu, Jun 21, 2018, 7:39 AM Aleksandar Kostadinov <akost...@redhat.com> > 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 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: [node.local.lan]: FAILED! => { >> > "msg": "Unable to create local directories(/.ansible/cp): [Errno >> > 13] Permission denied: '/.ansible'" >> > } >> > >> > here's the entire output >> > ansible-playbook 2.5.5 >> > config file = /etc/ansible/ansible.cfg >> > configured module search path = [u'/.ansible/plugins/modules', >> > u'/usr/share/ansible/plugins/modules'] >> > ansible python module location = >> /usr/lib/python2.7/site-packages/ansible >> > executable location = /usr/bin/ansible-playbook >> > python version = 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 >> > 20150623 (Red Hat 4.8.5-16)] >> > Using /etc/ansible/ansible.cfg as config file >> > Parsed /etc/secrets/hosts inventory source with ini plugin >> > PLAYBOOK: push-keytabs.yaml >> > **************************************************** >> > 1 plays in /etc/config/push-keytabs.yaml >> > PLAY [openshift-nodes] >> > ********************************************************* >> > TASK [Gathering Facts] >> > ********************************************************* >> > task path: /etc/config/push-keytabs.yaml:2 >> > Using module file >> > /usr/lib/python2.7/site-packages/ansible/modules/system/setup.py >> > <node.local.lan> ESTABLISH SSH CONNECTION FOR USER: sa-kt-deployment >> > fatal: [node.local.lan]: FAILED! => { >> > "msg": "Unable to create local directories(/.ansible/cp): [Errno >> > 13] Permission denied: '/.ansible'" >> > } >> > PLAY RECAP >> > ********************************************************************* >> > node.local.lan : ok=0 changed=0 unreachable=0 >> failed=1 >> > [WARNING]: Could not create retry file >> '/etc/config/push-keytabs.retry'. >> > [Errno 30] Read-only file system: u'/etc/config/push-keytabs.retry' >> > >> > Is there another variable i need to set? >> > >> > Thanks >> > Marc >> > >> > >> > _______________________________________________ >> > users mailing list >> > users@lists.openshift.redhat.com >> > http://lists.openshift.redhat.com/openshiftmm/listinfo/users >> > >> > _______________________________________________ > users mailing list > users@lists.openshift.redhat.com > http://lists.openshift.redhat.com/openshiftmm/listinfo/users >
_______________________________________________ users mailing list users@lists.openshift.redhat.com http://lists.openshift.redhat.com/openshiftmm/listinfo/users