Files
repo2cicd2deploy/.ansible/roles/geerlingguy.certbot/molecule/default/converge.yml
T
2026-09-18 20:07:04 +02:00

29 lines
600 B
YAML

---
- 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_facts.os_family == 'Debian'
changed_when: false
- name: Install dependencies (RedHat).
yum:
name:
- cronie
- epel-release
state: present
when: ansible_facts.os_family == 'RedHat'
- name: Install cron (Debian).
apt: name=cron state=present
when: ansible_facts.os_family == 'Debian'
roles:
- geerlingguy.certbot