The *hass-dhcp* role installs dnsmasq and configures it to serve DHCP requests on the Home Assistant network. Since this network is not routed, the regular DHCP relay/server setup will not work.
23 lines
407 B
YAML
23 lines
407 B
YAML
- hosts: home-assistant
|
|
roles:
|
|
- apache
|
|
- homeassistant
|
|
tasks:
|
|
- name: ensure homeassistant is running
|
|
service:
|
|
name: homeassistant
|
|
state: started
|
|
- name: ensure apache is running
|
|
service:
|
|
name: httpd
|
|
state: started
|
|
|
|
- hosts: home-assistant
|
|
roles:
|
|
- hass-dhcp
|
|
tasks:
|
|
- name: ensure dnsmasq is running
|
|
service:
|
|
name: dnsmasq
|
|
state: started
|