how to make cron module for running ansible playbooks
1,681 views
Skip to first unread message
acharya tejaswi indurthi
unread,
May 1, 2017, 6:11:25 AM5/1/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
Hi,
I am trying to run cron module for running ansible playbook for every one minute.But it is not working.I can see the job but the job is not running.The playbook is wrote is
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project, di...@hellooperator.net
I was able to see the job by typing "crontab -e".But it is not working.Is the job which i gave there is in the right way.
Paul Tötterman
unread,
May 2, 2017, 5:30:54 AM5/2/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project, di...@hellooperator.net
I was able to see the job by typing "crontab -e".But it is not working.Is the job which i gave there is in the right way
Have you tried:
crontab -l -u root
Try changing the user. Which remote_user are you using?
Cheers,
Paul
acharya tejaswi indurthi
unread,
May 3, 2017, 4:45:07 AM5/3/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project, di...@hellooperator.net
yes it is working when i gave the path "/usr/local/bin/ansible /etc/ansible/playbooks/own_role.yml" in cron module.There is an internal issue so it is not worked.but now it is working fine