Refactor openssl_privatekey module, move add openssl_privatekey_pipe module (#119)

* Move disk-independent parts of openssl_privatekey to module_utils and doc_fragments.

* Improve documentation.

* Add openssl_privatekey_pipe module.

* Fallback in case no fingerprints are returned.

* Prevent no_log=True for content to stop module from working correctly.

* Forgot version_added.

* Update copyright. All the interesting code is no longer in this file anyway.

* Remove file arguments.

* Add framework for action modules.

* Convert openssl_privatekey_pipe to action plugin.

* Linting.

* Bump version.

* Add return_current_key option.

* Add no_log to examples.

* Remove preparation for potential later extensibility (easy to re-add when needed).

* Fix deprecation version in docs.

* Use new ArgumentSpec object for AnsibleActionModule as well.
This commit is contained in:
Felix Fontein
2020-10-28 21:52:54 +01:00
committed by GitHub
parent 9792188b0e
commit 3c21079afa
16 changed files with 1945 additions and 740 deletions

View File

@@ -1,3 +1,11 @@
plugins/module_utils/action_module.py import-2.6!skip # This is not supposed to be included by modules, but by action plugins
plugins/module_utils/action_module.py import-2.7!skip # This is not supposed to be included by modules, but by action plugins
plugins/module_utils/action_module.py import-3.5!skip # This is not supposed to be included by modules, but by action plugins
plugins/module_utils/action_module.py import-3.6!skip # This is not supposed to be included by modules, but by action plugins
plugins/module_utils/action_module.py import-3.7!skip # This is not supposed to be included by modules, but by action plugins
plugins/module_utils/action_module.py import-3.8!skip # This is not supposed to be included by modules, but by action plugins
plugins/module_utils/action_module.py import-3.9!skip # This is not supposed to be included by modules, but by action plugins
plugins/module_utils/action_module.py pylint:ansible-bad-module-import # This is not supposed to be included by modules, but by action plugins
plugins/module_utils/compat/ipaddress.py future-import-boilerplate
plugins/module_utils/compat/ipaddress.py metaclass-boilerplate
plugins/module_utils/compat/ipaddress.py no-assert

View File

@@ -1,3 +1,11 @@
plugins/module_utils/action_module.py import-2.6!skip # This is not supposed to be included by modules, but by action plugins
plugins/module_utils/action_module.py import-2.7!skip # This is not supposed to be included by modules, but by action plugins
plugins/module_utils/action_module.py import-3.5!skip # This is not supposed to be included by modules, but by action plugins
plugins/module_utils/action_module.py import-3.6!skip # This is not supposed to be included by modules, but by action plugins
plugins/module_utils/action_module.py import-3.7!skip # This is not supposed to be included by modules, but by action plugins
plugins/module_utils/action_module.py import-3.8!skip # This is not supposed to be included by modules, but by action plugins
plugins/module_utils/action_module.py import-3.9!skip # This is not supposed to be included by modules, but by action plugins
plugins/module_utils/action_module.py pylint:ansible-bad-module-import # This is not supposed to be included by modules, but by action plugins
plugins/module_utils/compat/ipaddress.py future-import-boilerplate
plugins/module_utils/compat/ipaddress.py metaclass-boilerplate
plugins/module_utils/compat/ipaddress.py no-assert

View File

@@ -1,3 +1,10 @@
plugins/module_utils/action_module.py import-2.6!skip # This is not supposed to be included by modules, but by action plugins
plugins/module_utils/action_module.py import-2.7!skip # This is not supposed to be included by modules, but by action plugins
plugins/module_utils/action_module.py import-3.5!skip # This is not supposed to be included by modules, but by action plugins
plugins/module_utils/action_module.py import-3.6!skip # This is not supposed to be included by modules, but by action plugins
plugins/module_utils/action_module.py import-3.7!skip # This is not supposed to be included by modules, but by action plugins
plugins/module_utils/action_module.py import-3.8!skip # This is not supposed to be included by modules, but by action plugins
plugins/module_utils/action_module.py pylint:ansible-bad-module-import # This is not supposed to be included by modules, but by action plugins
plugins/module_utils/compat/ipaddress.py future-import-boilerplate
plugins/module_utils/compat/ipaddress.py metaclass-boilerplate
plugins/module_utils/compat/ipaddress.py no-assert