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

35
tasks/install.yaml Normal file
View File

@@ -0,0 +1,35 @@
---
- name: Install certbot
ansible.builtin.package:
name: "{{ packages }}"
state: present
vars:
packages:
- certbot
- name: Install DigitalOcean certbot extension
ansible.builtin.package:
name: "{{ packages }}"
state: present
vars:
packages:
- python3-certbot-dns-digitalocean
when:
- certbot_digitalocean_token is defined
- name: Install GoDaddy certbot extension from PyPi
ansible.builtin.pip:
name: "{{ packages }}"
state: present
vars:
packages:
- certbot-dns-godaddy
when:
- certbot_godaddy_key is defined
- certbot_godaddy_secret is defined
- name: Enable certbot renewal timer
ansible.builtin.systemd:
name: certbot.timer
state: started
enabled: true