bigip_virtual_server

53 views
Skip to first unread message

Heinrich Piard

unread,
Feb 1, 2016, 2:11:56 PM2/1/16
to Ansible Project
I managed to use all bigip functionality (adding nodes, pools etc.) via ansible. However, when I try to create a virtual server it is throwing an exception and I am not sure how to resolve it.


ansible-playbook playbooks/bigip_f5/f5-create-vs.yml                                                                                                                                              
                                                                                                                                                                                                                                                    
PLAY ***************************************************************************                                                                                                                                                                    
                                                                                                                                                                                                                                                    
TASK [setup] *******************************************************************                                                                                                                                                                    
ok: [henrysf5ltm]                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                    
TASK [Create Virtual Server CustomerA] *****************************************                                                                                                                                                                    
fatal: [henrysf5ltm -> localhost]: FAILED! => {"changed": false, "failed": true, "msg": "received exception: bigip_api() takes exactly 4 arguments (3 given)"}                                                                                      
                                                                                                                                                                                                                                                    
PLAY RECAP *********************************************************************                                                                                                                                                                    
henrysf5ltm                : ok=1    changed=0    unreachable=0    failed=1    



Any idea what's causing this?

Tim

unread,
Feb 1, 2016, 2:22:42 PM2/1/16
to ansible...@googlegroups.com

Hey Heinrich,

Which version of ansible are you using? We added a certificate validation parameter that is likely causing that exception, but would like to know which ansible version is in use.

-tim

--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/029aecbb-3220-48cf-821c-a2bd7baac0b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Heinrich Piard

unread,
Feb 1, 2016, 2:28:27 PM2/1/16
to Ansible Project
I am using ansible version 2.0.0.2

hpiard@parker:~/PycharmProjects/ansible_idms_dev$ ansible --version                                                                                                                                                                                 
ansible 2.0.0.2                                                                                                                                                                                                                                     
  config file = /home/hpiard/PycharmProjects/ansible_idms_dev/ansible.cfg                                                                                                                                                                           
  configured module search path = Default w/o overrides 

Tim

unread,
Feb 1, 2016, 2:30:53 PM2/1/16
to ansible...@googlegroups.com

Lemme take a look here and will figure out what is amiss

--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.

Heinrich Piard

unread,
Feb 1, 2016, 2:36:30 PM2/1/16
to Ansible Project
Here is my playbook:


- hosts: henrysf5ltm
  connection: local
  tasks:
  - name: Create Virtual Server CustomerA
    local_action:
      module: bigip_virtual_server
      server: henrysf5ltm
      user: ansible
      password: ansible
      state: present
      partition: Common
      name: Web_Site_CustomerA
      destination: "192.168.7.10"
      port: 80
      pool: Web_Pool_Apache
      description: CustomerA
      validate_certs: no




On Monday, February 1, 2016 at 2:11:56 PM UTC-5, Heinrich Piard wrote:

Tim

unread,
Feb 1, 2016, 3:04:47 PM2/1/16
to ansible...@googlegroups.com

Looks like a bug. I will open a ticket and send in a fix for it. If you're interested, we can fix it offline in your install too until the next official release.

-tim

Heinrich Piard

unread,
Feb 1, 2016, 3:16:42 PM2/1/16
to Ansible Project
Hi Tim,

it would be wonderful if you could help me to get this fixed until new release.


On Monday, February 1, 2016 at 2:11:56 PM UTC-5, Heinrich Piard wrote:

Heinrich Piard

unread,
Feb 2, 2016, 8:43:30 AM2/2/16
to Ansible Project
For those who run into the same issue.
This is the actual fix. Thanks Tim!

https://github.com/caphrim007/ansible-modules-extras/commit/56a517b054e8b24e23c6781c081db31af3fb2ae7
Reply all
Reply to author
Forward
0 new messages