aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/roles/letsencrypt/tasks/main.yml
blob: a4160d7bb35a7acc53117c4b25c2d595844b2764 (plain) (tree)
1
2
3
4
5
                       
                                            
                                             
                                                 








                                               
- 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 }}'