This commit is contained in:
14
config.yaml
14
config.yaml
@@ -60,9 +60,9 @@
|
|||||||
state: present
|
state: present
|
||||||
applianceIp: "192.168.{{ item.id }}.1"
|
applianceIp: "192.168.{{ item.id }}.1"
|
||||||
# cidr: "192.168.{{ item.id }}.0/24"
|
# cidr: "192.168.{{ item.id }}.0/24"
|
||||||
id: '{{ item.id }}'
|
id: "{{ item.id }}"
|
||||||
vlanId: {{ item.id }}
|
vlanId: "{{ item.id }}"
|
||||||
name: {{ item.name }}
|
name: "{{ item.name }}"
|
||||||
networkId: "{{ nid }}"
|
networkId: "{{ nid }}"
|
||||||
subnet: "192.168.{{ item.id }}.0/24"
|
subnet: "192.168.{{ item.id }}.0/24"
|
||||||
loop: vlans
|
loop: vlans
|
||||||
@@ -70,8 +70,8 @@
|
|||||||
- name: Enable DHCP on Relevant VLANs
|
- name: Enable DHCP on Relevant VLANs
|
||||||
cisco.meraki.networks_appliance_vlans:
|
cisco.meraki.networks_appliance_vlans:
|
||||||
state: present
|
state: present
|
||||||
id: '{{ item.id }}'
|
id: "{{ item.id }}"
|
||||||
vlanId: {{ item.id }}
|
vlanId: "{{ item.id }}"
|
||||||
dhcpHandling: "Run a DHCP server"
|
dhcpHandling: "Run a DHCP server"
|
||||||
dhcpLeaseTime: "1 day"
|
dhcpLeaseTime: "1 day"
|
||||||
dnsNameservers: |
|
dnsNameservers: |
|
||||||
@@ -83,8 +83,8 @@
|
|||||||
- name: Disable DHCP on Relevant VLANs
|
- name: Disable DHCP on Relevant VLANs
|
||||||
cisco.meraki.networks_appliance_vlans:
|
cisco.meraki.networks_appliance_vlans:
|
||||||
state: present
|
state: present
|
||||||
id: '{{ item.id }}'
|
id: "{{ item.id }}"
|
||||||
vlanId: {{ item.id }}
|
vlanId: "{{ item.id }}"
|
||||||
dhcpHandling: "Do not respond to DHCP requests"
|
dhcpHandling: "Do not respond to DHCP requests"
|
||||||
loop: vlans
|
loop: vlans
|
||||||
when: not item.dhcp
|
when: not item.dhcp
|
||||||
|
|||||||
Reference in New Issue
Block a user