From f60f80addcb61b8aa8580c9647e221dd8632ef8d Mon Sep 17 00:00:00 2001 From: karthikbeam <48195297+karthikbeam@users.noreply.github.com> Date: Thu, 15 Aug 2019 11:12:09 +0800 Subject: [PATCH] Fix deprecation warnings when using yum/apt with loops --- tasks/main.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index c6e0c26..4923ddf 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -3,13 +3,11 @@ include_vars: "{{ ansible_os_family }}.yml" - name: Install required packages for munin (RedHat). - yum: "name={{ item }} state=present" - with_items: "{{ munin_packages }}" + yum: "name={{ munin_packages }} state=present" when: ansible_os_family == 'RedHat' - name: Install required packages for munin (Debian). - apt: "name={{ item }} state=present" - with_items: "{{ munin_packages }}" + apt: "name={{ munin_packages }} state=present" when: ansible_os_family == 'Debian' - name: Copy munin configurations.