Rename domain group variable to server_domain
This commit is contained in:
parent
6036a91902
commit
ee8a6f0598
3 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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": [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue