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

@ -69,30 +69,33 @@ EXAMPLES = r'''
- name: Use a file lookup to import PEM Certificate
bigip_ssl_certificate:
name: certificate-name
server: lb.mydomain.com
user: admin
password: secret
state: present
content: "{{ lookup('file', '/path/to/cert.crt') }}"
provider:
server: lb.mydomain.com
user: admin
password: secret
delegate_to: localhost
- name: Use a file lookup to import CA certificate chain
bigip_ssl_certificate:
name: ca-chain-name
server: lb.mydomain.com
user: admin
password: secret
state: present
content: "{{ lookup('file', '/path/to/ca-chain.crt') }}"
provider:
server: lb.mydomain.com
user: admin
password: secret
delegate_to: localhost
- name: Delete Certificate
bigip_ssl_certificate:
name: certificate-name
server: lb.mydomain.com
user: admin
password: secret
state: absent
provider:
server: lb.mydomain.com
user: admin
password: secret
delegate_to: localhost
'''