HI Tim, Thanks for the details.
I have tried copying the https://github.com/F5Networks/f5-ansible/blob/master/library/bigip_gtm_pool.py module placed in "/usr/lib/python2.7/site-packages/ansible/modules/network/f5" and tried my execution.. Some how it fails, can i wait till get the stable version or can you advice the stable module to place and try. i have the requirement to control the GTM traffic from ansible as my project delivery. any help is much appreciated, $ ansible-playbook f5-GTM-pool-disable.yml -i ../inv/fact-host -vvvv Using /etc/ansible/ansible.cfg as config file Loading callback plugin skippy of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc PLAYBOOK: f5-GTM-pool-disable.yml **************************************************************************************** 1 plays in f5-GTM-pool-disable.yml PLAY [testgtm] *********************************************************************************************************** TASK [Gathering Facts] *************************************************************************************************** Using module file /usr/lib/python2.7/site-packages/ansible/modules/system/setup.py <10.44.193.38> ESTABLISH LOCAL CONNECTION FOR USER: ansuser <10.44.193.38> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1496259129.14-190984755053273 `" && echo ansible-tmp-1496259129.14-190984755053273="` echo $HOME/.ansible/tmp/ansible-tmp-1496259129.14-190984755053273 `" ) && sleep 0' <10.44.193.38> PUT /tmp/tmpg3h_hL TO /home/ansuser/.ansible/tmp/ansible-tmp-1496259129.14-190984755053273/setup.py <10.44.193.38> EXEC /bin/sh -c 'chmod u+x /home/ansuser/.ansible/tmp/ansible-tmp-1496259129.14-190984755053273/ /home/ansuser/.ansible/tmp/ansible-tmp-1496259129.14-190984755053273/setup.py && sleep 0' <10.44.193.38> EXEC /bin/sh -c '/usr/bin/python /home/ansuser/.ansible/tmp/ansible-tmp-1496259129.14-190984755053273/setup.py; rm -rf "/home/ansuser/.ansible/tmp/ansible-tmp-1496259129.14-190984755053273/" > /dev/null 2>&1 && sleep 0' ok: [10.44.193.38] META: ran handlers TASK [Force pool member offline] ***************************************************************************************** task path: /opt/ansible-scripts/f5-BigIP/playbooks/f5-GTM-pool-disable.yml:7 fatal: [10.44.193.38]: FAILED! => { "failed": true, "msg": "Could not find imported module support code for bigip_gtm_pool. Looked for either *.py or f5.py" } msg: Could not find imported module support code for bigip_gtm_pool. Looked for either *.py or f5.py to retry, use: --limit @/opt/ansible-scripts/f5-BigIP/playbooks/f5-GTM-pool-disable.retry PLAY RECAP *************************************************************************************************************** 10.44.193.38 : ok=1 changed=0 unreachable=0 failed=1 Thanks Siva Subramaniyan On Monday, May 29, 2017 at 1:19:01 PM UTC-6, Tim Rupp wrote: > > Hey Siva, > > That module is not yet part of Ansible core. You need to install it > locally from the f5-ansible repository until it is. > > Instructions for doing that can be found here > > https://f5-ansible.readthedocs.io/en/latest/usage/installing_modules.html > > -tim > > On Sat, May 27, 2017 at 10:25 PM, Siva Subramaniyan <[email protected] > <javascript:>> wrote: > >> HI Tim, >> >> When I run the Above play book, getting the error as below. Looks like my >> Ansible version is not recognizing the "bigip_gtm_pool" module. Please >> advise. >> >> *Ansible Version:-* >> >> ansible 2.3.0.0 >> config file = /etc/ansible/ansible.cfg >> configured module search path = Default w/o overrides >> python version = 2.7.5 (default, Aug 2 2016, 04:20:16) [GCC 4.8.5 >> 20150623 (Red Hat 4.8.5-4)] >> >> >> *Error while running :-* >> >> *$ ansible-playbook f5-GTM-pool-disable.yml -i ../inv/fact-host >> --syntax-check -vvvv* >> >> Using /etc/ansible/ansible.cfg as config file >> *ERROR! no action detected in task. This often indicates a misspelled >> module name, or incorrect module path.* >> >> The error appears to have been in >> '/apps/ansible-scripts/f5-BigIP/playbooks/f5-GTM-pool-disable.yml': line 7, >> column 5, but may >> be elsewhere in the file depending on the exact syntax problem. >> >> The offending line appears to be: >> >> >> - name: Force pool member offline >> ^ here >> >> >> The error appears to have been in >> '/apps/ansible-scripts/f5-BigIP/playbooks/f5-GTM-pool-disable.yml': line 7, >> column 5, but may >> be elsewhere in the file depending on the exact syntax problem. >> >> The offending line appears to be: >> >> >> - name: Force pool member offline >> ^ here >> >> ======================================================= >> >> Thanks >> Siva Subramaniyan. >> >> >> On Tuesday, May 23, 2017 at 11:26:03 PM UTC-6, Siva Subramaniyan wrote: >>> >>> Hi There, >>> >>> Can you please share the used case Playbook for the LTM/GTM traffic >>> disable in F5 Big IP. >>> I have the requirement to switch the Traffic during the change window to >>> do the Server side deployments. >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ansible Project" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/c635a269-9a9f-42ce-89ef-0d5db6338400%40googlegroups.com >> >> <https://groups.google.com/d/msgid/ansible-project/c635a269-9a9f-42ce-89ef-0d5db6338400%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/ba448198-87d8-421d-8410-048b6f3e269b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
