Fixes for examples in f5 modules (#49490)

So that they use provider instead of deprecated args method
This commit is contained in:
Tim Rupp 2018-12-04 10:31:25 -08:00 committed by GitHub
commit 7c15417f62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
58 changed files with 638 additions and 439 deletions

View file

@ -126,6 +126,10 @@ EXAMPLES = r'''
bigip_policy:
name: Policy-Foo
state: present
provider:
server: lb.mydomain.com
user: admin
password: secret
delegate_to: localhost
- name: Add a rule to the new policy
@ -138,6 +142,10 @@ EXAMPLES = r'''
actions:
- type: forward
pool: pool-svrs
provider:
server: lb.mydomain.com
user: admin
password: secret
delegate_to: localhost
- name: Add multiple rules to the new policy
@ -146,6 +154,10 @@ EXAMPLES = r'''
name: "{{ item.name }}"
conditions: "{{ item.conditions }}"
actions: "{{ item.actions }}"
provider:
server: lb.mydomain.com
user: admin
password: secret
delegate_to: localhost
loop:
- name: rule1
@ -171,6 +183,10 @@ EXAMPLES = r'''
- type: all_traffic
actions:
- type: ignore
provider:
server: lb.mydomain.com
user: admin
password: secret
delegate_to: localhost
'''