New in version 1.5.
| parameter | required | default | choices | comments |
|---|---|---|---|---|
| command | no | A command to be executed in the future. | ||
| count | yes | The count of units in the future to execute the command or script file. | ||
| script_file | no | An existing script file to be executed in the future. | ||
| state | no | present |
| The state dictates if the command or script file should be evaluated as present(added) or absent(deleted). |
| unique | no | If a matching job is present a new job will not be added. | ||
| units | yes |
| The type of units in the future to execute the command or script file. |
# Schedule a command to execute in 20 minutes as root.
- at:
command: "ls -d / > /dev/null"
count: 20
units: minutes
# Match a command to an existing job and delete the job.
- at:
command: "ls -d / > /dev/null"
state: absent
# Schedule a command to execute in 20 minutes making sure it is unique in the queue.
- at:
command: "ls -d / > /dev/null"
unique: true
count: 20
units: minutes
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
For more information about Red Hat’s this support of this module, please refer to this knowledge base article<https://access.redhat.com/articles/rhel-top-support-policies>
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Testing Ansible and Developing Modules.
© 2012–2017 Michael DeHaan
© 2017 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/at_module.html