Add role for deploying certbot and setting up certificate using it

This commit is contained in:
June 2023-08-02 20:47:22 +02:00 committed by julian
commit 5341f9dfba
7 changed files with 104 additions and 0 deletions

View 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