# Ansible-pull issue.

**URL:** <https://forum.ansible.com/t/ansible-pull-issue/33837>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [September 17, 2020, 9:25am UTC](https://forum.ansible.com/t/ansible-pull-issue/33837 "2020-09-17T09:25:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nahum\_Eliash](https://avatars.discourse-cdn.com/v4/letter/n/51bf81/32.png) [@Nahum\_Eliash](https://forum.ansible.com/u/Nahum_Eliash)\
**Post date:** [September 17, 2020, 9:25am UTC](https://forum.ansible.com/t/ansible-pull-issue/33837/1 "2020-09-17T09:25:30Z")

</div>

hello,

i have a lab environments with a couple of Linux Ubuntu 18.04, and i’m trying to figure out why ansible-pull command is not working properly.

i was viewing a great tutorial on how to build and execute the lab, and how to setup the ansible-pull playbook.  
when i trigger the ansible-pull command using my git-hub link, it works great, but it’s not working when it is configured via the crontab (to check every 10 minutes the configuration of the machine).  
for testing i created a playbook that installs: htop, vim, tilix.  
only when i trigger the playbook using the command line i see that everything works.

the crontab is installed and here is a sample of the logs that proof’s it’s running every 10 minutes.

Sep 17 03:20:01 ansible\_management CRON[5553]: (ansible) CMD (/home/osboxes/ansible/ansible\_pull\_lab -o -U [https://github.com/Nahum48/ansible\_pull\_lab.git](https://github.com/Nahum48/ansible_pull_lab.git) \> /dev/null)  
Sep 17 03:20:01 ansible\_management CRON[5552]: (CRON) info (No MTA installed, discarding output)  
Sep 17 03:30:01 ansible\_management CRON[6094]: (ansible) CMD (/home/osboxes/ansible/ansible\_pull\_lab -o -U [https://github.com/Nahum48/ansible\_pull\_lab.git](https://github.com/Nahum48/ansible_pull_lab.git) \> /dev/null)  
Sep 17 03:30:01 ansible\_management CRON[6093]: (CRON) info (No MTA installed, discarding output)  
Sep 17 03:40:01 ansible\_management CRON[6547]: (ansible) CMD (/home/osboxes/ansible/ansible\_pull\_lab -o -U [https://github.com/Nahum48/ansible\_pull\_lab.git](https://github.com/Nahum48/ansible_pull_lab.git) \> /dev/null)  
Sep 17 03:40:01 ansible\_management CRON[6546]: (CRON) info (No MTA installed, discarding output)  
Sep 17 03:50:01 ansible\_management CRON[6713]: (ansible) CMD (/home/osboxes/ansible/ansible\_pull\_lab -o -U [https://github.com/Nahum48/ansible\_pull\_lab.git](https://github.com/Nahum48/ansible_pull_lab.git) \> /dev/null)  
Sep 17 03:50:01 ansible\_management CRON[6712]: (CRON) info (No MTA installed, discarding output)  
Sep 17 04:00:01 ansible\_management CRON[6818]: (ansible) CMD (/home/osboxes/ansible/ansible\_pull\_lab -o -U [https://github.com/Nahum48/ansible\_pull\_lab.git](https://github.com/Nahum48/ansible_pull_lab.git) \> /dev/null)  
Sep 17 04:00:01 ansible\_management CRON[6817]: (CRON) info (No MTA installed, discarding output)  
Sep 17 04:10:01 ansible\_management CRON[6941]: (ansible) CMD (/home/osboxes/ansible/ansible\_pull\_lab -o -U [https://github.com/Nahum48/ansible\_pull\_lab.git](https://github.com/Nahum48/ansible_pull_lab.git) \> /dev/null)  
Sep 17 04:10:01 ansible\_management CRON[6940]: (CRON) info (No MTA installed, discarding output)  
Sep 17 04:17:01 ansible\_management CRON[7953]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)  
Sep 17 04:20:01 ansible\_management CRON[8247]: (ansible) CMD (/home/osboxes/ansible/ansible\_pull\_lab -o -U [https://github.com/Nahum48/ansible\_pull\_lab.git](https://github.com/Nahum48/ansible_pull_lab.git) \> /dev/null)  
Sep 17 04:20:01 ansible\_management CRON[8246]: (CRON) info (No MTA installed, discarding output)  
Sep 17 04:30:01 ansible\_management CRON[8692]: (ansible) CMD (/home/osboxes/ansible/ansible\_pull\_lab -o -U [https://github.com/Nahum48/ansible\_pull\_lab.git](https://github.com/Nahum48/ansible_pull_lab.git) \> /dev/null)  
Sep 17 04:30:01 ansible\_management CRON[8691]: (CRON) info (No MTA installed, discarding output)  
Sep 17 04:40:02 ansible\_management CRON[8809]: (ansible) CMD (/home/osboxes/ansible/ansible\_pull\_lab -o -U [https://github.com/Nahum48/ansible\_pull\_lab.git](https://github.com/Nahum48/ansible_pull_lab.git) \> /dev/null)  
Sep 17 04:40:02 ansible\_management CRON[8808]: (CRON) info (No MTA installed, discarding output)  
Sep 17 04:50:02 ansible\_management CRON[9007]: (ansible) CMD (/home/osboxes/ansible/ansible\_pull\_lab -o -U [https://github.com/Nahum48/ansible\_pull\_lab.git](https://github.com/Nahum48/ansible_pull_lab.git) \> /dev/null)  
Sep 17 04:50:02 ansible\_management CRON[9006]: (CRON) info (No MTA installed, discarding output)  
Sep 17 05:00:01 ansible\_management CRON[10199]: (ansible) CMD (/home/osboxes/ansible/ansible\_pull\_lab -o -U [https://github.com/Nahum48/ansible\_pull\_lab.git](https://github.com/Nahum48/ansible_pull_lab.git) \> /dev/null)

S

this crontab is configured to run with a user called ansible - as shown in the logs.

what can br the problem?
