Add role for deploying certbot and setting up certificate using it
This commit is contained in:
parent
1b45e94960
commit
5341f9dfba
7 changed files with 104 additions and 0 deletions
13
playbooks/roles/certbot/tasks/main/certs.yaml
Normal file
13
playbooks/roles/certbot/tasks/main/certs.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
- name: ensure directory for the webroot exists
|
||||
ansible.builtin.file:
|
||||
path: /webroot-for-acme-challenge/
|
||||
state: directory
|
||||
mode: "0755"
|
||||
owner: root
|
||||
group: root
|
||||
become: true
|
||||
|
||||
- name: obtain certificates
|
||||
loop: "{{ certbot__certificate_domains }}"
|
||||
ansible.builtin.include_tasks:
|
||||
file: main/cert.yaml
|
Loading…
Add table
Add a link
Reference in a new issue