ansible-edda/playbooks/tasks/services/c-deploy/00-hosts.yml

12 lines
332 B
YAML

- name: Reset reverse proxy hosts variable
set_fact:
service_rproxy_hosts:
- name: Collect reverse proxy hosts
set_fact:
service_rproxy_hosts: "{{ service_rproxy_hosts }} --add-host=pod-{{ item.key }}:{{ item.value.address }}"
with_items: "{{ services | dict2items }}"
- debug:
msg: "{{ service_rproxy_hosts }}"