Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smartos: use Google DNS servers #156

Merged
merged 1 commit into from
Aug 21, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions setup/smartos/ansible-playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@
with_items: packages
tags: general

- name: Remove all DNS servers from resolv.conf
lineinfile: dest=/etc/resolv.conf state=absent regexp="^(\s*)nameserver(\s+)"
tags: general

- name: Add DNS servers to the list in resolv.conf
lineinfile: dest=/etc/resolv.conf state=present regexp="^(\s*)nameserver(\s+){{ item }}(\s*)$" line="nameserver {{ item }}"
with_items: dns_servers
tags: general

- name: User | Add {{ server_user }} group
command: groupadd {{ server_user }}
tags: user
Expand Down
3 changes: 3 additions & 0 deletions setup/smartos/ansible-vars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ packages:
- automake
- libtool
- ccache
dns_servers:
- 8.8.8.8
- 8.8.4.4