Browse Source

use filter when finding reverse proxy destionation

python3
Edoardo Putti 6 years ago
parent
commit
7c32a6a7be
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      roles/reverse_proxy/templates/upstream.j2

+ 1
- 1
roles/reverse_proxy/templates/upstream.j2 View File

@ -1,3 +1,3 @@
upstream {{ hostname }}_https {
server {{ hostvars[ansible_hostname]['ansible_host'] }}:443;
server {{ hostvars | ip_from_inventory(ansible_hostname) }}:443;
}

Loading…
Cancel
Save