From: David Galloway Date: Thu, 30 Jun 2016 23:03:23 +0000 (-0400) Subject: Bracket bare variables for Ansible v2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=acffd5888ac3b84b8c37c398ebead772ad962d43;p=ceph-cm-ansible.git Bracket bare variables for Ansible v2 Signed-off-by: David Galloway --- 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