https://github.com/michaelpporter/ansible-role-certbot-cloudflare
Ansible Role for setting up Wildcard certs with certbot and Cloudflare dns plugin
https://github.com/michaelpporter/ansible-role-certbot-cloudflare
Last synced: 2 months ago
JSON representation
Ansible Role for setting up Wildcard certs with certbot and Cloudflare dns plugin
- Host: GitHub
- URL: https://github.com/michaelpporter/ansible-role-certbot-cloudflare
- Owner: michaelpporter
- Created: 2018-09-23T22:36:00.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-04-06T09:13:32.000Z (about 6 years ago)
- Last Synced: 2025-04-07T01:35:30.608Z (about 1 year ago)
- Homepage: https://galaxy.ansible.com/michaelpporter/certbot_cloudflare
- Size: 7.81 KB
- Stars: 17
- Watchers: 0
- Forks: 19
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Certbot Cloudfare
=========
Use Cloudflare DNS for wildcard certbot generation
Requirements
------------
- Cloudflare DNS setup
- Cloudflare API Key
- Wildcard domian setup (for wildcard certs) [*.domain.com or *.subdomain.domain.com]
Role Variables
--------------
certbot_cloudflare_email: "cloudflare@example.com"
Your Cloudflare email address
certbot_cloudflare_api_key: ''
Your Cloudflare Global API Key, optionally encryped `ansible-vault encrypt_string 'cloudflareAPIKey' --name 'certbot_cloudflare_api_key'`
certbot_certs:
- email: {{certbot_cloudflare_email}}
domains:
- *.example3.com
The wildcard domain to create the cert for. For non-wildcard domains I recommend using [geerlingguy.certbot](https://github.com/geerlingguy/ansible-role-certbot)
certbot_cloudflare_acme_server: "{{ certbot_cloudflare_acme_test }}"
or
certbot_cloudflare_acme_server: "{{ certbot_cloudflare_acme_live }}"
Let's Encrypt server to use, defaults to test.
Dependencies
------------
- geerlingguy.pip
- geerlingguy.certbot
Example Playbook
----------------
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
vars:
certbot_cloudflare_email: "cloudflare@example.com"
certbot_cloudflare_api_key: 'myapikey'
certbot_certs:
- email: {{certbot_cloudflare_email}}
domains:
- *.example3.com
roles:
- michaelpporter.certbot-cloudflare
License
-------
MIT / BSD
Author Information
------------------
This role was created in 2018 by [Michael Porter](https://www.michaelpporter.com/).