cronvar – Manage variables in crontabs¶
Synopsis¶
Use this module to manage crontab variables.
This module allows you to create, update, or delete cron variable definitions.
Requirements¶
The below requirements are needed on the host that executes this module.
cron
Parameters¶
Examples¶
- name: Ensure entry like "EMAIL=doug@ansibmod.con.com" exists
cronvar:
name: EMAIL
value: doug@ansibmod.con.com
- name: Ensure a variable does not exist. This may remove any variable named "LEGACY"
cronvar:
name: LEGACY
state: absent
- name: Add a variable to a file under /etc/cron.d
cronvar:
name: LOGFILE
value: /var/log/yum-autoupdate.log
user: root
cron_file: ansible_yum-autoupdate
Status¶
This module is not guaranteed to have a backwards compatible interface. [preview]
This module is maintained by the Ansible Community. [community]