# Cron module

**URL:** <https://forum.ansible.com/t/cron-module/29005>\
**Category:** Ansible Project\
**Created:** [November 12, 2018, 12:56pm UTC](https://forum.ansible.com/t/cron-module/29005 "2018-11-12T12:56:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![f.second](https://avatars.discourse-cdn.com/v4/letter/f/df705f/32.png) [@f.second](https://forum.ansible.com/u/f.second)\
**Post date:** [November 12, 2018, 12:56pm UTC](https://forum.ansible.com/t/cron-module/29005/1 "2018-11-12T12:56:52Z")

</div>

Hello,

It’s not possible to install cron module for manage crontab.

[https://docs.ansible.com/ansible/2.7/modules/cron\_module.html?highlight=cron#requirements](https://docs.ansible.com/ansible/2.7/modules/cron_module.html?highlight=cron#requirements)

pip install cron

I’ve this issue :

playbook pip install cron -vvv  
Created temporary directory: /tmp/pip-ephem-wheel-cache-InQUZ3  
Created temporary directory: /tmp/pip-req-tracker-0n5EY5  
Created requirements tracker ‘/tmp/pip-req-tracker-0n5EY5’  
Created temporary directory: /tmp/pip-install-osV5Xu  
Collecting cron  
1 location(s) to search for versions of cron:

- [https://pypi.org/simple/cron/](https://pypi.org/simple/cron/)  
Getting page [https://pypi.org/simple/cron/](https://pypi.org/simple/cron/)  
Looking up “[https://pypi.org/simple/cron/](https://pypi.org/simple/cron/)” in the cache  
Request header has “max\_age” as 0, cache bypassed  
Starting new HTTPS connection (1): [pypi.org:443](http://pypi.org:443)  
[https://pypi.org:443](https://pypi.org:443) “GET /simple/cron/ HTTP/1.1” 304 0  
Analyzing links from page [https://pypi.org/simple/cron/](https://pypi.org/simple/cron/)  
Could not find a version that satisfies the requirement cron (from versions: )  
Cleaning up…  
Removed build tracker ‘/tmp/pip-req-tracker-0n5EY5’  
No matching distribution found for cron  
Exception information:  
Traceback (most recent call last):  
File “/usr/local/lib/python2.7/dist-packages/pip/\_internal/cli/base\_command.py”, line 143, in main  
status = self.run(options, args)  
File “/usr/local/lib/python2.7/dist-packages/pip/\_internal/commands/install.py”, line 318, in run  
resolver.resolve(requirement\_set)  
File “/usr/local/lib/python2.7/dist-packages/pip/\_internal/resolve.py”, line 102, in resolve  
self.\_resolve\_one(requirement\_set, req)  
File “/usr/local/lib/python2.7/dist-packages/pip/\_internal/resolve.py”, line 256, in \_resolve\_one  
abstract\_dist = self.\_get\_abstract\_dist\_for(req\_to\_install)  
File “/usr/local/lib/python2.7/dist-packages/pip/\_internal/resolve.py”, line 209, in \_get\_abstract\_dist\_for  
self.require\_hashes  
File “/usr/local/lib/python2.7/dist-packages/pip/\_internal/operations/prepare.py”, line 218, in prepare\_linked\_requirement  
req.populate\_link(finder, upgrade\_allowed, require\_hashes)  
File “/usr/local/lib/python2.7/dist-packages/pip/\_internal/req/req\_install.py”, line 164, in populate\_link  
self.link = finder.find\_requirement(self, upgrade)  
File “/usr/local/lib/python2.7/dist-packages/pip/\_internal/index.py”, line 621, in find\_requirement  
‘No matching distribution found for %s’ % req  
DistributionNotFound: No matching distribution found for cron

On this URL [https://pypi.org/simple/cron/](https://pypi.org/simple/cron/), i can’t find any file for the cron module.

Can you help me ?

Fabien

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [November 12, 2018, 12:59pm UTC](https://forum.ansible.com/t/cron-module/29005/2 "2018-11-12T12:59:02Z")

</div>

Hi,

> It's not possible to install cron module for manage crontab.  
> [https://docs.ansible.com/ansible/2.7/modules/cron\_module.html?highlight=cron#requirements](https://docs.ansible.com/ansible/2.7/modules/cron_module.html?highlight=cron#requirements)

it is not a Python requirement. You usually don't need to install  
anything. I've been using the cron module for years without having ever  
installed anything for it.

Cheers,  
Felix

install cron

---

<div class="post-metadata">

**Author:** ![f.second](https://avatars.discourse-cdn.com/v4/letter/f/df705f/32.png) [@f.second](https://forum.ansible.com/u/f.second)\
**Post date:** [November 12, 2018, 1:12pm UTC](https://forum.ansible.com/t/cron-module/29005/3 "2018-11-12T13:12:05Z")

</div>

Thanks for your answer.  
It’s confirm that, not need Python module  
My issue was due on space in my playbook. ☹

Best regards.

Fabien
