command would not be necessary.
Installation and configuration of the DHCP daemon follows. Note that
-the daemon listens /only/ on the Gate-WiFi network interface.
+the daemon listens /only/ on the Gate-WiFi network interface. Also
+note the drop-in ~Requires~ dependency, without which the DHCP server
+intermittently fails, finding the ~wifi~ interface has no IPv4
+addresses (or perhaps finding no ~wifi~ interface at all?).
#+CAPTION: [[file:roles_t/gate/tasks/main.yml][=roles_t/gate/tasks/main.yml=]]
#+BEGIN_SRC conf :tangle roles_t/gate/tasks/main.yml
regexp: ^INTERFACESv4=
notify: Restart DHCP server.
+- name: Configure DHCP server dependence on interface.
+ become: yes
+ copy:
+ content: |
+ [Unit]
+ Requires=network-online.target
+ dest: /etc/systemd/system/isc-dhcp-server.service.d/depend.conf
+ notify: Reload Systemd.
+
- name: Configure DHCP for WiFiAP service.
become: yes
copy:
systemd:
service: isc-dhcp-server
state: restarted
+
+- name: Reload Systemd.
+ become: yes
+ systemd:
+ daemon-reload: yes
#+END_SRC
** Install Server Certificate
regexp: ^INTERFACESv4=
notify: Restart DHCP server.
+- name: Configure DHCP server dependence on interface.
+ become: yes
+ copy:
+ content: |
+ [Unit]
+ Requires=network-online.target
+ dest: /etc/systemd/system/isc-dhcp-server.service.d/depend.conf
+ notify: Reload Systemd.
+
- name: Configure DHCP for WiFiAP service.
become: yes
copy: