mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-02 22:43:23 -07:00
pacemaker_info: new module and enhance cli_action (#10291)
* feat(info): Add pacemaker_info module and enhance cli_action util This commit adds in the pacemaker_info module which is responsible for retrieving pacemaker facts. Additionally, the cli_action var has been refactored for the pacemaker.py util, which is passed through the runner. * refactor(version): Bump version_added to 11.2.0 * Apply suggestions from code review Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/pacemaker_info.py Co-authored-by: Felix Fontein <felix@fontein.de> * refactor(process): Simplify command output --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
e91e2ef6f8
commit
47aec26001
5 changed files with 242 additions and 0 deletions
|
@ -67,6 +67,8 @@ def pacemaker_runner(module, **kwargs):
|
|||
wait=cmd_runner_fmt.as_opt_eq_val("--wait"),
|
||||
config=cmd_runner_fmt.as_fixed("config"),
|
||||
force=cmd_runner_fmt.as_bool("--force"),
|
||||
version=cmd_runner_fmt.as_fixed("--version"),
|
||||
output_format=cmd_runner_fmt.as_opt_eq_val("--output-format"),
|
||||
),
|
||||
**kwargs
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue