summaryrefslogtreecommitdiffstats
path: root/ansible/roles/dns/handlers/main.yml
blob: 844a2401c0cacefae47335548f273bf10c6dd756 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
- name: Run dns server container
  docker_container:
    name: dns-server
    network_mode: host
    image: "{{ dns_server_image }}"
    command: -H /simulated_hosts --log-facility=- --dns-loop-detect
    capabilities: NET_ADMIN
    volumes:
      - "{{ app_data_path }}/cfg/simulated_hosts:/simulated_hosts:ro"
    state: started
    restart_policy: unless-stopped
    recreate: true
    container_default_behavior: compatibility