mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-31 17:11:23 -07:00
[PR #10494/736ce198 backport][stable-11] arg_spec adjustments: modules [a-f]* (#10501)
arg_spec adjustments: modules [a-f]* (#10494)
* arg_spec adjustments: modules [a-f]*
* add changelog frag
* Update changelogs/fragments/10494-rfdn-1.yml
---------
(cherry picked from commit 736ce1983d
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
9d8fac08bb
commit
a5ae69c701
27 changed files with 134 additions and 110 deletions
27
changelogs/fragments/10494-rfdn-1.yml
Normal file
27
changelogs/fragments/10494-rfdn-1.yml
Normal file
|
@ -0,0 +1,27 @@
|
|||
minor_changes:
|
||||
- aerospike_migrations - remove redundant constructs from argument specs (https://github.com/ansible-collections/community.general/pull/10494).
|
||||
- airbrake_deployment - remove redundant constructs from argument specs (https://github.com/ansible-collections/community.general/pull/10494).
|
||||
- bigpanda - remove redundant constructs from argument specs (https://github.com/ansible-collections/community.general/pull/10494).
|
||||
- bootc_manage - remove redundant constructs from argument specs (https://github.com/ansible-collections/community.general/pull/10494).
|
||||
- bower - remove redundant constructs from argument specs (https://github.com/ansible-collections/community.general/pull/10494).
|
||||
- btrfs_subvolume - remove redundant constructs from argument specs (https://github.com/ansible-collections/community.general/pull/10494).
|
||||
- bundler - remove redundant constructs from argument specs (https://github.com/ansible-collections/community.general/pull/10494).
|
||||
- campfire - remove redundant constructs from argument specs (https://github.com/ansible-collections/community.general/pull/10494).
|
||||
- cargo - remove redundant constructs from argument specs (https://github.com/ansible-collections/community.general/pull/10494).
|
||||
- catapult - remove redundant constructs from argument specs (https://github.com/ansible-collections/community.general/pull/10494).
|
||||
- cisco_webex - remove redundant constructs from argument specs (https://github.com/ansible-collections/community.general/pull/10494).
|
||||
- consul_kv - remove redundant constructs from argument specs (https://github.com/ansible-collections/community.general/pull/10494).
|
||||
- consul_policy - remove redundant constructs from argument specs (https://github.com/ansible-collections/community.general/pull/10494).
|
||||
- copr - remove redundant constructs from argument specs (https://github.com/ansible-collections/community.general/pull/10494).
|
||||
- datadog_downtime - remove redundant constructs from argument specs (https://github.com/ansible-collections/community.general/pull/10494).
|
||||
- datadog_monitor - remove redundant constructs from argument specs (https://github.com/ansible-collections/community.general/pull/10494).
|
||||
- dconf - remove redundant constructs from argument specs (https://github.com/ansible-collections/community.general/pull/10494).
|
||||
- dimensiondata_network - remove redundant constructs from argument specs (https://github.com/ansible-collections/community.general/pull/10494).
|
||||
- dimensiondata_vlan - remove redundant constructs from argument specs (https://github.com/ansible-collections/community.general/pull/10494).
|
||||
- dnf_config_manager - remove redundant constructs from argument specs (https://github.com/ansible-collections/community.general/pull/10494).
|
||||
- dnsmadeeasy - remove redundant constructs from argument specs (https://github.com/ansible-collections/community.general/pull/10494).
|
||||
- dpkg_divert - remove redundant constructs from argument specs (https://github.com/ansible-collections/community.general/pull/10494).
|
||||
- easy_install - remove redundant constructs from argument specs (https://github.com/ansible-collections/community.general/pull/10494).
|
||||
- elasticsearch_plugin - remove redundant constructs from argument specs (https://github.com/ansible-collections/community.general/pull/10494).
|
||||
- facter - remove redundant constructs from argument specs (https://github.com/ansible-collections/community.general/pull/10494).
|
||||
- filesystem - remove redundant constructs from argument specs (https://github.com/ansible-collections/community.general/pull/10494).
|
|
@ -29,7 +29,6 @@ options:
|
|||
host:
|
||||
description:
|
||||
- Which host do we use as seed for info connection.
|
||||
required: false
|
||||
type: str
|
||||
default: localhost
|
||||
port:
|
||||
|
@ -180,19 +179,19 @@ else:
|
|||
def run_module():
|
||||
"""run ansible module"""
|
||||
module_args = dict(
|
||||
host=dict(type='str', required=False, default='localhost'),
|
||||
port=dict(type='int', required=False, default=3000),
|
||||
connect_timeout=dict(type='int', required=False, default=1000),
|
||||
consecutive_good_checks=dict(type='int', required=False, default=3),
|
||||
sleep_between_checks=dict(type='int', required=False, default=60),
|
||||
tries_limit=dict(type='int', required=False, default=300),
|
||||
host=dict(type='str', default='localhost'),
|
||||
port=dict(type='int', default=3000),
|
||||
connect_timeout=dict(type='int', default=1000),
|
||||
consecutive_good_checks=dict(type='int', default=3),
|
||||
sleep_between_checks=dict(type='int', default=60),
|
||||
tries_limit=dict(type='int', default=300),
|
||||
local_only=dict(type='bool', required=True),
|
||||
min_cluster_size=dict(type='int', required=False, default=1),
|
||||
target_cluster_size=dict(type='int', required=False, default=None),
|
||||
fail_on_cluster_change=dict(type='bool', required=False, default=True),
|
||||
migrate_tx_key=dict(type='str', required=False, no_log=False,
|
||||
min_cluster_size=dict(type='int', default=1),
|
||||
target_cluster_size=dict(type='int'),
|
||||
fail_on_cluster_change=dict(type='bool', default=True),
|
||||
migrate_tx_key=dict(type='str', no_log=False,
|
||||
default="migrate_tx_partitions_remaining"),
|
||||
migrate_rx_key=dict(type='str', required=False, no_log=False,
|
||||
migrate_rx_key=dict(type='str', no_log=False,
|
||||
default="migrate_rx_partitions_remaining")
|
||||
)
|
||||
|
||||
|
|
|
@ -114,11 +114,11 @@ def main():
|
|||
project_id=dict(required=True, no_log=True, type='str'),
|
||||
project_key=dict(required=True, no_log=True, type='str'),
|
||||
environment=dict(required=True, type='str'),
|
||||
user=dict(required=False, type='str'),
|
||||
repo=dict(required=False, type='str'),
|
||||
revision=dict(required=False, type='str'),
|
||||
version=dict(required=False, type='str'),
|
||||
url=dict(required=False, default='https://api.airbrake.io/api/v4/projects/', type='str'),
|
||||
user=dict(type='str'),
|
||||
repo=dict(type='str'),
|
||||
revision=dict(type='str'),
|
||||
version=dict(type='str'),
|
||||
url=dict(default='https://api.airbrake.io/api/v4/projects/', type='str'),
|
||||
validate_certs=dict(default=True, type='bool'),
|
||||
),
|
||||
supports_check_mode=True,
|
||||
|
|
|
@ -150,14 +150,14 @@ def main():
|
|||
version=dict(required=True),
|
||||
token=dict(required=True, no_log=True),
|
||||
state=dict(required=True, choices=['started', 'finished', 'failed']),
|
||||
hosts=dict(required=False, aliases=['host']),
|
||||
env=dict(required=False),
|
||||
owner=dict(required=False),
|
||||
description=dict(required=False),
|
||||
deployment_message=dict(required=False),
|
||||
source_system=dict(required=False, default='ansible'),
|
||||
hosts=dict(aliases=['host']),
|
||||
env=dict(),
|
||||
owner=dict(),
|
||||
description=dict(),
|
||||
deployment_message=dict(),
|
||||
source_system=dict(default='ansible'),
|
||||
validate_certs=dict(default=True, type='bool'),
|
||||
url=dict(required=False, default='https://api.bigpanda.io'),
|
||||
url=dict(default='https://api.bigpanda.io'),
|
||||
),
|
||||
supports_check_mode=True,
|
||||
)
|
||||
|
|
|
@ -57,7 +57,7 @@ from ansible.module_utils.common.locale import get_best_parsable_locale
|
|||
def main():
|
||||
argument_spec = dict(
|
||||
state=dict(type='str', required=True, choices=['switch', 'latest']),
|
||||
image=dict(type='str', required=False),
|
||||
image=dict(type='str'),
|
||||
)
|
||||
module = AnsibleModule(
|
||||
argument_spec=argument_spec,
|
||||
|
|
|
@ -187,13 +187,13 @@ class Bower(object):
|
|||
|
||||
def main():
|
||||
arg_spec = dict(
|
||||
name=dict(default=None),
|
||||
name=dict(),
|
||||
offline=dict(default=False, type='bool'),
|
||||
production=dict(default=False, type='bool'),
|
||||
path=dict(required=True, type='path'),
|
||||
relative_execpath=dict(default=None, required=False, type='path'),
|
||||
relative_execpath=dict(type='path'),
|
||||
state=dict(default='present', choices=['present', 'absent', 'latest', ]),
|
||||
version=dict(default=None),
|
||||
version=dict(),
|
||||
)
|
||||
module = AnsibleModule(
|
||||
argument_spec=arg_spec
|
||||
|
|
|
@ -644,16 +644,16 @@ class BtrfsSubvolumeModule(object):
|
|||
|
||||
def run_module():
|
||||
module_args = dict(
|
||||
automount=dict(type='bool', required=False, default=False),
|
||||
default=dict(type='bool', required=False, default=False),
|
||||
filesystem_device=dict(type='path', required=False),
|
||||
filesystem_label=dict(type='str', required=False),
|
||||
filesystem_uuid=dict(type='str', required=False),
|
||||
automount=dict(type='bool', default=False),
|
||||
default=dict(type='bool', default=False),
|
||||
filesystem_device=dict(type='path'),
|
||||
filesystem_label=dict(type='str'),
|
||||
filesystem_uuid=dict(type='str'),
|
||||
name=dict(type='str', required=True),
|
||||
recursive=dict(type='bool', default=False),
|
||||
state=dict(type='str', required=False, default='present', choices=['present', 'absent']),
|
||||
snapshot_source=dict(type='str', required=False),
|
||||
snapshot_conflict=dict(type='str', required=False, default='skip', choices=['skip', 'clobber', 'error'])
|
||||
state=dict(type='str', default='present', choices=['present', 'absent']),
|
||||
snapshot_source=dict(type='str'),
|
||||
snapshot_conflict=dict(type='str', default='skip', choices=['skip', 'clobber', 'error'])
|
||||
)
|
||||
|
||||
module = AnsibleModule(
|
||||
|
|
|
@ -131,18 +131,18 @@ def get_bundler_executable(module):
|
|||
def main():
|
||||
module = AnsibleModule(
|
||||
argument_spec=dict(
|
||||
executable=dict(default=None, required=False),
|
||||
state=dict(default='present', required=False, choices=['present', 'latest']),
|
||||
chdir=dict(default=None, required=False, type='path'),
|
||||
exclude_groups=dict(default=None, required=False, type='list', elements='str'),
|
||||
clean=dict(default=False, required=False, type='bool'),
|
||||
gemfile=dict(default=None, required=False, type='path'),
|
||||
local=dict(default=False, required=False, type='bool'),
|
||||
deployment_mode=dict(default=False, required=False, type='bool'),
|
||||
user_install=dict(default=True, required=False, type='bool'),
|
||||
gem_path=dict(default=None, required=False, type='path'),
|
||||
binstub_directory=dict(default=None, required=False, type='path'),
|
||||
extra_args=dict(default=None, required=False),
|
||||
executable=dict(),
|
||||
state=dict(default='present', choices=['present', 'latest']),
|
||||
chdir=dict(type='path'),
|
||||
exclude_groups=dict(type='list', elements='str'),
|
||||
clean=dict(default=False, type='bool'),
|
||||
gemfile=dict(type='path'),
|
||||
local=dict(default=False, type='bool'),
|
||||
deployment_mode=dict(default=False, type='bool'),
|
||||
user_install=dict(default=True, type='bool'),
|
||||
gem_path=dict(type='path'),
|
||||
binstub_directory=dict(type='path'),
|
||||
extra_args=dict(),
|
||||
),
|
||||
supports_check_mode=True
|
||||
)
|
||||
|
|
|
@ -137,8 +137,7 @@ def main():
|
|||
token=dict(required=True, no_log=True),
|
||||
room=dict(required=True),
|
||||
msg=dict(required=True),
|
||||
notify=dict(required=False,
|
||||
choices=["56k", "bell", "bezos", "bueller",
|
||||
notify=dict(choices=["56k", "bell", "bezos", "bueller",
|
||||
"clowntown", "cottoneyejoe",
|
||||
"crickets", "dadgummit", "dangerzone",
|
||||
"danielsan", "deeper", "drama",
|
||||
|
|
|
@ -247,14 +247,14 @@ class Cargo(object):
|
|||
|
||||
def main():
|
||||
arg_spec = dict(
|
||||
executable=dict(default=None, type="path"),
|
||||
executable=dict(type="path"),
|
||||
name=dict(required=True, type="list", elements="str"),
|
||||
path=dict(default=None, type="path"),
|
||||
path=dict(type="path"),
|
||||
state=dict(default="present", choices=["present", "absent", "latest"]),
|
||||
version=dict(default=None, type="str"),
|
||||
version=dict(type="str"),
|
||||
locked=dict(default=False, type="bool"),
|
||||
directory=dict(default=None, type="path"),
|
||||
features=dict(default=[], required=False, type="list", elements="str"),
|
||||
directory=dict(type="path"),
|
||||
features=dict(default=[], type="list", elements="str"),
|
||||
)
|
||||
module = AnsibleModule(argument_spec=arg_spec, supports_check_mode=True)
|
||||
|
||||
|
|
|
@ -138,7 +138,7 @@ def main():
|
|||
user_id=dict(required=True),
|
||||
api_token=dict(required=True, no_log=True),
|
||||
api_secret=dict(required=True, no_log=True),
|
||||
media=dict(default=None, required=False),
|
||||
media=dict(),
|
||||
),
|
||||
)
|
||||
|
||||
|
|
|
@ -177,7 +177,7 @@ def main():
|
|||
argument_spec=dict(
|
||||
recipient_type=dict(required=True, choices=['roomId', 'toPersonEmail', 'toPersonId']),
|
||||
recipient_id=dict(required=True, no_log=True),
|
||||
msg_type=dict(required=False, default='text', aliases=['message_type'], choices=['text', 'markdown']),
|
||||
msg_type=dict(default='text', aliases=['message_type'], choices=['text', 'markdown']),
|
||||
personal_token=dict(required=True, no_log=True, aliases=['token']),
|
||||
msg=dict(required=True),
|
||||
),
|
||||
|
|
|
@ -300,7 +300,7 @@ def main():
|
|||
module = AnsibleModule(
|
||||
argument_spec=dict(
|
||||
cas=dict(type='str'),
|
||||
datacenter=dict(type='str', default=None),
|
||||
datacenter=dict(type='str'),
|
||||
flags=dict(type='str'),
|
||||
key=dict(type='str', required=True, no_log=False),
|
||||
host=dict(type='str', default='localhost'),
|
||||
|
|
|
@ -132,7 +132,7 @@ from ansible_collections.community.general.plugins.module_utils.consul import (
|
|||
|
||||
_ARGUMENT_SPEC = {
|
||||
"name": dict(required=True),
|
||||
"description": dict(required=False, type="str"),
|
||||
"description": dict(type="str"),
|
||||
"rules": dict(type="str"),
|
||||
"valid_datacenters": dict(type="list", elements="str"),
|
||||
"state": dict(default="present", choices=["present", "absent"]),
|
||||
|
|
|
@ -494,8 +494,8 @@ def run_module():
|
|||
name=dict(type="str", required=True),
|
||||
state=dict(type="str", choices=["enabled", "disabled", "absent"], default="enabled"),
|
||||
chroot=dict(type="str"),
|
||||
includepkgs=dict(type='list', elements="str", required=False),
|
||||
excludepkgs=dict(type='list', elements="str", required=False),
|
||||
includepkgs=dict(type='list', elements="str"),
|
||||
excludepkgs=dict(type='list', elements="str"),
|
||||
)
|
||||
module = AnsibleModule(argument_spec=module_args, supports_check_mode=True)
|
||||
params = module.params
|
||||
|
|
|
@ -175,18 +175,18 @@ def main():
|
|||
module = AnsibleModule(
|
||||
argument_spec=dict(
|
||||
api_key=dict(required=True, no_log=True),
|
||||
api_host=dict(required=False, default="https://api.datadoghq.com"),
|
||||
api_host=dict(default="https://api.datadoghq.com"),
|
||||
app_key=dict(required=True, no_log=True),
|
||||
state=dict(required=False, choices=["present", "absent"], default="present"),
|
||||
monitor_tags=dict(required=False, type="list", elements="str"),
|
||||
scope=dict(required=False, type="list", elements="str"),
|
||||
monitor_id=dict(required=False, type="int"),
|
||||
downtime_message=dict(required=False, no_log=True),
|
||||
start=dict(required=False, type="int"),
|
||||
end=dict(required=False, type="int"),
|
||||
timezone=dict(required=False, type="str"),
|
||||
rrule=dict(required=False, type="str"),
|
||||
id=dict(required=False, type="int"),
|
||||
state=dict(choices=["present", "absent"], default="present"),
|
||||
monitor_tags=dict(type="list", elements="str"),
|
||||
scope=dict(type="list", elements="str"),
|
||||
monitor_id=dict(type="int"),
|
||||
downtime_message=dict(no_log=True),
|
||||
start=dict(type="int"),
|
||||
end=dict(type="int"),
|
||||
timezone=dict(type="str"),
|
||||
rrule=dict(type="str"),
|
||||
id=dict(type="int"),
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
@ -275,14 +275,14 @@ def main():
|
|||
renotify_interval=dict(),
|
||||
escalation_message=dict(),
|
||||
notify_audit=dict(default=False, type='bool'),
|
||||
thresholds=dict(type='dict', default=None),
|
||||
tags=dict(type='list', elements='str', default=None),
|
||||
thresholds=dict(type='dict'),
|
||||
tags=dict(type='list', elements='str'),
|
||||
locked=dict(default=False, type='bool'),
|
||||
require_full_window=dict(type='bool'),
|
||||
new_host_delay=dict(),
|
||||
evaluation_delay=dict(),
|
||||
id=dict(),
|
||||
include_tags=dict(required=False, default=True, type='bool'),
|
||||
include_tags=dict(default=True, type='bool'),
|
||||
priority=dict(type='int'),
|
||||
notification_preset_name=dict(choices=['show_all', 'hide_query', 'hide_handles', 'hide_all']),
|
||||
renotify_occurrences=dict(type='int'),
|
||||
|
|
|
@ -398,7 +398,7 @@ def main():
|
|||
state=dict(default='present', choices=['present', 'absent', 'read']),
|
||||
key=dict(required=True, type='str', no_log=False),
|
||||
# Converted to str below after special handling of bool.
|
||||
value=dict(required=False, default=None, type='raw'),
|
||||
value=dict(type='raw'),
|
||||
),
|
||||
supports_check_mode=True,
|
||||
required_if=[
|
||||
|
|
|
@ -140,7 +140,7 @@ class DimensionDataNetworkModule(DimensionDataModule):
|
|||
module=AnsibleModule(
|
||||
argument_spec=DimensionDataModule.argument_spec_with_wait(
|
||||
name=dict(type='str', required=True),
|
||||
description=dict(type='str', required=False),
|
||||
description=dict(type='str'),
|
||||
service_plan=dict(default='ESSENTIALS', choices=['ADVANCED', 'ESSENTIALS']),
|
||||
state=dict(default='present', choices=['present', 'absent'])
|
||||
),
|
||||
|
|
|
@ -186,7 +186,7 @@ class DimensionDataVlanModule(DimensionDataModule):
|
|||
network_domain=dict(required=True, type='str'),
|
||||
private_ipv4_base_address=dict(default='', type='str'),
|
||||
private_ipv4_prefix_size=dict(default=0, type='int'),
|
||||
allow_expand=dict(required=False, default=False, type='bool'),
|
||||
allow_expand=dict(default=False, type='bool'),
|
||||
state=dict(default='present', choices=['present', 'absent', 'readonly'])
|
||||
),
|
||||
required_together=DimensionDataModule.required_together()
|
||||
|
|
|
@ -175,8 +175,8 @@ def pack_repo_states_for_return(states):
|
|||
|
||||
def main():
|
||||
module_args = dict(
|
||||
name=dict(type='list', elements='str', required=False, default=[]),
|
||||
state=dict(type='str', required=False, choices=['enabled', 'disabled'], default='enabled')
|
||||
name=dict(type='list', elements='str', default=[]),
|
||||
state=dict(type='str', choices=['enabled', 'disabled'], default='enabled')
|
||||
)
|
||||
|
||||
result = dict(
|
||||
|
|
|
@ -553,28 +553,28 @@ def main():
|
|||
domain=dict(required=True),
|
||||
sandbox=dict(default=False, type='bool'),
|
||||
state=dict(required=True, choices=['present', 'absent']),
|
||||
record_name=dict(required=False),
|
||||
record_type=dict(required=False, choices=[
|
||||
record_name=dict(),
|
||||
record_type=dict(choices=[
|
||||
'A', 'AAAA', 'CNAME', 'ANAME', 'HTTPRED', 'MX', 'NS', 'PTR', 'SRV', 'TXT']),
|
||||
record_value=dict(required=False),
|
||||
record_ttl=dict(required=False, default=1800, type='int'),
|
||||
record_value=dict(),
|
||||
record_ttl=dict(default=1800, type='int'),
|
||||
monitor=dict(default=False, type='bool'),
|
||||
systemDescription=dict(default=''),
|
||||
maxEmails=dict(default=1, type='int'),
|
||||
protocol=dict(default='HTTP', choices=['TCP', 'UDP', 'HTTP', 'DNS', 'SMTP', 'HTTPS']),
|
||||
port=dict(default=80, type='int'),
|
||||
sensitivity=dict(default='Medium', choices=['Low', 'Medium', 'High']),
|
||||
contactList=dict(default=None),
|
||||
httpFqdn=dict(required=False),
|
||||
httpFile=dict(required=False),
|
||||
httpQueryString=dict(required=False),
|
||||
contactList=dict(),
|
||||
httpFqdn=dict(),
|
||||
httpFile=dict(),
|
||||
httpQueryString=dict(),
|
||||
failover=dict(default=False, type='bool'),
|
||||
autoFailover=dict(default=False, type='bool'),
|
||||
ip1=dict(required=False),
|
||||
ip2=dict(required=False),
|
||||
ip3=dict(required=False),
|
||||
ip4=dict(required=False),
|
||||
ip5=dict(required=False),
|
||||
ip1=dict(),
|
||||
ip2=dict(),
|
||||
ip3=dict(),
|
||||
ip4=dict(),
|
||||
ip5=dict(),
|
||||
validate_certs=dict(default=True, type='bool'),
|
||||
),
|
||||
required_together=[
|
||||
|
|
|
@ -166,11 +166,11 @@ def main():
|
|||
module = AnsibleModule(
|
||||
argument_spec=dict(
|
||||
path=dict(required=True, type='path'),
|
||||
state=dict(required=False, type='str', default='present', choices=['absent', 'present']),
|
||||
holder=dict(required=False, type='str'),
|
||||
divert=dict(required=False, type='path'),
|
||||
rename=dict(required=False, type='bool', default=False),
|
||||
force=dict(required=False, type='bool', default=False),
|
||||
state=dict(type='str', default='present', choices=['absent', 'present']),
|
||||
holder=dict(type='str'),
|
||||
divert=dict(type='path'),
|
||||
rename=dict(type='bool', default=False),
|
||||
force=dict(type='bool', default=False),
|
||||
),
|
||||
supports_check_mode=True,
|
||||
)
|
||||
|
|
|
@ -133,14 +133,13 @@ def _get_easy_install(module, env=None, executable=None):
|
|||
def main():
|
||||
arg_spec = dict(
|
||||
name=dict(required=True),
|
||||
state=dict(required=False,
|
||||
default='present',
|
||||
state=dict(default='present',
|
||||
choices=['present', 'latest'],
|
||||
type='str'),
|
||||
virtualenv=dict(default=None, required=False),
|
||||
virtualenv=dict(),
|
||||
virtualenv_site_packages=dict(default=False, type='bool'),
|
||||
virtualenv_command=dict(default='virtualenv', required=False),
|
||||
executable=dict(default='easy_install', required=False),
|
||||
virtualenv_command=dict(default='virtualenv'),
|
||||
executable=dict(default='easy_install'),
|
||||
)
|
||||
|
||||
module = AnsibleModule(argument_spec=arg_spec, supports_check_mode=True)
|
||||
|
|
|
@ -259,15 +259,15 @@ def main():
|
|||
argument_spec=dict(
|
||||
name=dict(required=True),
|
||||
state=dict(default="present", choices=list(PACKAGE_STATE_MAP.keys())),
|
||||
src=dict(default=None),
|
||||
url=dict(default=None),
|
||||
src=dict(),
|
||||
url=dict(),
|
||||
timeout=dict(default="1m"),
|
||||
force=dict(type='bool', default=False),
|
||||
plugin_bin=dict(type="path"),
|
||||
plugin_dir=dict(default="/usr/share/elasticsearch/plugins/", type="path"),
|
||||
proxy_host=dict(default=None),
|
||||
proxy_port=dict(default=None),
|
||||
version=dict(default=None)
|
||||
proxy_host=dict(),
|
||||
proxy_port=dict(),
|
||||
version=dict()
|
||||
),
|
||||
mutually_exclusive=[("src", "url")],
|
||||
supports_check_mode=True
|
||||
|
|
|
@ -62,7 +62,7 @@ from ansible.module_utils.basic import AnsibleModule
|
|||
def main():
|
||||
module = AnsibleModule(
|
||||
argument_spec=dict(
|
||||
arguments=dict(required=False, type='list', elements='str')
|
||||
arguments=dict(type='list', elements='str')
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
@ -633,7 +633,7 @@ def main():
|
|||
opts=dict(type='str'),
|
||||
force=dict(type='bool', default=False),
|
||||
resizefs=dict(type='bool', default=False),
|
||||
uuid=dict(type='str', required=False),
|
||||
uuid=dict(type='str'),
|
||||
),
|
||||
required_if=[
|
||||
('state', 'present', ['fstype'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue