From ac5bd6a65b63c843eac5116a384250613adf8cc9 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 4 Nov 2019 22:05:44 +0100 Subject: [PATCH] fix loop syntax --- tasks/packages.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tasks/packages.yml b/tasks/packages.yml index ac97f43..7ce307a 100644 --- a/tasks/packages.yml +++ b/tasks/packages.yml @@ -4,14 +4,12 @@ package: name: "{{ item }}" state: absent - loop: - - "{{ yum_packages_uninstall | default([]) }}" + loop: "{{ yum_packages_uninstall | default([]) }}" - name: Install common packages package: name: "{{ item }}" state: present - loop: - - "{{ yum_packages_install | default([]) }} + {{ yum_packages_extra_install | default([]) }}" + loop: "{{ yum_packages_install | default([]) }} + {{ yum_packages_extra_install | default([]) }}" become: True become_user: root