Skip to content

Commit

Permalink
Fix dns problems
Browse files Browse the repository at this point in the history
  • Loading branch information
Onni Hakala committed Feb 26, 2016
1 parent 13e14d0 commit 4715e7e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 9 additions & 0 deletions ansible/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@
become: yes
become_method: sudo

- name: Delete resolver files to trigger dns change
file:
path: "/etc/resolver/{{item.domain}}"
state: absent
become: yes
become_method: sudo
with_items:
- { ip: "{{ machine_ip.stdout }}", domain: test }

- name: Create dns resolver files at /etc/resolver/
template:
src: "{{ dev_env_dir }}/ansible/resolver-dev.conf.j2"
Expand Down
5 changes: 4 additions & 1 deletion docker/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ dnsmasq:
- "172.17.0.1:53:53/udp"
cap_add:
- NET_ADMIN
command: --address=/dev/192.168.99.100
# TODO: can't use {BOX_IP} because the variable won't get interpolated
command: "--address=/dev/$BOX_IP"
restart: always
environment:
BOX_IP: "{BOX_IP}"
mail:
image: mailhog/mailhog
environment:
Expand Down

0 comments on commit 4715e7e

Please sign in to comment.