# aix 6.1  Gathering Facts  error

**URL:** <https://forum.ansible.com/t/aix-6-1-gathering-facts-error/25586>\
**Category:** Ansible Project\
**Tags:** awx\
**Created:** [September 25, 2017, 8:53am UTC](https://forum.ansible.com/t/aix-6-1-gathering-facts-error/25586 "2017-09-25T08:53:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![80nature](https://avatars.discourse-cdn.com/v4/letter/8/e47774/32.png) [@80nature](https://forum.ansible.com/u/80nature)\
**Post date:** [September 25, 2017, 8:53am UTC](https://forum.ansible.com/t/aix-6-1-gathering-facts-error/25586/1 "2017-09-25T08:53:22Z")

</div>

[root@awx cms-uat-deploy]# ansible-playbook -vvv -i hosts cms-wls-myfaces-example-simple20-deploy.yml  
Using /root/ansibleProjects/cms-uat-deploy/ansible.cfg as config file

PLAYBOOK: cms-wls-myfaces-example-simple20-deploy.yml \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
5 plays in cms-wls-myfaces-example-simple20-deploy.yml

PLAY [backup、undeploy @thinkAdminHosts] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK [Gathering Facts] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
Using module file /usr/lib/python2.7/site-packages/ansible/modules/system/setup.py  
\<10.1.24.6\> ESTABLISH SSH CONNECTION FOR USER: oracle  
\<10.1.24.6\> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=oracle -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/497cd1f781 10.1.24.6 ‘/bin/sh -c ‘"’“‘echo ~ && sleep 0’”’“‘’  
\<10.1.24.6\> (0, ‘/oracle\n’, ‘’)  
\<10.1.24.6\> ESTABLISH SSH CONNECTION FOR USER: oracle  
\<10.1.24.6\> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=oracle -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/497cd1f781 10.1.24.6 '/bin/sh -c '”‘"’( umask 77 && mkdir -p “`echo /oracle/.ansible/tmp/ansible-tmp-1506328550.92-104560872959269`” && echo ansible-tmp-1506328550.92-104560872959269=“`echo /oracle/.ansible/tmp/ansible-tmp-1506328550.92-104560872959269`” ) && sleep 0’“'”‘’  
\<10.1.24.6\> (0, ‘ansible-tmp-1506328550.92-104560872959269=/oracle/.ansible/tmp/ansible-tmp-1506328550.92-104560872959269\n’, ‘’)  
\<10.1.24.6\> PUT /tmp/tmpKd8IRw TO /oracle/.ansible/tmp/ansible-tmp-1506328550.92-104560872959269/setup.py  
\<10.1.24.6\> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=oracle -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/497cd1f781 ‘[10.1.24.6]’  
\<10.1.24.6\> (0, ‘sftp\> put /tmp/tmpKd8IRw /oracle/.ansible/tmp/ansible-tmp-1506328550.92-104560872959269/setup.py\n’, ‘’)  
\<10.1.24.6\> ESTABLISH SSH CONNECTION FOR USER: oracle  
\<10.1.24.6\> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=oracle -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/497cd1f781 10.1.24.6 ‘/bin/sh -c ‘"’“‘chmod u+x /oracle/.ansible/tmp/ansible-tmp-1506328550.92-104560872959269/ /oracle/.ansible/tmp/ansible-tmp-1506328550.92-104560872959269/setup.py && sleep 0’”’“‘’  
\<10.1.24.6\> (0, ‘’, ‘’)  
\<10.1.24.6\> ESTABLISH SSH CONNECTION FOR USER: oracle  
\<10.1.24.6\> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=oracle -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/497cd1f781 -tt 10.1.24.6 '/bin/sh -c '”‘“‘LANG=Zh\_CN.GB18030 LC\_ALL=Zh\_CN.GB18030 LC\_MESSAGES=Zh\_CN.GB18030 /usr/bin/python /oracle/.ansible/tmp/ansible-tmp-1506328550.92-104560872959269/setup.py; rm -rf “/oracle/.ansible/tmp/ansible-tmp-1506328550.92-104560872959269/” \> /dev/null 2\>&1 && sleep 0’”’"‘’  
\<10.1.24.6\> (0, ‘/tmp/ansible\_1DQV\_y/ansible\_modlib.zip/ansible/module\_utils/facts.py:1019: DeprecationWarning: object. **new** () takes no parameters\r\nTraceback (most recent call last):\r\n File “/tmp/ansible\_1DQV\_y/ansible\_module\_setup.py”, line 139, in \r\n main()\r\n File “/tmp/ansible\_1DQV\_y/ansible\_module\_setup.py”, line 131, in main\r\n data = get\_all\_facts(module)\r\n File “/tmp/ansible\_1DQV\_y/ansible\_modlib.zip/ansible/module\_utils/facts.py”, line 3934, in get\_all\_facts\r\n File “/tmp/ansible\_1DQV\_y/ansible\_modlib.zip/ansible/module\_utils/facts.py”, line 3877, in ansible\_facts\r\n File “/tmp/ansible\_1DQV\_y/ansible\_modlib.zip/ansible/module\_utils/facts.py”, line 2080, in populate\r\n File “/tmp/ansible\_1DQV\_y/ansible\_modlib.zip/ansible/module\_utils/facts.py”, line 2104, in get\_cpu\_facts\r\nUnboundLocalError: local variable 'cpudev' referenced before assignment\r\n’, ‘Shared connection to 10.1.24.6 closed.\r\n’)  
fatal: [creditappa]: FAILED! =\> {  
“changed”: false,  
“failed”: true,  
“module\_stderr”: “Shared connection to 10.1.24.6 closed.\r\n”,  
“module\_stdout”: “/tmp/ansible\_1DQV\_y/ansible\_modlib.zip/ansible/module\_utils/facts.py:1019: DeprecationWarning: object. **new** () takes no parameters\r\nTraceback (most recent call last):\r\n File "/tmp/ansible\_1DQV\_y/ansible\_module\_setup.py", line 139, in \r\n main()\r\n File "/tmp/ansible\_1DQV\_y/ansible\_module\_setup.py", line 131, in main\r\n data = get\_all\_facts(module)\r\n File "/tmp/ansible\_1DQV\_y/ansible\_modlib.zip/ansible/module\_utils/facts.py", line 3934, in get\_all\_facts\r\n File "/tmp/ansible\_1DQV\_y/ansible\_modlib.zip/ansible/module\_utils/facts.py", line 3877, in ansible\_facts\r\n File "/tmp/ansible\_1DQV\_y/ansible\_modlib.zip/ansible/module\_utils/facts.py", line 2080, in populate\r\n File "/tmp/ansible\_1DQV\_y/ansible\_modlib.zip/ansible/module\_utils/facts.py", line 2104, in get\_cpu\_facts\r\nUnboundLocalError: local variable ‘cpudev’ referenced before assignment\r\n”,  
“msg”: “MODULE FAILURE”,  
“rc”: 0  
}  
to retry, use: --limit @/root/ansibleProjects/cms-uat-deploy/cms-wls-myfaces-example-simple20-deploy.retry

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
cccadtappa : ok=0 changed=0 unreachable=0 failed=1

## Control Machine

CentOS Linux release 7.3.1611 (Core)  
Python 2.7.5  
ansible 2.3.1.0

## Managed Node

aix 6100-09-08-1642  
Python 2.6.2
