2022-10-23 22:49:57 +02:00
|
|
|
# Tasks for role apache_letsencrypt
|
2022-09-06 14:31:52 +02:00
|
|
|
---
|
|
|
|
- name: Create configuration for access to dehydrated location
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: templates/letsencrypt-directory.conf.j2
|
|
|
|
dest: /etc/apache2/conf-available/letsencrypt-directory.conf
|
|
|
|
mode: "0644"
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
notify: restart apache2
|
|
|
|
|
|
|
|
- name: Add symlink to enable configuration
|
|
|
|
ansible.builtin.file:
|
|
|
|
src: /etc/apache2/conf-available/letsencrypt-directory.conf
|
|
|
|
dest: /etc/apache2/conf-enabled/letsencrypt-directory.conf
|
|
|
|
state: link
|
|
|
|
mode: "0644"
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
notify: restart apache2
|