roles/firewall: make bastion_ip a variable
This commit is contained in:
parent
97fc92ff56
commit
e32301fa3c
@ -6,3 +6,5 @@
|
||||
local_subnet: 192.168.0.0/24
|
||||
|
||||
sshd_port: 2500
|
||||
|
||||
bastion_ip: "{{ host_vars[groups['bastion'][0]]['local_ip'] }}"
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
- name: Set default sources (fleet server)
|
||||
set_fact:
|
||||
default_firewall_src: "{{ host_vars[groups['bastion'][0]]['local_ip'] }}"
|
||||
default_firewall_src: "{{ bastion_ip }}"
|
||||
when: "fleet" in group_names
|
||||
|
||||
- name: Allow service ports
|
||||
|
Loading…
Reference in New Issue
Block a user