put lewis in DMZ network
This commit is contained in:
parent
287fff41b4
commit
04becbb99d
5 changed files with 17 additions and 5 deletions
|
@ -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
|
|
@ -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}
|
||||
|
|
2
ansible/inventory/host_vars/atlas/main.yml
Normal file
2
ansible/inventory/host_vars/atlas/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
dmz_interface:
|
||||
enabled: false
|
2
ansible/inventory/host_vars/jefke/main.yml
Normal file
2
ansible/inventory/host_vars/jefke/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
dmz_interface:
|
||||
enabled: false
|
3
ansible/inventory/host_vars/lewis/main.yml
Normal file
3
ansible/inventory/host_vars/lewis/main.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
dmz_interface:
|
||||
enabled: true
|
||||
mac: "ca:fe:c0:ff:ee:0b"
|
Reference in a new issue