Add config for nat dhcp jail on homeserver.

This commit is contained in:
Tom Alexander 2022-12-03 01:41:00 -05:00
parent d3c1905847
commit 32073d9720
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
4 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1 @@
os_flavor: "freebsd"

View File

@ -1,2 +1,4 @@
[jail] [jail]
nat_dhcp ansible_connection=jail nat_dhcp ansible_connection=jail
homeserver_nat_dhcp ansible_ssh_host=nat_dhcp@172.16.16.2 ansible_connection=sshjail
nat_dhcp@172.16.16.2 ansible_connection=sshjail

View File

@ -34,7 +34,7 @@
- google_cloud_sdk - google_cloud_sdk
- ansible - ansible
- hosts: nat_dhcp - hosts: nat_dhcp:homeserver_nat_dhcp
vars: vars:
ansible_become: True ansible_become: True
roles: roles:

View File

@ -24,6 +24,9 @@ elif [ "$target" = "odofreebsd" ]; then
ansible-playbook -v -i environments/laptop playbook.yaml --diff --limit odofreebsd "${@}" ansible-playbook -v -i environments/laptop playbook.yaml --diff --limit odofreebsd "${@}"
elif [ "$target" = "jail_nat_dhcp" ]; then elif [ "$target" = "jail_nat_dhcp" ]; then
ansible-playbook -v -i environments/jail playbook.yaml --diff --limit nat_dhcp "${@}" ansible-playbook -v -i environments/jail playbook.yaml --diff --limit nat_dhcp "${@}"
elif [ "$target" = "jail_homeserver_nat_dhcp" ]; then
ansible-playbook -v -i environments/jail playbook.yaml --diff --limit homeserver_nat_dhcp "${@}"
#
else else
die 1 "Unrecognized target" die 1 "Unrecognized target"
fi fi