-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathF5-Node-Creation.yml
45 lines (41 loc) · 1010 Bytes
/
F5-Node-Creation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Create A Node
#
# Variables
# node_host
# node_name
# partition_name
# f5_server
# device_group
# by Devin St. Clair
---
- hosts: localhost
gather_facts: no
become: no
vars_files:
- lab_vault.yml
collections:
- f5networks.f5_modules.bigip_node
- f5networks.f5_modules.bigip_config
- f5networks.f5_modules.bigip_configsync_action
tasks:
- name: Add node
f5networks.f5_modules.bigip_node:
host: "{{ node_host }}"
name: "{{ node_name }}"
partition: "{{ partition_name }}"
provider:
server: "{{ f5_server }}"
user: "{{ username_rw }}"
password: "{{ password_rw }}"
transport: rest
server_port: 443
validate_certs: no
- name: Save the running configuration of the BIG-IP
f5networks.f5_modules.bigip_config:
save: yes
verify: yes
provider:
server: "{{ f5_server }}"
user: "{{ username_rw }}"
password: "{{ password_rw }}"
validate_certs: no