Replaced redirects by origine to raise performance

This commit is contained in:
2025-08-11 19:44:14 +02:00
parent 1496f1de95
commit f72ac30884
8 changed files with 80 additions and 9 deletions

View File

@@ -1,13 +1,13 @@
- name: Create Docker network for MariaDB
docker_network:
community.docker.docker_network:
name: "{{ mariadb_network_name }}"
state: present
ipam_config:
- subnet: "{{ mariadb_subnet }}"
- name: install MariaDB
docker_container:
community.docker.docker_container:
name: "{{ mariadb_name }}"
image: "{{ mariadb_image }}:{{ mariadb_version}}"
detach: yes

View File

@@ -1,5 +1,5 @@
- name: "Create database: {{ database_name }}"
mysql_db:
community.mysql.mysql_db:
name: "{{ database_name }}"
state: present
login_user: root
@@ -10,7 +10,7 @@
collation: "{{ database_collation }}"
- name: "Create database user: {{ database_username }}"
mysql_user:
community.mysql.mysql_user:
name: "{{database_username}}"
password: "{{database_password}}"
host: "%"

View File

@@ -18,7 +18,7 @@
when: not applications | get_app_conf(application_id, 'network.public', True) | bool
- name: create docker network for LDAP, so that other applications can access it
docker_network:
community.docker.docker_network:
name: "{{ openldap_network }}"
state: present
ipam_config:

View File

@@ -1,5 +1,5 @@
- name: Create Docker network for PostgreSQL
docker_network:
community.docker.docker_network:
name: "{{ postgres_network_name }}"
state: present
ipam_config:

View File

@@ -4,7 +4,7 @@
register: ssh_key
- name: Generate a SSH key for root if it does not exist
ansible.builtin.openssh_keypair:
community.crypto.openssh_keypair:
path: "/root/.ssh/id_rsa"
type: rsa
size: 4096

View File

@@ -9,7 +9,7 @@
name: docker-compose
- name: Create Docker network for Collabora
docker_network:
community.docker.docker_network:
name: svc-db-mariadb
state: present
ipam_config:

View File

@@ -1,6 +1,6 @@
---
- name: "stop and remove discourse container if it exist"
docker_container:
community.docker.docker_container:
name: "{{ discourse_container }}"
state: absent
register: container_action