CORD-391 - cleaned up ansible to pass cleanly through ansible-lint
Change-Id: I90284704255edc19abbdb239852c520a4bf48df4
diff --git a/ansible/roles/docker/tasks/centos.yml b/ansible/roles/docker/tasks/centos.yml
index a8910d4..cdfd0b4 100644
--- a/ansible/roles/docker/tasks/centos.yml
+++ b/ansible/roles/docker/tasks/centos.yml
@@ -2,7 +2,7 @@
copy:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
- with_items: centos_files
+ with_items: "{{ centos_files }}"
tags: [docker]
- name: CentOS package is installed
@@ -13,6 +13,7 @@
- name: CentOS Daemon is reloaded
command: systemctl daemon-reload
+ changed_when: true
tags: [docker]
- name: CentOS service is running
diff --git a/ansible/roles/docker/tasks/debian.yml b/ansible/roles/docker/tasks/debian.yml
index aa10934..55178b1 100644
--- a/ansible/roles/docker/tasks/debian.yml
+++ b/ansible/roles/docker/tasks/debian.yml
@@ -7,8 +7,8 @@
- name: Debian Docker is present
apt:
- name: docker-engine
- state: latest
+ name: docker-engine=1.12*
+ state: present
force: yes
tags: [docker]
@@ -58,4 +58,4 @@
volumes:
- /var/run/docker.sock:/var/run/docker.sock
when: not skip_ui is defined
- tags: [docker]
\ No newline at end of file
+ tags: [docker]