mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-28 13:21:25 -07:00
Hetzner failover IP: refactoring (#56203)
* Rename helper function. * Extract hetzner.py module_utils. * Rewrite docs. * Add module docs fragment. * Split up get_failover function. * Add tests for new function. * hetzner_pass -> hetzner_password * Move common argspec to module_utils.
This commit is contained in:
parent
7a02c40bbc
commit
bd47e64bc7
4 changed files with 222 additions and 139 deletions
20
lib/ansible/plugins/doc_fragments/hetzner.py
Normal file
20
lib/ansible/plugins/doc_fragments/hetzner.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright: (c) 2019 Felix Fontein <felix@fontein.de>
|
||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
|
||||
|
||||
class ModuleDocFragment(object):
|
||||
|
||||
# Standard files documentation fragment
|
||||
DOCUMENTATION = r'''
|
||||
options:
|
||||
hetzner_user:
|
||||
description: The username for the Robot webservice user.
|
||||
type: str
|
||||
required: yes
|
||||
hetzner_password:
|
||||
description: The password for the Robot webservice user.
|
||||
type: str
|
||||
required: yes
|
||||
'''
|
Loading…
Add table
Add a link
Reference in a new issue