# Perform Cron job  in ansible playbook on ec2-user

**URL:** <https://forum.ansible.com/t/perform-cron-job-in-ansible-playbook-on-ec2-user/24084>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [March 28, 2017, 3:55pm UTC](https://forum.ansible.com/t/perform-cron-job-in-ansible-playbook-on-ec2-user/24084 "2017-03-28T15:55:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Balu\_Kompalli](https://avatars.discourse-cdn.com/v4/letter/b/c6cbf5/32.png) [@Balu\_Kompalli](https://forum.ansible.com/u/Balu_Kompalli)\
**Post date:** [March 28, 2017, 3:55pm UTC](https://forum.ansible.com/t/perform-cron-job-in-ansible-playbook-on-ec2-user/24084/1 "2017-03-28T15:55:20Z")

</div>

Hello Team,

I am working on the cron jobs in Ansible. I want to perform cron jobs operations on AWS ec2 instance. I got success status on ec2 instance in the control machine while i have ran the playbook. But within the instance, when i tries the " **crontab -l"** command, it gave

**“No cron jobs available for ec2-user”**  
I want the git modifications in the ec2 iinstance. So please help me out.  
This is my playbook part. Please help me to activate my task on ec2 instance.

Thank you.

**- name: cron jobs**  
**cron:**  
**name: cloning from git**  
**minute: 4**  
**job: sudo git clone [https://github.com/AAA/openwhisk.git](https://github.com/AAA/openwhisk.git)**  
**user: ec2-user**
