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

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

Have you tried using the “raw” module?

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

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.