Skip to content

Commit

Permalink
Merge pull request #25 from blofeldthefish/debian-default-fix
Browse files Browse the repository at this point in the history
ensure debian installs work 'out of the box'
  • Loading branch information
bertvv committed Aug 14, 2019
2 parents d48d3d3 + 7bd536b commit 57d9254
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tasks/default-fix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# roles/dhcp/tasks/default-fix.yml
# This playbook adjusts a required dhcp package "default" file,
# specific to debian-like installs
---

- name: Defaults fix | Set a default listening interface
lineinfile:
dest: /etc/default/isc-dhcp-server
line: 'INTERFACESv4="{{ ansible_default_ipv4.interface }}"'
regexp: '^INTERFACESv4='
tags: dhcp
4 changes: 4 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
when: ansible_os_family == 'Debian' and apparmor_fix|bool
tags: dhcp

- include_tasks: default-fix.yml
when: ansible_os_family == 'Debian'
tags: dhcp

- name: Install includes
copy:
src: "{{ item }}"
Expand Down

0 comments on commit 57d9254

Please sign in to comment.