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 3 - Adding Pool Members to a Pool

Task 1 - Assign Pool Members to a Pool

You will select a node which you will assign to a pool app1_pl. Use the bigip_pool_member module.

  1. Create a playbook member.yaml.

    • Type nano playbooks/member.yaml

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

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

  2. Run this playbook.

    • Type ansible-playbook playbooks/member.yaml

      If successful, you should see similar results

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

    • Select Local Traffic -> Pools -> app1_p1 -> Members

      ../../../_images/image018.png
  4. Add another pool member to pool app1_pl.

    • Type nano playbooks/member.yaml

    • Add node 10.1.20.12 as shown in the image below.

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

  5. Run this playbook.

    • Type ansible-playbook playbooks/member.yaml

      If successful, you should see similar results

      ../../../_images/image020.png
  6. Verify BIG-IP results.

    Note

    The bigip_pool_member module can configure pools with the details of existing nodes. A node that has been placed in a pool is referred to as a “pool member”.

    At a minimum, the name is required. Additionally, the host is required when creating new pool members.

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