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:
>
> 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?
>

-- 
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/a7b81f64-1332-416c-ace4-0d351f94420a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to