Ansible Role - Certbot (for Let's Encrypt)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
---
|
|
|
|
- name: Converge
|
|
|
|
hosts: all
|
|
|
|
become: true
|
|
|
|
|
|
|
|
vars:
|
|
|
|
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 dependencies (RedHat).
|
|
|
|
yum: name={{ item }} state=present
|
|
|
|
when: ansible_os_family == 'RedHat'
|
|
|
|
with_items:
|
|
|
|
- cronie
|
|
|
|
- epel-release
|
|
|
|
|
|
|
|
- name: Install cron (Debian).
|
|
|
|
apt: name=cron state=present
|
|
|
|
when: ansible_os_family == 'Debian'
|
|
|
|
|
|
|
|
roles:
|
|
|
|
- geerlingguy.certbot
|