From acffd5888ac3b84b8c37c398ebead772ad962d43 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Thu, 30 Jun 2016 19:03:23 -0400 Subject: [PATCH] Bracket bare variables for Ansible v2 Signed-off-by: David Galloway --- roles/common/tasks/epel.yml | 2 +- roles/testnode/tasks/yum/repos.yml | 4 ++-- roles/vmhost/tasks/libvirt.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/common/tasks/epel.yml b/roles/common/tasks/epel.yml index 6ea1781d..0cbded29 100644 --- a/roles/common/tasks/epel.yml +++ b/roles/common/tasks/epel.yml @@ -14,7 +14,7 @@ group: root mode: 0644 register: epel_repo - with_dict: epel_repos + with_dict: "{{ epel_repos }}" - name: Configure local epel mirrorlists template: diff --git a/roles/testnode/tasks/yum/repos.yml b/roles/testnode/tasks/yum/repos.yml index ac8d0531..d9ac73b5 100644 --- a/roles/testnode/tasks/yum/repos.yml +++ b/roles/testnode/tasks/yum/repos.yml @@ -7,7 +7,7 @@ group: root mode: 0644 register: repo_file - with_dict: common_yum_repos + with_dict: "{{ common_yum_repos }}" when: common_yum_repos.keys() | length > 0 - name: Configure version specific repos in /etc/yum.repos.d/ @@ -18,7 +18,7 @@ group: root mode: 0644 register: version_repo_file - with_dict: yum_repos + with_dict: "{{ yum_repos }}" when: yum_repos.keys() | length > 0 - include: gpg_keys.yml diff --git a/roles/vmhost/tasks/libvirt.yml b/roles/vmhost/tasks/libvirt.yml index 451ab9a9..98e450eb 100644 --- a/roles/vmhost/tasks/libvirt.yml +++ b/roles/vmhost/tasks/libvirt.yml @@ -80,7 +80,7 @@ virsh pool-autostart {{ item | quote }}; virsh pool-build {{ item | quote }}; virsh pool-start {{ item | quote }} - with_items: pools_to_define + with_items: "{{ pools_to_define }}" when: pools_to_define|length > 0 # Front network -- 2.47.3