From 4bc9f9062eb44286c2e1d2f6920b4e20f6218210 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Thu, 27 Dec 2018 14:09:53 +0100 Subject: [PATCH] Fix deprecation warning (Ansible 2.7) Signed-off-by: Knut Ahlers --- meta/main.yml | 2 +- tasks/main.yml | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/meta/main.yml b/meta/main.yml index 2580218..832756f 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -13,7 +13,7 @@ galaxy_info: # - Apache # - CC-BY license: Apache - min_ansible_version: 1.3 + min_ansible_version: 2.7 # # Below are all platforms currently available. Just uncomment # the ones that apply to your role. If you don't see your diff --git a/tasks/main.yml b/tasks/main.yml index c5041a5..b6090f1 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -2,12 +2,11 @@ - name: Install required packages for autoupdate apt: - name: '{{ item }}' + name: + - unattended-upgrades + - update-notifier-common + - sendmail cache_valid_time: 86400 - with_items: - - unattended-upgrades - - update-notifier-common - - sendmail - name: Enable automatic update / upgrade copy: