[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Ansible - permission denied gathering facts


I'm running openshift-ansible and hit on a permission denied error during fact gathering of playbook "Evaluate node groups"

It doesn't matter if it runs as regular (getup) or root user.
Both user have ssh {getup,root} localhost access using private keys and sudo without password.
I even tried to chmod -R 777 /etc/ansible in oder to run as regular user, but no success.

Any directions? Am I missing something?

This is the latest and only error:

$ ansible-playbook -i ./hosts getup.yaml
PLAY [Evaluate node groups] ****************************************************************************************************************************************************

TASK [Gathering Facts] *********************************************************************************************************************************************************
Using module file /usr/lib/python2.7/site-packages/ansible/modules/system/setup.py
<> EXEC /bin/sh -c '/usr/bin/python2 && sleep 0'
fatal: [localhost]: FAILED! => {
    "changed": false,
    "cmd": "/etc/ansible/facts.d/openshift.fact",
    "failed": true,
    "invocation": {
        "module_args": {
            "fact_path": "/etc/ansible/facts.d",
            "filter": "*",
            "gather_subset": [
            "gather_timeout": 10
    "msg": "[Errno 13] Permission denied",
    "rc": 13

$ cat getup.yaml
- include: /usr/share/ansible/openshift-ansible/playbooks/byo/config.yml
    openshift_node_local_quota_per_fsgroup: 1Gi
    deployment_type: origin
    containerized: false

$ ansible --version
  config file = /home/getup/getup-engine/ansible/ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.5 (default, Nov  6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]

$ cat /home/getup/getup-engine/ansible/ansible.cfg
# config file for ansible -- http://ansible.com/
# ==============================================
#callback_plugins = ../openshift-ansible/ansible-profile/callback_plugins
forks = 50
host_key_checking = False
#hostfile = ~centos/hosts
roles_path = /usr/share/ansible/openshift-ansible/roles:/opt/ansible/roles:./roles:../../roles:
remote_user = getup
gathering = smart
retry_files_enabled = false
nocows = true
#lookup_plugins = ./playbooks/lookup_plugins
#log_path = /tmp/ansible.log

become = True

ssh_args = -o RequestTTY=yes -o ControlMaster=auto -o ControlPersist=900s -o GSSAPIAuthentication=no
control_path = /var/tmp/%%h-%%r
pipelining = True

$ cd /usr/share/ansible/openshift-ansible
$ git branch -v
  master      4acdef4 Merge pull request #5340 from sdodson/bz1489913
* release-3.6 d53c565 Automatic commit of package [openshift-ansible] release [].

Mateus Caruccio / Master of Puppets
We make the infrastructure invisible
Gartner Cool Vendor 2017

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]