From 4792d83e13d7622832e3885ffa2d3d0e543d42b6 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 18 Aug 2020 19:02:11 +0100 Subject: [PATCH] cron module defaults to current user, not root (#71337) --- lib/ansible/modules/cron.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/cron.py b/lib/ansible/modules/cron.py index dcdcf4cbf53..7239cda261a 100644 --- a/lib/ansible/modules/cron.py +++ b/lib/ansible/modules/cron.py @@ -41,7 +41,7 @@ options: user: description: - The specific user whose crontab should be modified. - - When unset, this parameter defaults to using C(root). + - When unset, this parameter defaults to the current user. type: str job: description: @@ -222,7 +222,7 @@ class CronTab(object): """ CronTab object to write time based crontab file - user - the user of the crontab (defaults to root) + user - the user of the crontab (defaults to current user) cron_file - a cron file under /etc/cron.d, or an absolute path """