grafana: Aktiviere notwendige Apache-Module
This commit is contained in:
parent
d672c77fd3
commit
528fc15535
1 changed files with 11 additions and 2 deletions
|
@ -5,13 +5,22 @@
|
|||
line: "{{ grafana.domain }}"
|
||||
notify: get certificate
|
||||
|
||||
- name: "webserver | Grafana-Seitenkonfigurationen kopieren"
|
||||
- name: "webserver | Aktiviere Apache-Modul"
|
||||
ansible.builtin.apache2_module:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
notify: restart apache2
|
||||
loop:
|
||||
- proxy
|
||||
- proxy_http
|
||||
|
||||
- name: "webserver | Kopiere Grafana-Seitenkonfiguration"
|
||||
ansible.builtin.template:
|
||||
src: apache2-site.conf
|
||||
dest: "/etc/apache2/sites-available/{{ grafana.domain }}.conf"
|
||||
mode: 0644
|
||||
|
||||
- name: "webserver | Grafana-Seitenkonfiguration aktivieren"
|
||||
- name: "webserver | Aktiviere Grafana-Seitenkonfiguration"
|
||||
ansible.builtin.command:
|
||||
cmd: "a2ensite {{ grafana.domain }}"
|
||||
creates: "/etc/apache2/site-enabled/{{ grafana.domain }}.conf"
|
||||
|
|
Loading…
Reference in a new issue