at
Collection: posix
Full Name: parallax.posix.at
Aliases: ansible.posix.at, at
Synopsis
Schedule a one-off command with the at daemon
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| command | string | The command to schedule via at | ||
| count | string | yes | The count of units in the future to execute the command or the job number to remove (state=absent) | |
| units | string | yes | The time unit for scheduling Choices: minutes, hours, days, weeks | |
| state | string | present | Whether to add (present) or remove (absent) the at job | |
| unique | bool | false | If true, only schedule the job if no other matching jobs exist | |
| script_file | string | Path 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