put lewis in DMZ network

This commit is contained in:
Pim Kunis 2023-06-08 20:37:52 +02:00
parent 287fff41b4
commit 04becbb99d
5 changed files with 17 additions and 5 deletions

View file

@ -1,5 +1,10 @@
auto enp3s0.30
{% if dmz_interface.enabled %}
iface enp3s0.30 inet dhcp
hwaddress ether {{ dmz_interface.mac }}
{% else %}
iface enp3s0.30 inet manual
{% endif %}
iface enp3s0.30 inet6 auto
accept_ra 0
dhcp 0

View file

@ -32,8 +32,8 @@
pre_tasks:
- name: Copy interfaces configuration
copy:
src: dmz.conf
template:
src: dmz.conf.j2
dest: /etc/network/interfaces.d/dmz.conf
register: interfaces
@ -53,6 +53,6 @@
- {role: ssh_ca_known_hosts, tags: ssh_ca_known_hosts}
- {role: deploy_ssh_certificates, tags: deploy_ssh_certificates}
- hosts: atlas, jefke
roles:
- {role: borg, tags: borg}
# - hosts: atlas, jefke
# roles:
# - {role: borg, tags: borg}

View file

@ -0,0 +1,2 @@
dmz_interface:
enabled: false

View file

@ -0,0 +1,2 @@
dmz_interface:
enabled: false

View file

@ -0,0 +1,3 @@
dmz_interface:
enabled: true
mac: "ca:fe:c0:ff:ee:0b"