Fixing ansible syntax issue
Change-Id: I0a97e28b6360749131263d2b0e7fed8e03f5ee48
diff --git a/ansible/roles/common/tasks/main.yml b/ansible/roles/common/tasks/main.yml
index 070972a..aa775c1 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 known_hosts file is absent