ansible-role-certbot/molecule/default/playbook-source-install.yml
Simon Caron d408884f18
Add Cloudflare DNS-01 Challenge
* Add Cloudflare support

* Ensure cron install

* linting

* Add Redhat cron install

* Update vars
2025-08-19 20:56:49 -04:00

27 lines
576 B
YAML

---
- name: Converge
hosts: all
#become: true
vars:
certbot_install_method: 'source'
certbot_auto_renew_user: root
pre_tasks:
- name: Update apt cache.
apt: update_cache=yes cache_valid_time=600
when: ansible_os_family == 'Debian'
changed_when: false
- name: Install cron (RedHat).
yum: name=cronie state=present
when: ansible_os_family == 'RedHat'
- name: Install cron (Debian).
apt: name=cron state=present
when: ansible_os_family == 'Debian'
roles:
- geerlingguy.git
- simoncaron.certbot