diff --git a/installer/inventory b/installer/inventory index f2bf220f70..58c38ca250 100644 --- a/installer/inventory +++ b/installer/inventory @@ -80,3 +80,5 @@ pg_port=5432 # Container networking configuration # Set the awx_task and awx_web containers' search domain(s) #awx_container_search_domains=example.com,ansible.com +# Alternate DNS servers +#awx_alternate_dns_servers="10.1.2.3,10.2.3.4" diff --git a/installer/local_docker/tasks/main.yml b/installer/local_docker/tasks/main.yml index dac60833bc..35c4cb4b14 100644 --- a/installer/local_docker/tasks/main.yml +++ b/installer/local_docker/tasks/main.yml @@ -168,6 +168,7 @@ links: "{{ awx_web_container_links|list }}" hostname: awxweb dns_search_domains: "{{ awx_container_search_domains.split(',') if awx_container_search_domains is defined else omit }}" + dns_servers: "{{ awx_alternate_dns_servers.split(',') if awx_alternate_dns_servers is defined else omit }}" env: http_proxy: "{{ http_proxy | default('') }}" https_proxy: "{{ https_proxy | default('') }}" @@ -198,6 +199,7 @@ user: root hostname: awx dns_search_domains: "{{ awx_container_search_domains.split(',') if awx_container_search_domains is defined else omit }}" + dns_servers: "{{ awx_alternate_dns_servers.split(',') if awx_alternate_dns_servers is defined else omit }}" env: http_proxy: "{{ http_proxy | default('') }}" https_proxy: "{{ https_proxy | default('') }}"