diff --git a/Ansible/bootstrap.yaml b/Ansible/bootstrap.yaml index 362472242130d097e7a13a5eede85ec018f20c2c..53eb64b4250cccf9779b54f3929cb2275ced9152 100644 --- a/Ansible/bootstrap.yaml +++ b/Ansible/bootstrap.yaml @@ -13,6 +13,7 @@ - name: Bootstrap OpenWRT hosts hosts: - ea6350 + - mr8300 tags: - openwrt - update diff --git a/Ansible/hosts/all.yaml b/Ansible/hosts/all.yaml index b8e14e2d06e2f2ffd1507ea25b2dc08c1016d303..9b3735ac62e9ecef9489ee394d6a63db31e25cf7 100644 --- a/Ansible/hosts/all.yaml +++ b/Ansible/hosts/all.yaml @@ -12,6 +12,10 @@ all: # We already log in as root. ansible_become: false ansible_host: ea6350.shore.co.il + mr8300: + # We already log in as root. + ansible_become: false + ansible_host: mr8300.shore.co.il host01: ansible_host: host01.shore.co.il localhost: diff --git a/Ansible/roles/router/files/dhcpd.conf b/Ansible/roles/router/files/dhcpd.conf index 18e0064462ee3bd7d7d13f32bc9210efaee17411..8fb05994ef6ed21d47ea2cd851d574e2ad8c3469 100644 --- a/Ansible/roles/router/files/dhcpd.conf +++ b/Ansible/roles/router/files/dhcpd.conf @@ -27,4 +27,9 @@ subnet 192.168.3.0 netmask 255.255.255.0 hardware ethernet 04:42:1a:ca:2c:87; fixed-address host01.shore.co.il; } + host mr8300 + { + hardware ethernet C4:41:1E:AA:03:4A; + fixed-address mr8300.shore.co.il; + } } diff --git a/Ansible/roles/router/files/hosts b/Ansible/roles/router/files/hosts index fe35961b5bb8d5888fa5cbca759bbb978d020792..eeb12619097b84560712fa16077f00b256834e7c 100644 --- a/Ansible/roles/router/files/hosts +++ b/Ansible/roles/router/files/hosts @@ -3,4 +3,5 @@ 192.168.3.1 ns1 192.168.3.11 ea6350.shore.co.il ea6350 192.168.3.12 xbmc.shore.co.il xbmc kodi.shore.co.il kodi +192.168.3.13 mr8300.shore.co.il mr8300 192.168.3.17 host01.shore.co.il host01 diff --git a/Ansible/roles/router/files/unbound/shore.co.il.conf b/Ansible/roles/router/files/unbound/shore.co.il.conf index 6604d3c9203214a4a98585e1ed2fa85fb800ae0c..6baab09431c4940e1ebba05ac648d15caccac10d 100644 --- a/Ansible/roles/router/files/unbound/shore.co.il.conf +++ b/Ansible/roles/router/files/unbound/shore.co.il.conf @@ -5,5 +5,6 @@ server: access-control: 127.0.0.0/8 allow local-data: "ea6350.shore.co.il. A 192.168.3.11" local-data: "kodi.shore.co.il. A 192.168.3.12" + local-data: "mr8300.shore.co.il. A 192.168.3.13" local-data: "host01.shore.co.il. A 192.168.3.17" local-data: "smtp.shore.co.il. A 192.168.3.17" diff --git a/Ansible/update.yaml b/Ansible/update.yaml index e4d5aa832e97be6fb810e9f6d9fa439b188d77bd..7fde53736e376f3221e925fcc593612e9d8ff5ac 100644 --- a/Ansible/update.yaml +++ b/Ansible/update.yaml @@ -138,9 +138,10 @@ tags: - reboot -- name: Reboot EA6350 +- name: Reboot wireless access point hosts: - ea6350 + - mr8300 tasks: - name: Reboot when: reboot_needed|default(false) @@ -153,7 +154,7 @@ - name: Reboot the rest hosts: - - all:!ns1:!ea6350 + - all:!ns1:!ea6350:!mr8300 tasks: - name: Wait to re-establish the connection wait_for_connection: diff --git a/Ansible/wap.yaml b/Ansible/wap.yaml index a2b7bfafaa5eba00e2d19667108ce2ab1ac8c823..5c1bddb1cc0987f531f75023503a5f5f7af2948c 100644 --- a/Ansible/wap.yaml +++ b/Ansible/wap.yaml @@ -1,5 +1,6 @@ --- - hosts: - ea6350 + - mr8300 roles: - wap