trying again to add plabook

This commit is contained in:
David Rojas
2020-10-28 11:42:25 -07:00
parent 5da94793fb
commit b0cea59f5f
3 changed files with 57 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
---
- name: BIG-IP SETUP
hosts: lb
connection: local
gather_facts: false
tasks:
- name: CREATE NODES
bigip_node:
provider:
server: "{{private_ip}}"
user: "{{ansible_user}}"
password: "{{ansible_ssh_pass}}"
server_port: 8443
validate_certs: false
host: "{{hostvars[item].ansible_host}}"
name: "{{hostvars[item].inventory_hostname}}"
loop: "{{ groups['web'] }}"