Skip to content

Commit

Permalink
Fix 23; fixes potential DNS problems when using docker.io
Browse files Browse the repository at this point in the history
  • Loading branch information
angstwad committed Dec 6, 2014
1 parent 377e8e3 commit e1380bf
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,22 @@
notify:
- Reload docker
when: "export_docker_host"

- name: Fix DNS in docker.io
lineinfile:
dest: /etc/default/docker

This comment has been minimized.

Copy link
@sirex

sirex Mar 1, 2015

On Ubuntu 14.04 the file is /etc/default/docker.io.

regexp: "DOCKER_OPTS="
line: 'DOCKER_OPTS="--dns {{ ansible_docker0.ipv4.address }}"'
register: dns_fix
notify: Restart dockerio
when: docker_pkg_name == 'docker.io'

- meta: flush_handlers
when: "dns_fix|changed"

- pause:
seconds: 1
when: "dns_fix|changed"

- name: Install pip python package
apt:
Expand Down

0 comments on commit e1380bf

Please sign in to comment.