Adding versions for infra related docker images
1. latest tag replaced by version number for vnc server
2. added specific version for own_nginx image
3. version control improved in ansible roles accordingly
Solves OOM-1766
Issue-ID: OOM-1767
Change-Id: I147c56b46a419188099d8ed3e78fed68810893e2
Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
diff --git a/ansible/roles/dns/tasks/main.yml b/ansible/roles/dns/tasks/main.yml
index 2bc0564..3eba9fd 100644
--- a/ansible/roles/dns/tasks/main.yml
+++ b/ansible/roles/dns/tasks/main.yml
@@ -8,21 +8,21 @@
template:
src: simulated_hosts.j2
dest: "{{ app_data_path }}/cfg/simulated_hosts"
- notify: Restart dnsmasq container
+ notify: Restart dns server container
-- name: Load dnsmasq container
+- name: Load dns server container
docker_image:
- name: andyshinn/dnsmasq:2.76
- load_path: "{{ app_data_path }}/offline_data/docker_images_infra/andyshinn_dnsmasq_2.76.tar"
+ name: "{{ dns_server_image }}"
+ load_path: "{{ infra_images_path }}/{{ dns_server_image_tar }}"
state: present
timeout: 120
- notify: Restart dnsmasq container
+ notify: Restart dns server container
-- name: Start dnsmasq container
+- name: Start dns server container
docker_container:
- name: dnsmasq
+ name: dns-server
network_mode: host
- image: andyshinn/dnsmasq:2.76
+ image: "{{ dns_server_image }}"
command: -H /simulated_hosts --log-facility=-
capabilities: NET_ADMIN
dns_servers: