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 > /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 > /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 > /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 > /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 > /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 > /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 > /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 > /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 > /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 > /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 > /dev/null)
S

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

what can br the problem?

-- 
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/c47c2bb6-d13f-4c32-8c28-127c5f69eaa7n%40googlegroups.com.

Reply via email to