mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-08-05 06:14:42 +00:00
Merge pull request #515 from rjeffman/ghci_fix_ansible_doc_test
Fix execution of Github Workflow to verify ansible docs.
This commit is contained in:
22
.github/workflows/docs.yml
vendored
22
.github/workflows/docs.yml
vendored
@@ -4,8 +4,8 @@ on:
|
|||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
jobs:
|
jobs:
|
||||||
check_docs:
|
check_docs_29:
|
||||||
name: Check Ansible Documentation.
|
name: Check Ansible Documentation with Ansible 2.9.
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@@ -13,4 +13,20 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
- name: Run ansible-doc-test
|
- name: Run ansible-doc-test
|
||||||
run: ANSIBLE_LIBRARY="." python utils/ansible-doc-test roles plugins
|
run: |
|
||||||
|
python -m pip install "ansible < 2.10"
|
||||||
|
ANSIBLE_LIBRARY="." python utils/ansible-doc-test roles plugins
|
||||||
|
|
||||||
|
check_docs_latest:
|
||||||
|
name: Check Ansible Documentation with latest Ansible.
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: '3.x'
|
||||||
|
- name: Run ansible-doc-test
|
||||||
|
run: |
|
||||||
|
python -m pip install ansible
|
||||||
|
ANSIBLE_LIBRARY="." python utils/ansible-doc-test roles plugins
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,15 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
DOCUMENTATION = """
|
||||||
|
---
|
||||||
|
module: ipaclient_get_facts
|
||||||
|
short description: Get facts about IPA client and server configuration.
|
||||||
|
description: Get facts about IPA client and server configuration.
|
||||||
|
author:
|
||||||
|
- Thomas Woerner
|
||||||
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import six
|
import six
|
||||||
|
|||||||
@@ -180,9 +180,9 @@ ntp_servers:
|
|||||||
type: list
|
type: list
|
||||||
sample: ["ntp.example.com"]
|
sample: ["ntp.example.com"]
|
||||||
ipa_python_version:
|
ipa_python_version:
|
||||||
description:
|
description: >
|
||||||
- The IPA python version as a number:
|
The IPA python version as a number:
|
||||||
- <major version>*10000+<minor version>*100+<release>
|
<major version>*10000+<minor version>*100+<release>
|
||||||
returned: always
|
returned: always
|
||||||
type: int
|
type: int
|
||||||
sample: 040400
|
sample: 040400
|
||||||
|
|||||||
Reference in New Issue
Block a user