Ansible Role linuxfabrik.lfops.at¶
This role installs at, a daemon that allows commands to be run at a specified time.
Available since LFOps 2.0.0.
How the Role Behaves¶
- On the Red Hat family,
/etc/at.denygets mode0600, owned byroot:root, as the CIS Benchmarks require. On Debian and Ubuntu it keeps theroot:daemon0640the package ships, sinceatreads it as groupdaemonthere.
Tags¶
at
- Installs and configures at/atd.
- Restricts the mode of
/etc/at.deny. - Triggers: none.
at:state
- Manages the state of
atd.service(enable/disable at boot, plus start/stop/restart/reload). - Triggers: none.
Optional Role Variables¶
at__service_enabled
- Whether
atd.serviceis enabled at boot, analogous tosystemctl enable / disable. - Type: Bool.
- Default:
true
at__service_state
- State of
atd.service, analogous tosystemctl start / stop / restart / reload. - Type: String. One of
reloaded,restarted,started,stopped. - Default:
'started'ifat__service_enabledistrue, otherwise'stopped'.
Example:
# optional
at__service_enabled: true
at__service_state: 'started'