Skip to content
Extraits de code Groupes Projets
Valider cb536339 rédigé par Rémi - Le Filament's avatar Rémi - Le Filament
Parcourir les fichiers

[FIX] remove old inventory groups

parent 1ba8f15d
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -22,10 +22,7 @@ Variables defined in defaults/main.yaml:
* allow_iframe: whether iframes are allowed
This role makes use of a few variables which are set in case the target server is part of other groups (but still initialized to false in defaults/main.yml), namely :
* docker_auth
* ldap_url
* sso_url
* docker_nextcloud or docker_owncloud
* docker_nextcloud
* cloud_url
* cloud_collabora and cloud_collabora_url
* cloud_onlyoffice and cloud_onlyoffice_url
......@@ -64,7 +61,7 @@ Dependencies
This role requires the following Ansible collection :
* community.docker
This role does not have dependencies per-se, while it can be dependant on variables defined in other groups (backup_servers, docker_auth, docker_nextcloud, docker_odoo, docker_owncloud)
This role does not have dependencies per-se, while it can be dependant on variables defined in other groups (backup_servers, docker_nextcloud, docker_odoo)
Example Playbook
----------------
......
......@@ -11,16 +11,12 @@ services:
app:
{% endif %}
shared:
{% if inventory_hostname in groups['docker_auth'] | union(groups['docker_nagios']) or cloud_collabora or cloud_onlyoffice %}
{% if inventory_hostname in groups['docker_nagios'] or cloud_collabora or cloud_onlyoffice %}
aliases:
{% if inventory_hostname in groups['docker_auth'] %}
- {{ ldap_url }}
- {{ sso_url }}
{% endif %}
{% if inventory_hostname in groups['docker_nagios'] %}
- {{ nagios_url }}
{% endif %}
{% if inventory_hostname in groups['docker_nextcloud'] | union(groups['docker_owncloud']) %}
{% if inventory_hostname in groups['docker_nextcloud'] %}
- {{ cloud_url }}
{% if cloud_collabora %}
- {{ cloud_collabora_url }}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter