update ansible collections sops, docker and debops
This commit is contained in:
parent
f1135b818f
commit
e31ee5e39c
910 changed files with 27667 additions and 19786 deletions
|
|
@ -42,6 +42,23 @@ options:
|
|||
- ignore
|
||||
- evaluate-on-load
|
||||
- lazy-evaluation
|
||||
return_method:
|
||||
description:
|
||||
- Determine how to return the results.
|
||||
- Because of limitations of ansible-core < 2.21, the results were returned as Ansible facts.
|
||||
Since ansible-core 2.21, it is possible to actually set variables, similar to how M(ansible.builtin.include_vars)
|
||||
is working.
|
||||
type: str
|
||||
default: auto
|
||||
choices:
|
||||
auto:
|
||||
- Return the results as facts for ansible-core < 2.21, and as variables for ansible-core >= 2.21.
|
||||
facts-only:
|
||||
- Return the results always as facts.
|
||||
vars-only:
|
||||
- Return the results always as variables.
|
||||
- Fails for ansible-core < 2.21.
|
||||
version_added: 2.3.0
|
||||
extends_documentation_fragment:
|
||||
- community.sops.sops
|
||||
- community.sops.attributes
|
||||
|
|
@ -61,7 +78,9 @@ attributes:
|
|||
details:
|
||||
- This action does not modify state.
|
||||
facts:
|
||||
support: full
|
||||
support: partial
|
||||
details:
|
||||
- Only returns facts if O(return_method=facts-only), or O(return_method=auto) for ansible-core < 2.21.
|
||||
idempotent:
|
||||
support: N/A
|
||||
details:
|
||||
|
|
@ -105,7 +124,7 @@ EXAMPLES = r"""
|
|||
RETURN = r"""
|
||||
ansible_facts:
|
||||
description: Variables that were included and their values.
|
||||
returned: success
|
||||
returned: success, and O(return_method=facts-only), or O(return_method=auto) for ansible-core < 2.21
|
||||
type: dict
|
||||
sample: {'variable': 'value'}
|
||||
ansible_included_var_files:
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ try:
|
|||
except ImportError:
|
||||
YAML_IMP_ERR = traceback.format_exc()
|
||||
HAS_YAML = False
|
||||
yaml = None
|
||||
yaml = None # type: ignore[assignment] # use better type later...
|
||||
|
||||
|
||||
def get_data_type(module):
|
||||
|
|
@ -122,7 +122,7 @@ def get_data_type(module):
|
|||
return 'json'
|
||||
if module.params['content_yaml'] is not None:
|
||||
return 'yaml'
|
||||
module.fail_json(msg='Internal error: unknown content type')
|
||||
module.fail_json(msg='Internal error: unknown content type') # pragma: no cover
|
||||
|
||||
|
||||
def compare_encoded_content(module, binary_data, content):
|
||||
|
|
@ -144,7 +144,7 @@ def compare_encoded_content(module, binary_data, content):
|
|||
except Exception:
|
||||
# Treat parsing errors as content not equal
|
||||
return False
|
||||
module.fail_json(msg='Internal error: unknown content type')
|
||||
module.fail_json(msg='Internal error: unknown content type') # pragma: no cover
|
||||
|
||||
|
||||
def get_encoded_type_content(module, binary_data):
|
||||
|
|
@ -156,7 +156,7 @@ def get_encoded_type_content(module, binary_data):
|
|||
return 'json', json.dumps(module.params['content_json']).encode('utf-8')
|
||||
if module.params['content_yaml'] is not None:
|
||||
return 'yaml', yaml.safe_dump(module.params['content_yaml']).encode('utf-8')
|
||||
module.fail_json(msg='Internal error: unknown content type')
|
||||
module.fail_json(msg='Internal error: unknown content type') # pragma: no cover
|
||||
|
||||
|
||||
def main():
|
||||
|
|
|
|||
Loading…
Reference in a new issue