dehydrated_cron

Ansible Role: deyhdrated_cron

Molecule

Install cron calls to dehydrated and only send e-mails in case of changes.

Usage

Configuration

Please note that all variables have default values and usually do not need to be changed.

  • dehydrated_cron_script_dir: Path to the cron helper scripts
  • dehydrated_config_dir: Path to the Dehydrated configuration
  • dehydrated_certs_dir: Path to the Dehydrated certificates
  • dehydrated_binary: Path to the Dehydrated binary
  • dehydrated_check_span: Time (in seconds) before expiration for a certificate to be reported as stale.
  • dehydrated_cron_renew: Crontab pattern for the renew call
  • dehydrated_cron_check: Crontab pattern for the check call

The configuration variables are compatible with 24367dfa/ansible-role-dehydrated.

Include

as role:

vars:
  - dehydrated_…: …

roles:
  - role: penguineer.dehydrated_cron

as task:

tasks:
  - name: Setup cron for dehydrated
    include_role:
      name: penguineer.dehydrated_cron
    vars:
      dehydrated_…: …

Cleanup

If you had dehydrated running before, make sure to disable any pre-existing crontab entries.

Maintainers

Contributing

PRs are welcome!

If possible, please stick to the following guidelines:

  • Keep PRs reasonably small and their scope limited to a feature or module within the code.
  • If a large change is planned, it is best to open a feature request issue first, then link subsequent PRs to this issue, so that the PRs move the code towards the intended feature.

License

MIT © 2022 Stefan Haun and contributors

About

Install cron calls to dehydrated and only send e-mails in case of changes.

Install
ansible-galaxy install penguineer/ansible-role-dehydrated_cron
GitHub repository
License
mit
Downloads
2329
Owner
Humans, machines and automation.