From 290bf4088ac26232076f0eec1255d89687399539 Mon Sep 17 00:00:00 2001 From: Tomáš Levora Date: Wed, 19 Dec 2018 15:47:04 +0100 Subject: Add ansible role for dns simulation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adding role to simulate domain names for offline installation from private nexus repositories Issue-ID: OOM-1551 Change-Id: Ia3fe274e95ef078332627af9229195bd6e9a667d Signed-off-by: Tomáš Levora --- ansible/roles/dns/handlers/main.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 ansible/roles/dns/handlers/main.yml (limited to 'ansible/roles/dns/handlers/main.yml') diff --git a/ansible/roles/dns/handlers/main.yml b/ansible/roles/dns/handlers/main.yml new file mode 100644 index 00000000..ac3209dc --- /dev/null +++ b/ansible/roles/dns/handlers/main.yml @@ -0,0 +1,14 @@ +--- +- name: Restart dnsmasq container + docker_container: + name: dnsmasq + image: andyshinn/dnsmasq:2.76 + command: -H /simulated_hosts --log-facility=- + capabilities: NET_ADMIN + volumes: + - "{{ app_data_path }}/cfg/simulated_hosts:/simulated_hosts:ro" + ports: + - "53:53/tcp" + - "53:53/udp" + state: started + restart_policy: unless-stopped -- cgit 1.2.3-korg