Skip to content
Snippets Groups Projects
Commit 2e34ea5f authored by Ira ㋡'s avatar Ira ㋡
Browse files

Add name to ssl IPv4 host list task (all tasks should be named - E502)

parent d232be39
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,8 @@
- name: setup postgres ssl host based authentication
hosts: apollo.archlinux.org
tasks:
- set_fact: postgres_ssl_hosts4="{{ [orion4] + detected_ips}}"
- name: prepare postgres ssl hosts list (IPv4)
set_fact: postgres_ssl_hosts4="{{ [orion4] + detected_ips }}"
vars:
orion4: "{{ hostvars['orion.archlinux.org']['ipv4_address'] }}/32"
detected_ips: "{{ groups['mirrors'] | map('extract', hostvars, ['ipv4_address']) | select() | map('regex_replace', '^(.+)$', '\\1/32') | list}}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment