Skip to content

Commit

Permalink
fix: package module deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed May 1, 2020
1 parent 7785971 commit 07d0ba6
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -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 ]

Expand Down

0 comments on commit 07d0ba6

Please sign in to comment.