This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
сервис_ansible [2022/09/22 12:09] val [Роль OpenVPN сервера] |
сервис_ansible [2022/09/22 12:52] val [Роль OpenVPN сервера] |
||
---|---|---|---|
Line 483: | Line 483: | ||
server {{node_nets[ansible_hostname]}} 255.255.255.0 | server {{node_nets[ansible_hostname]}} 255.255.255.0 | ||
- | push "route 192.168.X.0 255.255.255.0" | + | push "route 192.168.{{X}}.0 255.255.255.0" |
- | #push "dhcp-option DNS 192.168.X.10" | + | #push "dhcp-option DNS 192.168.{{X}}.10" |
#push "block-outside-dns" | #push "block-outside-dns" | ||
Line 547: | Line 547: | ||
all: | all: | ||
vars: | vars: | ||
+ | X: "{{ ansible_eth1.ipv4.address.split('.')[2] }}" | ||
ansible_python_interpreter: "/usr/bin/python3" | ansible_python_interpreter: "/usr/bin/python3" | ||
ansible_ssh_user: vagrant | ansible_ssh_user: vagrant |