Rename domain group variable to server_domain

This commit is contained in:
Marty Oehme 2021-10-08 10:03:27 +02:00
parent 6036a91902
commit ee8a6f0598
Signed by: Marty
GPG key ID: B7538B8F50A1C800
3 changed files with 5 additions and 3 deletions

View file

@ -8,3 +8,5 @@ caddy_tls_use_staging: yes
whoami_use_https: no whoami_use_https: no
wallabag_use_https: no wallabag_use_https: no
#server_domain: mytest.com

View file

@ -8,7 +8,7 @@
register: result register: result
changed_when: (result.stdout | from_json) != (lookup('template', 'upstream.json.j2') | from_yaml) changed_when: (result.stdout | from_json) != (lookup('template', 'upstream.json.j2') | from_yaml)
become: yes become: yes
notify: "update upstream" notify: "update whoami upstream"
- name: Deploy whoami to swarm - name: Deploy whoami to swarm
community.general.docker_stack: community.general.docker_stack:
@ -21,5 +21,5 @@
become: yes become: yes
tags: tags:
- docker-swarm - docker-swarm
notify: "update upstream" notify: "update whoami upstream"

View file

@ -1,6 +1,6 @@
{ {
"@id": "{{ stack.name }}_upstream", "@id": "{{ stack.name }}_upstream",
{% if domain is not undefined and not none %} {% if server_domain is not undefined and not none %}
"match": [ "match": [
{ {
"host": [ "host": [