Move module enabling to certbot role

This commit is contained in:
flyingscorpio@clevo 2022-03-15 15:31:12 +01:00
parent 0801df2eb7
commit e6c8aa3cee
2 changed files with 13 additions and 7 deletions

View file

@ -16,15 +16,11 @@
update_cache: yes
notify: Reload apache2 service
- name: Activate modules
- name: Enable wsgi module
become: true
apache2_module:
name: "{{ item }}"
name: wsgi
state: present
with_items:
- rewrite
- ssl
- wsgi
notify: Reload apache2 service
- name: Copy vHost conf

View file

@ -19,7 +19,17 @@
src: acme.conf
dest: /etc/apache2/conf-available/acme.conf
- name: Activate acme apache conf
- name: Enable modules
become: true
apache2_module:
name: "{{ item }}"
state: present
with_items:
- rewrite
- ssl
notify: Reload apache2 service
- name: Enable acme apache conf
become: true
command: a2enconf acme
register: result