|
|
|
@ -119,32 +119,29 @@ EXAMPLES = r'''
|
|
|
|
|
name: foo-service
|
|
|
|
|
template: f5.http
|
|
|
|
|
parameters: "{{ lookup('file', 'f5.http.parameters.json') }}"
|
|
|
|
|
password: secret
|
|
|
|
|
server: lb.mydomain.com
|
|
|
|
|
state: present
|
|
|
|
|
user: admin
|
|
|
|
|
provider:
|
|
|
|
|
user: admin
|
|
|
|
|
password: secret
|
|
|
|
|
server: lb.mydomain.com
|
|
|
|
|
delegate_to: localhost
|
|
|
|
|
|
|
|
|
|
- name: Upgrade foo-service to v1.2.0rc4 of the f5.http template
|
|
|
|
|
bigip_iapp_service:
|
|
|
|
|
name: foo-service
|
|
|
|
|
template: f5.http.v1.2.0rc4
|
|
|
|
|
password: secret
|
|
|
|
|
server: lb.mydomain.com
|
|
|
|
|
state: present
|
|
|
|
|
user: admin
|
|
|
|
|
provider:
|
|
|
|
|
user: admin
|
|
|
|
|
password: secret
|
|
|
|
|
server: lb.mydomain.com
|
|
|
|
|
delegate_to: localhost
|
|
|
|
|
|
|
|
|
|
- name: Configure a service using parameters in YAML
|
|
|
|
|
bigip_iapp_service:
|
|
|
|
|
name: tests
|
|
|
|
|
template: web_frontends
|
|
|
|
|
password: admin
|
|
|
|
|
server: "{{ inventory_hostname }}"
|
|
|
|
|
server_port: "{{ bigip_port }}"
|
|
|
|
|
validate_certs: "{{ validate_certs }}"
|
|
|
|
|
state: present
|
|
|
|
|
user: admin
|
|
|
|
|
parameters:
|
|
|
|
|
variables:
|
|
|
|
|
- name: var__vs_address
|
|
|
|
@ -153,19 +150,18 @@ EXAMPLES = r'''
|
|
|
|
|
value: 2.2.2.1:80
|
|
|
|
|
- name: pm__apache_servers_for_https
|
|
|
|
|
value: 2.2.2.2:80
|
|
|
|
|
provider:
|
|
|
|
|
user: admin
|
|
|
|
|
password: secret
|
|
|
|
|
server: lb.mydomain.com
|
|
|
|
|
delegate_to: localhost
|
|
|
|
|
|
|
|
|
|
- name: Re-configure a service whose underlying iApp was updated in place
|
|
|
|
|
bigip_iapp_service:
|
|
|
|
|
name: tests
|
|
|
|
|
template: web_frontends
|
|
|
|
|
password: admin
|
|
|
|
|
force: yes
|
|
|
|
|
server: "{{ inventory_hostname }}"
|
|
|
|
|
server_port: "{{ bigip_port }}"
|
|
|
|
|
validate_certs: "{{ validate_certs }}"
|
|
|
|
|
state: present
|
|
|
|
|
user: admin
|
|
|
|
|
parameters:
|
|
|
|
|
variables:
|
|
|
|
|
- name: var__vs_address
|
|
|
|
@ -174,12 +170,20 @@ EXAMPLES = r'''
|
|
|
|
|
value: 2.2.2.1:80
|
|
|
|
|
- name: pm__apache_servers_for_https
|
|
|
|
|
value: 2.2.2.2:80
|
|
|
|
|
provider:
|
|
|
|
|
user: admin
|
|
|
|
|
password: secret
|
|
|
|
|
server: lb.mydomain.com
|
|
|
|
|
delegate_to: localhost
|
|
|
|
|
|
|
|
|
|
- name: Try to remove the iApp template before the associated Service is removed
|
|
|
|
|
bigip_iapp_template:
|
|
|
|
|
name: web_frontends
|
|
|
|
|
state: absent
|
|
|
|
|
provider:
|
|
|
|
|
user: admin
|
|
|
|
|
password: secret
|
|
|
|
|
server: lb.mydomain.com
|
|
|
|
|
register: result
|
|
|
|
|
failed_when:
|
|
|
|
|
- result is not success
|
|
|
|
@ -189,12 +193,11 @@ EXAMPLES = r'''
|
|
|
|
|
bigip_iapp_service:
|
|
|
|
|
name: tests
|
|
|
|
|
template: web_frontends
|
|
|
|
|
password: admin
|
|
|
|
|
server: "{{ inventory_hostname }}"
|
|
|
|
|
server_port: "{{ bigip_port }}"
|
|
|
|
|
validate_certs: "{{ validate_certs }}"
|
|
|
|
|
state: present
|
|
|
|
|
user: admin
|
|
|
|
|
provider:
|
|
|
|
|
user: admin
|
|
|
|
|
password: secret
|
|
|
|
|
server: lb.mydomain.com
|
|
|
|
|
parameters:
|
|
|
|
|
variables:
|
|
|
|
|
- name: var__vs_address
|
|
|
|
@ -241,10 +244,11 @@ EXAMPLES = r'''
|
|
|
|
|
name: data 1
|
|
|
|
|
- persist: yes
|
|
|
|
|
name: data 2
|
|
|
|
|
password: secret
|
|
|
|
|
server: lb.mydomain.com
|
|
|
|
|
state: present
|
|
|
|
|
user: admin
|
|
|
|
|
provider:
|
|
|
|
|
user: admin
|
|
|
|
|
password: secret
|
|
|
|
|
server: lb.mydomain.com
|
|
|
|
|
delegate_to: localhost
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|