Member-only story

Schedule a Cron Job task in Linux — Ansible module cron

How to automate the schedule of command execution to a specific minute, hour, day, month, weekday, and user in Linux using cron service.

Luca Berton
6 min readDec 8, 2021

How to schedule a cron job task in Linux with Ansible?
I’m going to show you a live demo and some simple Ansible code.
I’m Luca Berton and welcome to today’s episode of Ansible Pilot.

Ansible schedule a Cron Job task in Linux

  • ansible.builtin.cron
  • Manage cron.d and crontab entries

Today we’re talking about Ansible module cron.

The full name is ansible.builtin.cron, which means that is part of the collection of modules “builtin” with ansible and shipped with it.

It’s a module pretty stable and out for years and it works in a different variety…

--

--

Luca Berton
Luca Berton

Written by Luca Berton

I help creative Automation DevOps, Cloud Engineer, System Administrator, and IT Professional to succeed with Ansible Technology to automate more things everyday

No responses yet