Initial commit

This commit is contained in:
2023-06-23 07:18:31 +01:00
commit 76624cf398
10 changed files with 161 additions and 0 deletions

37
tasks/install_el.yaml Normal file
View File

@@ -0,0 +1,37 @@
---
- name: When on EL 8
when:
- ansible_os_family == 'RedHat'
- ansible_distribution_major_version != '9'
block:
- name: Install certbot
ansible.builtin.package:
name: "{{ certbot_el_packages }}"
state: present
vars:
certbot_el_packages:
- certbot
- python3-certbot-dns-digitalocean
- name: When on EL 9
when:
- ansible_os_family == 'RedHat'
- ansible_distribution_major_version == '9'
block:
- name: Install certbot
ansible.builtin.package:
name: "{{ certbot_el9_packages }}"
state: present
vars:
certbot_el9_packages:
- certbot
- name: Install certbot-dns-digitalocean from pip
ansible.builtin.pip:
name: certbot-dns-digitalocean
state: present
- name: Enable certbot renewal timer
ansible.builtin.systemd:
name: certbot-renew.timer
state: started
enabled: true