mirror of
https://github.com/nikdoof/ansible-certbot.git
synced 2025-12-14 08:02:15 +00:00
Initial commit
This commit is contained in:
35
tasks/install.yaml
Normal file
35
tasks/install.yaml
Normal 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
|
||||
Reference in New Issue
Block a user