at

Collection: posix

Full Name: parallax.posix.at

Aliases: ansible.posix.at, at

Synopsis

Schedule a one-off command with the at daemon

Parameters

NameTypeRequiredDefaultDescription
commandstringThe command to schedule via at
countstringyesThe count of units in the future to execute the command or the job number to remove (state=absent)
unitsstringyesThe time unit for scheduling Choices: minutes, hours, days, weeks
statestringpresentWhether to add (present) or remove (absent) the at job
uniqueboolfalseIf true, only schedule the job if no other matching jobs exist
script_filestringPath to a script file to schedule instead of a command

Example

- name: Schedule a reboot in one hour
  at:
    command: /sbin/shutdown -r now
    count: 1
    units: hours
    state: present