+
+<p>
+Installation and configuration of the DHCP daemon follows. Note that
+the daemon listens <i>only</i> on the <code>wild</code> network interface. Also note
+that there is no longer an added <code>Requires</code> dependency, in deference
+to the <code>Wants</code> dependency generated by <code>systemd-sysv-generator</code>.
+Presumably the (new?) <code>Wants</code> dependencies alone will avoid the
+previous intermittent failures where the <code>wild</code> interface had no IPv4
+addresses (or did not exist at all?).
+</p>
+
+<div class="org-src-container">
+<a href="roles_t/gate/tasks/main.yml"><q>roles_t/gate/tasks/main.yml</q></a><pre class="src src-conf"><code>- name: Install DHCP server.
+ become: yes
+ <span class="org-variable-name">apt: pkg</span>=isc-dhcp-server
+
+- name: Configure DHCP interface.
+ become: yes
+ lineinfile:
+ path: /etc/default/isc-dhcp-server
+ <span class="org-variable-name">line: INTERFACESv4</span>=<span class="org-string">"wild"</span>
+ <span class="org-variable-name">regexp: ^INTERFACESv4</span>=
+ notify: Restart DHCP server.
+
+- name: Configure DHCP subnet.
+ become: yes
+ template:
+ src: dhcpd.conf
+ dest: /etc/dhcp/dhcpd.conf
+ notify: Restart DHCP server.
+
+- name: Start DHCP server.
+ become: yes
+ systemd:
+ service: isc-dhcp-server
+ state: started
+ tags: actualizer
+
+- name: Enable DHCP server.
+ become: yes
+ systemd:
+ service: isc-dhcp-server
+ enabled: yes
+</code></pre>