F5 Programmability Training > Automation Mini Classes > Mini Class 1 - F5 Architectures with Ansible > Module 1 – Basic BIG-IP administration with Ansible Source | Edit on

Lab 2 - Creating a physical node

Task 1 - Create a node

You need to create a node which you will assign to a pool.

You want to specify the values for user/pass and validate_certs only once but re-use them throughout your tasks. Use the bigip_node module.

  1. Create a playbook node.yaml.

    • Type nano playbooks/node.yaml

    • Type the following into the playbooks/node.yaml file.

      ../../../_images/image013.png
    • Ctrl-x to save file.

  2. Run this playbook.

    • Type ansible-playbook playbooks/node.yaml

      If successful, you should see similar results

      ../../../_images/image014.png
  3. Verify BIG-IP results.

    • Select Local Traffic ‣ Nodes

      ../../../_images/image015.png

Note

The bigip_node module can configure physical device addresses that can later be added to pools. At a minimum, the name is required. Additionally, either the address or fqdn parameters are also required when creating new nodes.

The module has several more options, all of which can be seen at this link.