Compare commits
2 commits
a328e92971
...
fbd3ea5496
| Author | SHA1 | Date | |
|---|---|---|---|
|
fbd3ea5496 |
|||
|
80ddb2efc9 |
3 changed files with 20 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ table inet host {
|
|||
tcp dport 22 accept comment "allow ssh access"
|
||||
|
||||
# Allow DHCP server access.
|
||||
iifname $if_net0_3_ci_runner udp dport 67 accept comment "allow dhcp server access"
|
||||
iifname { $if_net0_2_v4_nat, $if_net0_3_ci_runner } udp dport 67 accept comment "allow dhcp server access"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,12 @@ Description=v4-NAT
|
|||
# Masquerading done in nftables (nftables.conf).
|
||||
IPv6SendRA=yes
|
||||
|
||||
DHCPServer=true
|
||||
|
||||
[DHCPServer]
|
||||
PoolOffset=100
|
||||
PoolSize=150
|
||||
|
||||
[Address]
|
||||
Address=10.32.2.1/24
|
||||
|
||||
|
|
|
|||
13
roles/base_config/tasks/main.yaml
Normal file
13
roles/base_config/tasks/main.yaml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Ensure the ssh module is disabled, so a cloud-init config change doesn't regenerate the host keys for no reason.
|
||||
- name: check if cloud-init config file exists
|
||||
ansible.builtin.stat:
|
||||
path: /etc/cloud/cloud.cfg
|
||||
register: base_config__stat_cloud_cfg
|
||||
|
||||
- name: ensure the cloud-init ssh module is disabled
|
||||
ansible.builtin.replace:
|
||||
path: /etc/cloud/cloud.cfg
|
||||
regexp: " - ssh$"
|
||||
replace: " #- ssh"
|
||||
become: true
|
||||
when: base_config__stat_cloud_cfg.stat.exists
|
||||
Loading…
Add table
Add a link
Reference in a new issue