aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/letsencrypt/tasks/main.yml
blob: a1761a5b25f58ce19c9e3a01ae9d7a275576c213 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
- name: Install Certbot
  ansible.builtin.include_tasks: certbot.yml

- name: Configure Certbot DigitalOcean plugin
  ansible.builtin.include_tasks: digitalocean.yml

- name: Create /etc/letsencrypt
  become: true
  ansible.builtin.command: certbot certificates
  args:
    creates: /etc/letsencrypt

- name: Update certificates
  ansible.builtin.include_tasks: domain.yml
  loop: '{{ letsencrypt_domains }}'
  loop_control:
    loop_var: domain