I have tried the below to disable the LTM pool member using the play book 
as below, But getting the error.

Playbook:-


---
- name: Force pool member offline
  hosts: test
  connection: local

  tasks:
      - name: Force pool member offline
        bigip_pool_member:
            server: "10.46.193.36"
            user: "testuser"
            password: "test123"
            state: "disabled"
            partition: "Common"
            name: "10.46.193.36"
            port: "5175"
            pool: "agtgissvcci-uat.vgr.com_443"
        delegate_to: localhost

================

Getting the error as below:-

$ ansible-playbook f5-pool-disable.yml -i ../inv/fact-host

PLAY [Force pool member offline] 
*****************************************************************************************

TASK [Gathering Facts] 
***************************************************************************************************
ok: [10.46.193.36]

TASK [Force pool member offline] 
*****************************************************************************************
*fatal: [10.46.193.36 -> localhost]: FAILED! => {"changed": false, 
"failed": true, "msg": "value of state must be one of: present,absent, got: 
disabled"}*

msg: value of state must be one of: present,absent, got: *disabled*
        to retry, use: --limit 
@/apps/ansible-scripts/f5-BigIP/playbooks/f5-pool-disable.retry

PLAY RECAP 
***************************************************************************************************************
10.46.193.36               : ok=1    changed=0    unreachable=0    failed=1
==================================

But as per the steps in the below document, State option "disabled" is 
valid. Please some one advice on this

*http://f5-ansible.readthedocs.io/en/devel/modules/bigip_node2_module.html?highlight=LTM*

Thanks
Siva Subramaniyan



On Tuesday, May 23, 2017 at 11:26:03 PM UTC-6, Siva-Ansile 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].
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/acd6e1ac-7850-4771-ab3c-d47d46144db5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to