Two problems are fixed in this commit. Firstly handler
is not triggered so dnsmasq is not started. Secondly
dns is not working due to loop in dns settings.
Change-Id: If6874c99dcc42ef63da167abe8d1f7cdd8e0fcb1
Issue-ID: OOM-1866
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
   docker_container:
     name: dns-server
     image: "{{ dns_server_image }}"
-    command: -H /simulated_hosts --log-facility=-
+    command: -H /simulated_hosts --log-facility=- --dns-loop-detect
     capabilities: NET_ADMIN
     volumes:
       - "{{ app_data_path }}/cfg/simulated_hosts:/simulated_hosts:ro"
 
   command: /bin/true
   notify: Run dns server container
   when: "'dns-server' not in containers_list.containers"
+
+- name: Force notified handlers to run at this point
+  meta: flush_handlers