Cron module

11 views
Skip to first unread message

f.se...@deeplink-medical.com

unread,
Nov 12, 2018, 7:56:52 AM11/12/18
to Ansible Project
Hello,

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

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/
  Getting page https://pypi.org/simple/cron/
  Looking up "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
  https://pypi.org:443 "GET /simple/cron/ HTTP/1.1" 304 0
  Analyzing links from page 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/, i can't find any file for the cron module.

Can you help me ?

Fabien

Felix Fontein

unread,
Nov 12, 2018, 7:59:16 AM11/12/18
to ansible...@googlegroups.com
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

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

f.se...@deeplink-medical.com

unread,
Nov 12, 2018, 8:12:05 AM11/12/18
to Ansible Project
Thanks for your answer.
It's confirm that, not need Python module
My issue was due on space in my playbook.  :(

Best regards.
Fabien
Reply all
Reply to author
Forward
0 new messages