17 lines
349 B
YAML
17 lines
349 B
YAML
|
---
|
||
|
- hosts: all
|
||
|
tasks:
|
||
|
- name: Update Apt Cache and install cron
|
||
|
apt:
|
||
|
name: cron
|
||
|
update_cache: true
|
||
|
become: true
|
||
|
when: ansible_os_family == "Debian"
|
||
|
|
||
|
- name: Install cron as requisite
|
||
|
package:
|
||
|
name: cronie
|
||
|
state: present
|
||
|
become: true
|
||
|
when: ansible_os_family == "RedHat"
|