Have a look to your /etc/cron.{allow,deny}

On Wed, Apr 7, 2021, 12:16 Gurudatta Nadig <[email protected]>
wrote:

> Good day team,
>
> We are planning to run the Cron using anisble, while running we are
> getting the following message  (You (tomcat) are not allowed to use this
> program (crontab) Any pointer.
>
> ---
> -
>   hosts: test_servers
>   become: yes
>   become_user: tomcat
>   tags:
>    - cronjobs
>   tasks:
>     -
>       cron:
>         hour: "23"
>         job: /bin/logs_rotate.sh
>         minute: "55"
>         name: "Run the Logrotate script"
>       name: "Configure Logrotate script as Cron job"
>
> Regards
> Gurudatta N.R
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAM7YPLvg2B-2iuqHomRRzsyPh4wfw9up1zf%2B19WwQYKDW%2BZh1g%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAM7YPLvg2B-2iuqHomRRzsyPh4wfw9up1zf%2B19WwQYKDW%2BZh1g%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFtje5Nu4PHLt48YduQGi2tA27vX5ehx7XFrV%3DFtHBdaOoAHtg%40mail.gmail.com.

Reply via email to