Forum Discussion

Thomas_A__McGon's avatar
Thomas_A__McGon
Historic F5 Account
Jan 31, 2017

How does Ansible know to use the new modules instead of the old

Hi All, Does anyone know how Ansible knows to pick the newer bigip_node2 instead of the bigsuds based bigip_node module. When you call the module in your site.yml, the syntax is the same. How does Ansible know which one to use?

 

  • Spoke to Tim Rupp who said:

     

    Ansible picks them by name, so doing

     

    • name: do something bigip_node: param1: ...

    selects bigip_node, while

     

    • name: do something bigip_node2: param1: ...

    selects bigip_node2

     

  • Thomas_A__McGon's avatar
    Thomas_A__McGon
    Historic F5 Account

    Spoke to Tim Rupp who said:

     

    Ansible picks them by name, so doing

     

    • name: do something bigip_node: param1: ...

    selects bigip_node, while

     

    • name: do something bigip_node2: param1: ...

    selects bigip_node2