# Can some one share the playbook for F5 BIGIP traffic enable/disable

**URL:** <https://forum.ansible.com/t/can-some-one-share-the-playbook-for-f5-bigip-traffic-enable-disable/24560>\
**Category:** Ansible Project\
**Created:** [May 24, 2017, 5:26am UTC](https://forum.ansible.com/t/can-some-one-share-the-playbook-for-f5-bigip-traffic-enable-disable/24560 "2017-05-24T05:26:03Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![Siva\_Subramaniyan](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@Siva\_Subramaniyan](https://forum.ansible.com/u/Siva_Subramaniyan)\
**Post date:** [May 31, 2017, 11:53pm UTC](https://forum.ansible.com/t/can-some-one-share-the-playbook-for-f5-bigip-traffic-enable-disable/24560/21 "2017-05-31T23:53:21Z")

</div>

LIke, i am able to connect to the GTM over CLI via putty, and below command to run disable/enable, Same way is it possible to connect ansible and run the below commands. Please advice.

**Disable:-**

testuser@(RS1-PV-INTRA-NET-GTM)(cfg-sync Standalone)(Active)(/Common)(tmos.cli)# modify /gtm pool pool\_mviewuat.vbr.net members modify { /Common/RS1-PV-INTRA-NET-LTM:mviewuat\_vbr\_net { disabled }}

**Enable:-**

testuser@(RS1-PV-INTRA-NET-GTM)(cfg-sync Standalone)(Active)(/Common)(tmos.cli)# modify /gtm pool pool\_mviewuat.vbr.net members modify { /Common/RS1-PV-INTRA-NET-LTM:mviewuat\_vbr\_net { enabled }}

Thanks  
Siva Subramaniyan

---

<div class="post-metadata">

**Author:** ![Tim1](https://avatars.discourse-cdn.com/v4/letter/t/b782af/32.png) [@Tim1](https://forum.ansible.com/u/Tim1)\
**Post date:** [June 1, 2017, 12:06am UTC](https://forum.ansible.com/t/can-some-one-share-the-playbook-for-f5-bigip-traffic-enable-disable/24560/22 "2017-06-01T00:06:22Z")

</div>

Have you tried using the “raw” module?

---

<div class="post-metadata">

**Author:** ![Siva\_Subramaniyan](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@Siva\_Subramaniyan](https://forum.ansible.com/u/Siva_Subramaniyan)\
**Post date:** [June 1, 2017, 12:54am UTC](https://forum.ansible.com/t/can-some-one-share-the-playbook-for-f5-bigip-traffic-enable-disable/24560/23 "2017-06-01T00:54:02Z")

</div>

Hi Tim,

I just gave a try for the raw command execution pointing the Inventory to GTM, getting syntax error, any idea what i can pass to secure the special chars and run in GTM,

PlayBook:-

$ cat gtm-cli.yml

---

<div class="post-metadata">

**Author:** ![Tim1](https://avatars.discourse-cdn.com/v4/letter/t/b782af/32.png) [@Tim1](https://forum.ansible.com/u/Tim1)\
**Post date:** [June 1, 2017, 1:28am UTC](https://forum.ansible.com/t/can-some-one-share-the-playbook-for-f5-bigip-traffic-enable-disable/24560/24 "2017-06-01T01:28:35Z")

</div>

It happening because ansible, via jinja, sees the { character and considers it a variable. So you need to escape those values so that jinja doesnt think that.

[Previous page](https://forum.ansible.com/t/can-some-one-share-the-playbook-for-f5-bigip-traffic-enable-disable/24560.md?page=1)
