Skip to content

Commit e00ff2a

Browse files
author
codecowboydotio
committed
added vip playbook
updated splunk
1 parent f0d6c65 commit e00ff2a

File tree

2 files changed

+48
-1
lines changed

2 files changed

+48
-1
lines changed

f5-vip-only.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
- name: Base VE config
2+
hosts: "{{ target_hosts | default('f5') }}"
3+
connection: local
4+
gather_facts: False
5+
6+
vars:
7+
bigip_provider:
8+
server: 172.31.28.160
9+
server_port: 8443
10+
user: admin
11+
password: admin
12+
validate_certs: no
13+
pool_name: ansible-pool
14+
pool_lb_method: round-robin
15+
bigip_virtual_name: virt3
16+
bigip_virtual_destination: 233.1.1.1
17+
bigip_vip_port: 80
18+
bigip_pool: pool2
19+
bigip_virtual_snat_type: automap
20+
bigip_virtual_description: "Test VIP 3"
21+
22+
23+
tasks:
24+
- name: Create pool
25+
bigip_pool:
26+
state: present
27+
name: "{{ pool_name }}"
28+
partition: Common
29+
lb_method: "{{ pool_lb_method }}"
30+
monitors:
31+
- http
32+
provider: "{{ bigip_provider }}"
33+
delegate_to: localhost
34+
- name: Add virtual server
35+
bigip_virtual_server:
36+
state: present
37+
partition: Common
38+
name: "{{ bigip_virtual_name }}"
39+
destination: "{{ bigip_virtual_destination }}"
40+
port: "{{ bigip_vip_port }}"
41+
pool: "{{ pool_name }}"
42+
snat: "{{ bigip_virtual_snat_type }}"
43+
description: "{{ bigip_virtual_description }}"
44+
provider: "{{ bigip_provider }}"
45+
delegate_to: localhost

splunk.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737
docker_container:
3838
name: agent
3939
image: splunk/splunk
40-
published_ports: 80:8000
40+
published_ports:
41+
- 80:8000
42+
- 8088:8088
4143
env:
4244
SPLUNK_START_ARGS: --accept-license
4345
SPLUNK_PASSWORD: "{{ splunk_password }}"

0 commit comments

Comments
 (0)