Add config for nat dhcp jail on homeserver.
This commit is contained in:
parent
d3c1905847
commit
32073d9720
1
ansible/environments/jail/host_vars/homeserver_nat_dhcp
Normal file
1
ansible/environments/jail/host_vars/homeserver_nat_dhcp
Normal file
@ -0,0 +1 @@
|
|||||||
|
os_flavor: "freebsd"
|
@ -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
|
||||||
|
@ -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:
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user