forked from jmcalalang/Ansible_Meetups
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
93 lines (77 loc) · 2.04 KB
/
main.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---
############
#Add objects
############
- include: bigip_node/add_node.yml
vars:
- host: "10.1.20.11"
- name: "Lamp"
- monitor: "/Common/icmp"
when: state == "present"
- include: bigip_pool/manage_pool.yml
vars:
- name: "Lamp_pl"
- monitor: "/Common/http_head_f5"
when: state == "present"
- include: bigip_pool_member/manage_members.yml
vars:
- host: "Lamp"
- pool: "Lamp_pl"
- port: "8081"
when: state == "present"
- include: bigip_irule/manage_irule.yml
when: state == "present"
- include: bigip_monitor_tcp/manage_tcp_monitor.yml
when: state == "present"
- include: bigip_monitor_http/manage_http_monitor.yml
when: state == "present"
- include: bigip_virtual_server/manage_vip.yml
vars:
- description: "Lamp_vs"
- destination: "10.1.10.15"
- name: "Lamp_vs"
- pool: "Lamp_pl"
- port: "80"
- snat: "Automap"
- all_profiles: "http"
- all_rules: "Bodgeit_Rewrite"
when: state == "present"
- include: bigip_iapp_template/appsvcs.yml
when: state == "present"
- include: bigip_iapp_service/appsvcs.yml
when: state == "present"
###############
#Remove objects
###############
- include: bigip_virtual_server/manage_vip.yml
vars:
- description: "Lamp_vs"
- destination: "10.1.10.15"
- name: "Lamp_vs"
- pool: "Lamp_pl"
- port: "80"
- snat: "Automap"
- all_profiles: "http"
- all_rules: "Bodgeit_Rewrite"
when: state == "absent"
- include: bigip_irule/manage_irule.yml
when: state == "absent"
- include: bigip_monitor_tcp/manage_tcp_monitor.yml
when: state == "absent"
- include: bigip_monitor_http/manage_http_monitor.yml
when: state == "absent"
- include: bigip_pool/manage_pool.yml
vars:
- name: "Lamp_pl"
- monitor: "/Common/http_head_f5"
when: state == "absent"
- include: bigip_node/remove_node.yml
vars:
- name: "Lamp"
- monitor: "/Common/icmp"
when: state == "absent"
- include: bigip_iapp_service/appsvcs.yml
when: state == "absent"
- include: bigip_iapp_template/appsvcs.yml
when: state == "absent"
...