-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Emilien Mantel
committed
Jul 28, 2015
1 parent
6a544c1
commit 88af812
Showing
6 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,6 @@ | |
|
||
- name: locale-gen | ||
command: locale-gen | ||
|
||
- name: reload networking | ||
action: service name=networking state=reloaded |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
|
||
- name: APT | Install Unbound | ||
apt: pkg=unbound state=latest | ||
|
||
- name: REPLACE | Apply dns configuration to /etc/network/interfaces if necessary | ||
replace: dest=/etc/network/interfaces regexp='^\s+dns-nameservers' replace='\tdns-nameservers 127.0.0.1' | ||
notify: reload networking | ||
|
||
- name: STAT | Check if DHCP client config | ||
stat: path=/etc/dhcp/dhclient.conf | ||
register: dhcp | ||
|
||
- name: LINEINFILE | Prepend DNS config on DHCP | ||
lineinfile: dest=/etc/dhcp/dhclient.conf line='prepend domain-name-servers 127.0.0.1;' | ||
when: dhcp.stat.exists | ||
notify: reload networking |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
- hosts: all | ||
vars: | ||
dbs_use_unbound: true | ||
dbs_users: | ||
- name: hanx | ||
sudo: true | ||
|