From 2d545d08dcb4ec18a4c4186d8b48380d3308e4b2 Mon Sep 17 00:00:00 2001 From: Chris Coley <chris@codingallnight.com> Date: Sat, 11 May 2019 02:36:21 -0700 Subject: [PATCH] Pass the full list of packages to the 'apt' and 'dnf' modules Looping over a list with the 'apt' and 'dnf' modules is deprecated. --- tasks/install-postfix.debian.yml | 3 +-- tasks/install-postfix.fedora.yml | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/tasks/install-postfix.debian.yml b/tasks/install-postfix.debian.yml index 582b8b7..5e62165 100644 --- a/tasks/install-postfix.debian.yml +++ b/tasks/install-postfix.debian.yml @@ -10,9 +10,8 @@ - name: Install Postfix and related packages apt: - name: '{{ item }}' + name: '{{["postfix", "make"] + postfix__recommended_packages }}' state: present cache_valid_time: 3600 - with_items: '{{["postfix", "make"] + postfix__recommended_packages }}' ... # vi: set ts=2 sts=2 sw=2 et ft=yaml: diff --git a/tasks/install-postfix.fedora.yml b/tasks/install-postfix.fedora.yml index 5a4b301..9398028 100644 --- a/tasks/install-postfix.fedora.yml +++ b/tasks/install-postfix.fedora.yml @@ -1,8 +1,7 @@ --- - name: Install Postfix and related packages dnf: - name: '{{ item }}' + name: '{{["postfix", "make"] + postfix__recommended_packages }}' state: present - with_items: '{{["postfix", "make"] + postfix__recommended_packages }}' ... -# vi: set ts=2 sts=2 sw=2 et ft=yaml: +# vi: set ts=2 sw=2 et ft=yaml: -- GitLab