enable automated setup of physical infrastructure
[integration/packaging/ansible-opendaylight.git] / roles / infra / tasks / update_etc_hosts.yml
1 ---
2 - name: Add infra server (docker registry) to /etc/hosts
3   tags:
4     - network
5     - docker
6   lineinfile:
7     dest: /etc/hosts
8     regexp: "^.*{{ infrastructure_server }}"
9     line: "{{ registry_ip_address }}    {{ infrastructure_server }}"
10     state: present
11   register: docker_updated_result
12   notify: restart docker
13
14 # vim: set et ts=2 sw=2 ai ft=yaml :
15