mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 14:20:22 -07:00
Normalize yaml example (#3425)
This commit is contained in:
parent
07d96b62b5
commit
df6200accc
1 changed files with 12 additions and 3 deletions
|
@ -64,13 +64,22 @@ author: "Richard Isaacson (@risaacson)"
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
# Schedule a command to execute in 20 minutes as root.
|
# Schedule a command to execute in 20 minutes as root.
|
||||||
- at: command="ls -d / > /dev/null" count=20 units="minutes"
|
- at:
|
||||||
|
command: "ls -d / > /dev/null"
|
||||||
|
count: 20
|
||||||
|
units: minutes
|
||||||
|
|
||||||
# Match a command to an existing job and delete the job.
|
# Match a command to an existing job and delete the job.
|
||||||
- at: command="ls -d / > /dev/null" state="absent"
|
- at:
|
||||||
|
command: "ls -d / > /dev/null"
|
||||||
|
state: absent
|
||||||
|
|
||||||
# Schedule a command to execute in 20 minutes making sure it is unique in the queue.
|
# 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"
|
- at:
|
||||||
|
command: "ls -d / > /dev/null"
|
||||||
|
unique: true
|
||||||
|
count: 20
|
||||||
|
units: minutes
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue