Skip to content

Commit

Permalink
docs: add module documentation for timesync_provider
Browse files Browse the repository at this point in the history
Automation Hub will error and not display module docs for
any module if any of the docs are missing or incorrect.
Since timesync_provider is a shell script, it must have
a separate module doc file.

Signed-off-by: Rich Megginson <[email protected]>
  • Loading branch information
richm committed Jul 29, 2024
1 parent 994d7a7 commit 87e99e0
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions .sanity-ansible-ignore-2.10.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
plugins/modules/timesync_provider.sh shebang
plugins/modules/timesync_provider.yml validate-modules:missing-gplv3-license
1 change: 1 addition & 0 deletions .sanity-ansible-ignore-2.11.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
plugins/modules/timesync_provider.sh shebang
plugins/modules/timesync_provider.yml validate-modules:missing-gplv3-license
1 change: 1 addition & 0 deletions .sanity-ansible-ignore-2.12.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
plugins/modules/timesync_provider.sh shebang
plugins/modules/timesync_provider.yml validate-modules:missing-gplv3-license
1 change: 1 addition & 0 deletions .sanity-ansible-ignore-2.13.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
plugins/modules/timesync_provider.sh shebang
plugins/modules/timesync_provider.yml validate-modules:missing-gplv3-license
1 change: 1 addition & 0 deletions .sanity-ansible-ignore-2.14.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
plugins/modules/timesync_provider.sh shebang
plugins/modules/timesync_provider.yml validate-modules:missing-gplv3-license
plugins/modules/timesync_provider.sh validate-modules:invalid-extension
plugins/modules/timesync_provider.sh validate-modules:python-syntax-error
1 change: 1 addition & 0 deletions .sanity-ansible-ignore-2.15.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
plugins/modules/timesync_provider.sh shebang
plugins/modules/timesync_provider.yml validate-modules:missing-gplv3-license
plugins/modules/timesync_provider.sh validate-modules:invalid-extension
plugins/modules/timesync_provider.sh validate-modules:python-syntax-error
1 change: 1 addition & 0 deletions .sanity-ansible-ignore-2.16.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
plugins/modules/timesync_provider.sh shebang
plugins/modules/timesync_provider.yml validate-modules:missing-gplv3-license
plugins/modules/timesync_provider.sh validate-modules:invalid-extension
plugins/modules/timesync_provider.sh validate-modules:python-syntax-error
1 change: 1 addition & 0 deletions .sanity-ansible-ignore-2.17.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
plugins/modules/timesync_provider.sh shebang
plugins/modules/timesync_provider.yml validate-modules:missing-gplv3-license
plugins/modules/timesync_provider.sh validate-modules:invalid-extension
plugins/modules/timesync_provider.sh validate-modules:missing-gplv3-license
1 change: 1 addition & 0 deletions .sanity-ansible-ignore-2.9.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
plugins/modules/timesync_provider.sh shebang
plugins/modules/timesync_provider.yml validate-modules:missing-gplv3-license
19 changes: 19 additions & 0 deletions library/timesync_provider.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
DOCUMENTATION:
module: timesync_provider
short_description: Determine the timesync provider on the system
version_added: "2.14.0"
description:
- "WARNING: Do not use this module directly! It is only for role internal use."
- "Determine the timesync provider on the system and return it."
options: {}
author:
- Miroslav Lichvar (@mlichvar)
EXAMPLES: |-
- name: Determine current NTP provider
timesync_provider:
RETURN:
timesync_ntp_provider_current:
description: Name of current provider e.g. chrony or ntp
returned: success
type: str
sample: chrony

0 comments on commit 87e99e0

Please sign in to comment.