Cronjobs using ansible

32 views
Skip to first unread message

Gurudatta Nadig

unread,
Apr 7, 2021, 7:17:06 AM4/7/21
to ansible...@googlegroups.com
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

Jorge Rúa

unread,
Apr 7, 2021, 7:34:25 AM4/7/21
to ansible...@googlegroups.com
Have a look to your /etc/cron.{allow,deny} 


--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAM7YPLvg2B-2iuqHomRRzsyPh4wfw9up1zf%2B19WwQYKDW%2BZh1g%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages