mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 05:40:23 -07:00
Fixes for examples in f5 modules (#49490)
So that they use provider instead of deprecated args method
This commit is contained in:
parent
40a5f7bfdf
commit
7c15417f62
58 changed files with 638 additions and 439 deletions
|
@ -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
|
||||
'''
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue