2020-09-11 19:08:41 +02:00

34 lines
648 B
YAML

---
- name: Converge
hosts: all
become: true
vars:
certbot_auto_renew_user: root
certbot_test: true
pre_tasks:
- name: Update apt cache.
apt:
update_cache: true
cache_valid_time: 600
when: ansible_os_family == 'Debian'
changed_when: false
- name: Install dependencies (RedHat).
yum:
name:
- cronie
- epel-release
state: present
when: ansible_os_family == 'RedHat'
- name: Install cron (Debian).
apt:
name: cron
state: present
when: ansible_os_family == 'Debian'
roles:
- geerlingguy.certbot-route53