mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-15 17:40:50 -07:00
adds EXAMPLES doc section
This commit is contained in:
parent
22b317fd79
commit
e499391688
1 changed files with 38 additions and 2 deletions
|
@ -2,7 +2,43 @@ from __future__ import absolute_import, division, print_function
|
||||||
|
|
||||||
__metaclass__ = type
|
__metaclass__ = type
|
||||||
|
|
||||||
RETURN = r"""
|
EXAMPLES = r'''
|
||||||
|
- name: Install build-tools;34.0.0
|
||||||
|
community.general.android_sdk:
|
||||||
|
name: build-tools;34.0.0
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Install build-tools;34.0.0 and platform-tools
|
||||||
|
community.general.android_sdk:
|
||||||
|
name:
|
||||||
|
- build-tools;34.0.0
|
||||||
|
- platform-tools
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Delete build-tools;34.0.0
|
||||||
|
community.general.android_sdk:
|
||||||
|
name: build-tools;34.0.0
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
- name: Install platform-tools or update if installed
|
||||||
|
community.general.android_sdk:
|
||||||
|
name: platform-tools
|
||||||
|
state: latest
|
||||||
|
|
||||||
|
- name: Install build-tools;34.0.0 to a different SDK root
|
||||||
|
community.general.android_sdk:
|
||||||
|
name: build-tools;34.0.0
|
||||||
|
state: present
|
||||||
|
sdk_root: "/path/to/new/root"
|
||||||
|
|
||||||
|
- name: Install a package from another channel
|
||||||
|
community.general.android_sdk:
|
||||||
|
name: some-package-present-in-canary-channel
|
||||||
|
state: present
|
||||||
|
channel: canary
|
||||||
|
'''
|
||||||
|
|
||||||
|
RETURN = r'''
|
||||||
installed:
|
installed:
|
||||||
description: a list of packages that have been installed
|
description: a list of packages that have been installed
|
||||||
returned: when packages have changed
|
returned: when packages have changed
|
||||||
|
@ -14,7 +50,7 @@ removed:
|
||||||
returned: when packages have changed
|
returned: when packages have changed
|
||||||
type: list
|
type: list
|
||||||
sample: ['build-tools;34.0.0', 'platform-tools']
|
sample: ['build-tools;34.0.0', 'platform-tools']
|
||||||
"""
|
'''
|
||||||
|
|
||||||
from ansible_collections.community.general.plugins.module_utils.mh.module_helper import StateModuleHelper
|
from ansible_collections.community.general.plugins.module_utils.mh.module_helper import StateModuleHelper
|
||||||
from ansible_collections.community.general.plugins.module_utils.sdkmanager import sdkmanager_runner, Package, \
|
from ansible_collections.community.general.plugins.module_utils.sdkmanager import sdkmanager_runner, Package, \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue