From 07d0ba6903e29184d4c86074fb7943658a4f1672 Mon Sep 17 00:00:00 2001 From: Stanislav Popov Date: Fri, 1 May 2020 22:29:23 +0500 Subject: [PATCH] fix: package module deprecations --- tasks/main.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 8bc8093..c2e48bf 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,22 +1,20 @@ --- - name: Ensure cron and git installed (Debian) - apt: - name: "{{ item }}" + package: + name: + - cron + - git state: present - with_items: - - cron - - git when: ansible_os_family == 'Debian' tags: [ server-scripts, install ] - name: Ensure cron and git installed (RedHat) package: - name: "{{ item }}" + name: + - crontabs + - git state: present - with_items: - - crontabs - - git when: ansible_os_family == 'RedHat' tags: [ server-scripts, install ]