CORD-391 - cleaned up ansible to pass cleanly through ansible-lint
Change-Id: I90284704255edc19abbdb239852c520a4bf48df4
diff --git a/ansible/roles/common/tasks/main.yml b/ansible/roles/common/tasks/main.yml
index 0ad01a7..b7d5eb2 100644
--- a/ansible/roles/common/tasks/main.yml
+++ b/ansible/roles/common/tasks/main.yml
@@ -9,13 +9,13 @@
dest: /etc/hosts
regexp: "^{{ item.host_ip }}"
line: "{{ item.host_ip }} {{ item.host_name }}"
- with_items: hosts
+ with_items: "{{ hosts }}"
tags: [common]
- name: Latest apt packages
apt:
name: "{{ item }}"
- with_items: use_latest_for
+ with_items: "{{ use_latest_for }}"
tags: [common]
- name: Services are not running
@@ -23,7 +23,7 @@
name: "{{ item }}"
state: stopped
ignore_errors: yes
- with_items: obsolete_services
+ with_items: "{{ obsolete_services }}"
tags: [common]
- name: Ensure SSH Directory