change order
This commit is contained in:
parent
799d8d3c6e
commit
9ac0280a31
1 changed files with 38 additions and 28 deletions
|
@ -19,39 +19,13 @@
|
||||||
path: "/var/www/node-metrics-{{ ansible_fqdn }}/"
|
path: "/var/www/node-metrics-{{ ansible_fqdn }}/"
|
||||||
state: directory
|
state: directory
|
||||||
owner: www-data
|
owner: www-data
|
||||||
|
|
||||||
- name: Ensure the document root exists postfixnode exporter
|
- name: Ensure the document root exists postfixnode exporter
|
||||||
file:
|
file:
|
||||||
path: "/var/www/postfix-metrics-{{ ansible_fqdn }}/"
|
path: "/var/www/postfix-metrics-{{ ansible_fqdn }}/"
|
||||||
state: directory
|
state: directory
|
||||||
owner: www-data
|
owner: www-data
|
||||||
- name: Enable the Apache2 SSL module
|
|
||||||
community.general.apache2_module:
|
|
||||||
state: present
|
|
||||||
name: ssl
|
|
||||||
- name: Enable the Apache2 rewrite module
|
|
||||||
community.general.apache2_module:
|
|
||||||
state: present
|
|
||||||
name: rewrite
|
|
||||||
- name: Enable the Apache2 authnz_external module
|
|
||||||
community.general.apache2_module:
|
|
||||||
state: present
|
|
||||||
name: authnz_external
|
|
||||||
- name: Enable the Apache2 proxy module
|
|
||||||
community.general.apache2_module:
|
|
||||||
state: present
|
|
||||||
name: proxy
|
|
||||||
- name: Enable the Apache2 proxy_http module
|
|
||||||
community.general.apache2_module:
|
|
||||||
state: present
|
|
||||||
name: proxy_http
|
|
||||||
- name: Enable the Apache2 proxy_wstunnel module
|
|
||||||
community.general.apache2_module:
|
|
||||||
state: present
|
|
||||||
name: proxy_wstunnel
|
|
||||||
- name: Enable the Apache2 authnz_external module
|
|
||||||
community.general.apache2_module:
|
|
||||||
state: present
|
|
||||||
name: authnz_external
|
|
||||||
# Add DNS entries in OVH
|
# Add DNS entries in OVH
|
||||||
|
|
||||||
- name: Check if certificates exist
|
- name: Check if certificates exist
|
||||||
|
@ -68,11 +42,47 @@
|
||||||
include_tasks: configure_prometheus_exporters_certificates.yml
|
include_tasks: configure_prometheus_exporters_certificates.yml
|
||||||
when: not node_certificate.stat.exists or not postfix_certificate.stat.exists
|
when: not node_certificate.stat.exists or not postfix_certificate.stat.exists
|
||||||
|
|
||||||
|
- name: Enable the Apache2 SSL module
|
||||||
|
community.general.apache2_module:
|
||||||
|
state: present
|
||||||
|
name: ssl
|
||||||
|
|
||||||
|
- name: Enable the Apache2 rewrite module
|
||||||
|
community.general.apache2_module:
|
||||||
|
state: present
|
||||||
|
name: rewrite
|
||||||
|
|
||||||
|
- name: Enable the Apache2 authnz_external module
|
||||||
|
community.general.apache2_module:
|
||||||
|
state: present
|
||||||
|
name: authnz_external
|
||||||
|
|
||||||
|
- name: Enable the Apache2 proxy module
|
||||||
|
community.general.apache2_module:
|
||||||
|
state: present
|
||||||
|
name: proxy
|
||||||
|
|
||||||
|
- name: Enable the Apache2 proxy_http module
|
||||||
|
community.general.apache2_module:
|
||||||
|
state: present
|
||||||
|
name: proxy_http
|
||||||
|
|
||||||
|
- name: Enable the Apache2 proxy_wstunnel module
|
||||||
|
community.general.apache2_module:
|
||||||
|
state: present
|
||||||
|
name: proxy_wstunnel
|
||||||
|
|
||||||
|
- name: Enable the Apache2 authnz_external module
|
||||||
|
community.general.apache2_module:
|
||||||
|
state: present
|
||||||
|
name: authnz_external
|
||||||
|
|
||||||
- name: Ensure virtual hosts configuration is deployed
|
- name: Ensure virtual hosts configuration is deployed
|
||||||
template:
|
template:
|
||||||
src: templates/apache2.conf.j2
|
src: templates/apache2.conf.j2
|
||||||
dest: /etc/apache2/sites-available/25-metrics-exporters.conf
|
dest: /etc/apache2/sites-available/25-metrics-exporters.conf
|
||||||
backup: yes
|
backup: yes
|
||||||
|
|
||||||
- name: Ensure virtual hosts configuration is enabled
|
- name: Ensure virtual hosts configuration is enabled
|
||||||
file:
|
file:
|
||||||
dest: /etc/apache2/sites-enabled/25-metrics-exporters.conf
|
dest: /etc/apache2/sites-enabled/25-metrics-exporters.conf
|
||||||
|
|
Loading…
Reference in a new issue