From 1f8b8b0256af69fc0dabd4a4f8b20d31742df3ed Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Thu, 27 Dec 2018 14:07:00 +0100 Subject: [PATCH] Fix deprecation warning (Ansible 2.7) Signed-off-by: Knut Ahlers --- meta/main.yml | 2 +- tasks/main.yml | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/meta/main.yml b/meta/main.yml index aedcb96..f3858a5 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -5,7 +5,7 @@ galaxy_info: Install and configure duplicity and duplicity-backup on host license: Apache - min_ansible_version: 2.3 + min_ansible_version: 2.7 platforms: - name: Ubuntu diff --git a/tasks/main.yml b/tasks/main.yml index b06b58f..a6f49fe 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -2,13 +2,12 @@ - name: Install required apt packages apt: - name: "{{ item }}" + name: + - duplicity + - gnupg + - lftp + - python-pip update_cache: yes - with_items: - - duplicity - - gnupg - - lftp - - python-pip - name: Install required pip packages pip: