Skip to content

Commit

Permalink
Install isc-dhcp-server after rendering configs
Browse files Browse the repository at this point in the history
  • Loading branch information
iljarotar committed Nov 21, 2024
1 parent b2f3a1f commit 2f73131
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions partition/roles/dhcp/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@
loop_control:
label: "{{ item.network }}"

- name: install isc-dhcp-server
apt:
name:
- isc-dhcp-server
update_cache : yes

- name: render dhcpd conf
template:
src: dhcpd.conf.j2
Expand All @@ -42,6 +36,12 @@
when: dhcp_static_hosts is defined
register: _hosts_conf

- name: install isc-dhcp-server
apt:
name:
- isc-dhcp-server
update_cache : yes

- name: restart isc-dhcp-server on config change
service:
name: "{{ dhcp_service_name }}"
Expand Down

0 comments on commit 2f73131

Please sign in to comment.