Note
This plugin is part of the community.digitalocean collection.
To install it use: ansible-galaxy collection install community.digitalocean
.
To use it in a playbook, specify: community.digitalocean.digital_ocean_certificate
.
Parameter | Choices/Defaults | Comments |
---|---|---|
certificate_chain string | The full PEM-formatted trust chain between the certificate authority's certificate and your domain's SSL certificate. | |
leaf_certificate string | A PEM-formatted public SSL Certificate. | |
name string / required | The name of the certificate. | |
oauth_token string | DigitalOcean OAuth token. There are several other environment variables which can be used to provide this value. i.e., - 'DO_API_TOKEN', 'DO_API_KEY', 'DO_OAUTH_TOKEN' and 'OAUTH_TOKEN' aliases: api_token | |
private_key string | A PEM-formatted private key content of SSL Certificate. | |
state string |
| Whether the certificate should be present or absent. |
timeout integer | Default: 30 | The timeout in seconds used for polling DigitalOcean's API. |
validate_certs boolean |
| If set to no , the SSL certificates will not be validated.This should only set to no used on personally controlled sites using self-signed certificates. |
Note
- name: Create a certificate community.digitalocean.digital_ocean_certificate: name: production state: present private_key: "-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBgkqhkM8OI7pRpgyj1I\n-----END PRIVATE KEY-----" leaf_certificate: "-----BEGIN CERTIFICATE-----\nMIIFDmg2Iaw==\n-----END CERTIFICATE-----" oauth_token: b7d03a6947b217efb6f3ec3bd365652 - name: Create a certificate using file lookup plugin community.digitalocean.digital_ocean_certificate: name: production state: present private_key: "{{ lookup('file', 'test.key') }}" leaf_certificate: "{{ lookup('file', 'test.cert') }}" oauth_token: "{{ oauth_token }}" - name: Create a certificate with trust chain community.digitalocean.digital_ocean_certificate: name: production state: present private_key: "{{ lookup('file', 'test.key') }}" leaf_certificate: "{{ lookup('file', 'test.cert') }}" certificate_chain: "{{ lookup('file', 'chain.cert') }}" oauth_token: "{{ oauth_token }}" - name: Remove a certificate community.digitalocean.digital_ocean_certificate: name: production state: absent oauth_token: "{{ oauth_token }}"
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/community/digitalocean/digital_ocean_certificate_module.html