aixoss / ansible-playbooks Goto Github PK
View Code? Open in Web Editor NEWPlaybooks can be used to manage configurations of and deployments to AIX systems.
License: Apache License 2.0
Playbooks can be used to manage configurations of and deployments to AIX systems.
License: Apache License 2.0
I was trying to run aix Alt-clone play book but failed with message "alt_disk module not installed". Can you please provide any solution.
We started an AIX Working Group in the Ansible project to make it easier to collaborate.
https://github.com/ansible/community/wiki/AIX
It would be nice if the modules in this project would ship with Ansible v2.8 by default.
I am committed to help getting these modules merged, if they follow the normal review process and are sufficiently tested (approved by other AIX users). Since we already have a set of modules proposed in PRs that may conflict with these modules, we may have to discuss the best way forward (and keep compatibility for existing users of this repository).
Let me know what you think.
quick question concerning aix and ansible. i am struggling with editing (add, update,delete) of aix stanza files with ansible. i looked over the lineinfile and blockinfile modules but i it seems they are not the best for this job. any ideas? have you ever done this successfully?
Hi Team,
I have this errors when running my playbook for FLRTVC, I'll appreciate any help you can bring.
Thanks!
TASK [FLRTVC] **********************************************************************************************************************************************************************************************
task path: /root/ansible-aix/aix_patch_flrtvc.yml:9
ok: [nimserver] => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false,
"invocation": {
"module_args": {
"apar": "sec",
"check_only": false,
"clean": false,
"csv": "/tmp/ansible",
"download_only": false,
"filesets": null,
"force": false,
"path": null,
"targets": "ALL",
"verbose": true
}
},
"meta": {
"b01avi14553110": {
"0.report": "Failed to list filsets (lslpp) on b01avi14553110, /tmp/ansible/work/lslpp_b01avi14553110.txt does not exist",
"messages": [
"b01avi14553110: Failed to list fileset, command "/usr/lpp/bos.sysmgt/nim/methods/c_rsh b01avi14553110 "/bin/lslpp -Lcq; echo rc=$?"" failed: " 0042-006 c_rsh: (exec_nimsh_cmd) exec_cmd Error 0 \n\npoll: setup failure\n""
]
},
"master": {
"0.report": [
"Fileset|Current Version|Type|EFix Installed|Abstract|Unsafe Versions|APARs|Bulletin URL|Download URL|CVSS Base Score|Reboot Required|Last Update|Fixed In"
],
"1.parse": [],
"2.discover": [],
"3.download": [],
"4.1.reject": [],
"4.2.check": [],
"messages": [
"Machine: b01avi14553110 will not be updated (flrtvc report failed)"
]
}
},
"msg": "FLRTVC completed successfully"
}
TASK [debug] ***********************************************************************************************************************************************************************************************
task path: /root/ansible-aix/aix_patch_flrtvc.yml:19
ok: [nimserver] => {
"result": {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false,
"failed": false,
"meta": {
"b01avi14553110": {
"0.report": "Failed to list filsets (lslpp) on b01avi14553110, /tmp/ansible/work/lslpp_b01avi14553110.txt does not exist",
"messages": [
"b01avi14553110: Failed to list fileset, command "/usr/lpp/bos.sysmgt/nim/methods/c_rsh b01avi14553110 "/bin/lslpp -Lcq; echo rc=$?"" failed: " 0042-006 c_rsh: (exec_nimsh_cmd) exec_cmd Error 0 \n\npoll: setup failure\n""
]
},
"master": {
"0.report": [
"Fileset|Current Version|Type|EFix Installed|Abstract|Unsafe Versions|APARs|Bulletin URL|Download URL|CVSS Base Score|Reboot Required|Last Update|Fixed In"
],
"1.parse": [],
"2.discover": [],
"3.download": [],
"4.1.reject": [],
"4.2.check": [],
"messages": [
"Machine: b01avi14553110 will not be updated (flrtvc report failed)"
]
}
},
"msg": "FLRTVC completed successfully"
}
}
META: ran handlers
META: ran handlers
PLAY RECAP *************************************************************************************************************************************************************************************************
nimserver : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
I was able to check on NIM Server that the command hangs, seems due a " missing: root 18612692 8847780 0 14:52:37 pts/17 0:00 /usr/lpp/bos.sysmgt/nim/methods/c_rsh b01avi14553110 "/bin/lslpp -Lcq; echo rc=$?
Here's the -vvv output when running the playbook:
ansible-playbook aix_patch_flrtvc.yml -vvv
ansible-playbook 2.8.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /bin/ansible-playbook
python version = 2.7.5 (default, May 20 2019, 12:21:26) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
Using /etc/ansible/ansible.cfg as config file
host_list declined parsing /etc/ansible/hosts as it did not pass it's verify_file() method
script declined parsing /etc/ansible/hosts as it did not pass it's verify_file() method
auto declined parsing /etc/ansible/hosts as it did not pass it's verify_file() method
Parsed /etc/ansible/hosts inventory source with ini plugin
PLAYBOOK: aix_patch_flrtvc.yml *****************************************************************************************************************************************************************************
1 plays in aix_patch_flrtvc.yml
PLAY [FLRTVC on AIX playbook] ******************************************************************************************************************************************************************************
META: ran handlers
ESTABLISH SSH CONNECTION FOR USER: ansible
SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ansible"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/972e828b47 nimserver '/bin/sh -c '"'"'echo ~ansible && sleep 0'"'"''
(0, '/home/ansible\n', '')
ESTABLISH SSH CONNECTION FOR USER: ansible
SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ansible"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/972e828b47 nimserver '/bin/sh -c '"'"'( umask 77 && mkdir -p "echo /home/ansible/.ansible/tmp/ansible-tmp-1562597555.9-27347089795297
" && echo ansible-tmp-1562597555.9-27347089795297="echo /home/ansible/.ansible/tmp/ansible-tmp-1562597555.9-27347089795297
" ) && sleep 0'"'"''
(0, 'ansible-tmp-1562597555.9-27347089795297=/home/ansible/.ansible/tmp/ansible-tmp-1562597555.9-27347089795297\n', '')
Attempting python interpreter discovery
ESTABLISH SSH CONNECTION FOR USER: ansible
SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ansible"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/972e828b47 nimserver '/bin/sh -c '"'"'echo PLATFORM; uname; echo FOUND; command -v '"'"'"'"'"'"'"'"'/usr/bin/python'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.7'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.6'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.5'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python2.7'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python2.6'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'/usr/libexec/platform-python'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'/usr/bin/python3'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python'"'"'"'"'"'"'"'"'; echo ENDFOUND && sleep 0'"'"''
(0, 'PLATFORM\nAIX\nFOUND\n/usr/bin/python\n/usr/bin/python2.7\n/usr/bin/python\nENDFOUND\n', '')
Python interpreter discovery fallback (unsupported platform for extended discovery: aix)
Using module file /usr/lib/python2.7/site-packages/ansible/modules/system/aix_flrtvc.py
PUT /root/.ansible/tmp/ansible-local-30611qykm6l/tmplXZnZi TO /home/ansible/.ansible/tmp/ansible-tmp-1562597555.9-27347089795297/AnsiballZ_aix_flrtvc.py
SSH: EXEC scp -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ansible"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/972e828b47 /root/.ansible/tmp/ansible-local-30611qykm6l/tmplXZnZi '[nimserver]:/home/ansible/.ansible/tmp/ansible-tmp-1562597555.9-27347089795297/AnsiballZ_aix_flrtvc.py'
(0, '', '')
ESTABLISH SSH CONNECTION FOR USER: ansible
SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ansible"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/972e828b47 nimserver '/bin/sh -c '"'"'chmod u+x /home/ansible/.ansible/tmp/ansible-tmp-1562597555.9-27347089795297/ /home/ansible/.ansible/tmp/ansible-tmp-1562597555.9-27347089795297/AnsiballZ_aix_flrtvc.py && sleep 0'"'"''
(0, '', '')
ESTABLISH SSH CONNECTION FOR USER: ansible
SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ansible"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/972e828b47 -tt nimserver '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-ufbuggjlpfqznfeqkwortdszvjlaatdd ; /usr/bin/python /home/ansible/.ansible/tmp/ansible-tmp-1562597555.9-27347089795297/AnsiballZ_aix_flrtvc.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
(0, 'BECOME-SUCCESS-ufbuggjlpfqznfeqkwortdszvjlaatdd\r\n\r\n{"msg": "FLRTVC completed successfully", "invocation": {"module_args": {"force": false, "verbose": true, "check_only": false, "download_only": false, "clean": false, "path": null, "csv": "/tmp/ansible", "targets": "ALL", "apar": "sec", "filesets": null}}, "changed": false, "meta": {"b01avi14553110": {"0.report": "Failed to list filsets (lslpp) on b01avi14553110, /tmp/ansible/work/lslpp_b01avi14553110.txt does not exist", "messages": ["b01avi14553110: Failed to list fileset, command \"/usr/lpp/bos.sysmgt/nim/methods/c_rsh b01avi14553110 \"/bin/lslpp -Lcq; echo rc=$?\"\" failed: \" 0042-006 c_rsh: (exec_nimsh_cmd) exec_cmd Error 0 \n\npoll: setup failure\n\""]}, "master": {"0.report": ["Fileset|Current Version|Type|EFix Installed|Abstract|Unsafe Versions|APARs|Bulletin URL|Download URL|CVSS Base Score|Reboot Required|Last Update|Fixed In"], "1.parse": [], "messages": ["Machine: b01avi14553110 will not be updated (flrtvc report failed)"], "4.1.reject": [], "2.discover": [], "3.download": [], "4.2.check": []}}}\r\n', 'Shared connection to nimserver closed.\r\n')
ESTABLISH SSH CONNECTION FOR USER: ansible
SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ansible"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/972e828b47 nimserver '/bin/sh -c '"'"'rm -f -r /home/ansible/.ansible/tmp/ansible-tmp-1562597555.9-27347089795297/ > /dev/null 2>&1 && sleep 0'"'"''
(0, '', '')
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.