Skip to content

Add a cron module #504

@rgarrigue

Description

@rgarrigue

Hi

After searching quickly in the issues, I see no mention of checking cron job, hence this feature request.

Here's my use case : I'm testing Ansible Roles via Molecule and Testinfra. Which include ansible tasks like

---
- name: Add cron job for certbot renewal (if configured).
  cron:
    name: Certbot automatic renewal.
    job: "{{ certbot_script }} renew {{ certbot_auto_renew_options }}"
    minute: "{{ certbot_auto_renew_minute }}"
    hour: "{{ certbot_auto_renew_hour }}"
    user: "{{ certbot_auto_renew_user }}"

So I'ld like to check there's a job at the given hh:mm:ss for the given user and command.

Thanks again for this wonderful testinfra tool & best regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThis issue/PR relates to a feature request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions