Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
5c382487
Commit
5c382487
authored
Feb 09, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crontab doc formatting
parent
550a1b5f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
+10
-11
bin/ansible-doc
+3
-1
library/cron
+7
-10
No files found.
bin/ansible-doc
View file @
5c382487
...
...
@@ -208,7 +208,9 @@ def main():
else
:
print_man
(
doc
)
else
:
sys
.
stderr
.
write
(
"ERROR: module
%
s missing documentation
\n
"
%
module
)
# this typically means we couldn't even parse the docstring, not just that the YAML is busted,
# probably a quoting issue.
sys
.
stderr
.
write
(
"ERROR: module
%
s missing documentation (or could not parse documentation)
\n
"
%
module
)
if
__name__
==
'__main__'
:
main
()
library/cron
View file @
5c382487
...
...
@@ -25,7 +25,7 @@
# describing the job so that it can be found later, which is required to be
# present in order for this plugin to find/modify the job.
DOCUMENTATION
=
'''
DOCUMENTATION
=
"""
---
module: cron
short_description: Manage crontab entries.
...
...
@@ -58,17 +58,14 @@ options:
aliases: []
state:
description:
- Whether to ensure the job is present or absent.
- If the cron_file setting is specified and the state is 'absent', if after the deletion
of the job the file is empty, the file is deleted
- Whether to ensure the job is present or absent.
required: false
default: present
aliases: []
cron_file:
descrition:
- The file with appropriate job is created in /etc/cron.d directory. Also, you can store
multiple jobs in one file.
required: fasle
description:
- If specified, uses this file in cron.d versus in the main crontab
required: false
default:
aliases: []
backup:
...
...
@@ -124,12 +121,12 @@ examples:
description: 'Ensure an old job is no longer present. Removes any job that is preceded by "#Ansible: an old job" in the crontab'
- code: 'cron: name="a job for reboot" reboot=True job="/some/job.sh"'
description: 'Creates an entry like "@reboot /some/job.sh"'
- code: 'cron: name="yum autoupdate" weekday="2" minute=0 hour=12 user="root" job="YUMINTERACTIVE=0 /usr/sbin/yum-autoupdate" cron_file=ansible_yum-autoupdate
- code: 'cron: name="yum autoupdate" weekday="2" minute=0 hour=12 user="root" job="YUMINTERACTIVE=0 /usr/sbin/yum-autoupdate" cron_file=ansible_yum-autoupdate
'
requirements: cron
author: Dane Summers
updates: Mike Grozak
'''
"""
import
re
import
tempfile
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment