mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
collection: Change default='no's and 'yes's to default=False and default=True (#556)
* Change default={'no','yes'} to default={False,True} * Add changelog * Remove changelog
This commit is contained in:
parent
004eb6992f
commit
650ae65f24
32 changed files with 58 additions and 58 deletions
|
@ -434,13 +434,13 @@ def main():
|
|||
image_id=dict(),
|
||||
region_id=dict(),
|
||||
ssh_key_ids=dict(type='list'),
|
||||
virtio=dict(type='bool', default='yes'),
|
||||
private_networking=dict(type='bool', default='no'),
|
||||
backups_enabled=dict(type='bool', default='no'),
|
||||
virtio=dict(type='bool', default=True),
|
||||
private_networking=dict(type='bool', default=False),
|
||||
backups_enabled=dict(type='bool', default=False),
|
||||
id=dict(aliases=['droplet_id'], type='int'),
|
||||
unique_name=dict(type='bool', default='no'),
|
||||
unique_name=dict(type='bool', default=False),
|
||||
user_data=dict(default=None),
|
||||
ipv6=dict(type='bool', default='no'),
|
||||
ipv6=dict(type='bool', default=False),
|
||||
wait=dict(type='bool', default=True),
|
||||
wait_timeout=dict(default=300, type='int'),
|
||||
ssh_pub_key=dict(type='str'),
|
||||
|
|
|
@ -409,7 +409,7 @@ def main():
|
|||
gs_access_key=dict(required=True),
|
||||
overwrite=dict(default=True, type='bool', aliases=['force']),
|
||||
region=dict(default='US', type='str'),
|
||||
versioning=dict(default='no', type='bool')
|
||||
versioning=dict(default=False, type='bool')
|
||||
),
|
||||
)
|
||||
|
||||
|
|
|
@ -444,7 +444,7 @@ def main():
|
|||
api_user=dict(required=True),
|
||||
api_password=dict(no_log=True),
|
||||
vmid=dict(required=False),
|
||||
validate_certs=dict(type='bool', default='no'),
|
||||
validate_certs=dict(type='bool', default=False),
|
||||
node=dict(),
|
||||
pool=dict(),
|
||||
password=dict(no_log=True),
|
||||
|
@ -458,16 +458,16 @@ def main():
|
|||
netif=dict(type='dict'),
|
||||
mounts=dict(type='dict'),
|
||||
ip_address=dict(),
|
||||
onboot=dict(type='bool', default='no'),
|
||||
onboot=dict(type='bool', default=False),
|
||||
storage=dict(default='local'),
|
||||
cpuunits=dict(type='int', default=1000),
|
||||
nameserver=dict(),
|
||||
searchdomain=dict(),
|
||||
timeout=dict(type='int', default=30),
|
||||
force=dict(type='bool', default='no'),
|
||||
force=dict(type='bool', default=False),
|
||||
state=dict(default='present', choices=['present', 'absent', 'stopped', 'started', 'restarted']),
|
||||
pubkey=dict(type='str', default=None),
|
||||
unprivileged=dict(type='bool', default='no'),
|
||||
unprivileged=dict(type='bool', default=False),
|
||||
description=dict(type='str'),
|
||||
hookscript=dict(type='str'),
|
||||
)
|
||||
|
|
|
@ -788,13 +788,13 @@ def proxmox_version(proxmox):
|
|||
def main():
|
||||
module = AnsibleModule(
|
||||
argument_spec=dict(
|
||||
acpi=dict(type='bool', default='yes'),
|
||||
acpi=dict(type='bool', default=True),
|
||||
agent=dict(type='bool'),
|
||||
args=dict(type='str', default=None),
|
||||
api_host=dict(required=True),
|
||||
api_user=dict(required=True),
|
||||
api_password=dict(no_log=True),
|
||||
autostart=dict(type='bool', default='no'),
|
||||
autostart=dict(type='bool', default=False),
|
||||
balloon=dict(type='int', default=0),
|
||||
bios=dict(choices=['seabios', 'ovmf']),
|
||||
boot=dict(type='str', default='cnd'),
|
||||
|
@ -810,13 +810,13 @@ def main():
|
|||
force=dict(type='bool', default=None),
|
||||
format=dict(type='str', default='qcow2', choices=['cloop', 'cow', 'qcow', 'qcow2', 'qed', 'raw', 'vmdk']),
|
||||
freeze=dict(type='bool'),
|
||||
full=dict(type='bool', default='yes'),
|
||||
full=dict(type='bool', default=True),
|
||||
hostpci=dict(type='dict'),
|
||||
hotplug=dict(type='str'),
|
||||
hugepages=dict(choices=['any', '2', '1024']),
|
||||
ide=dict(type='dict', default=None),
|
||||
keyboard=dict(type='str'),
|
||||
kvm=dict(type='bool', default='yes'),
|
||||
kvm=dict(type='bool', default=True),
|
||||
localtime=dict(type='bool'),
|
||||
lock=dict(choices=['migrate', 'backup', 'snapshot', 'rollback']),
|
||||
machine=dict(type='str'),
|
||||
|
@ -829,7 +829,7 @@ def main():
|
|||
node=dict(),
|
||||
numa=dict(type='dict'),
|
||||
numa_enabled=dict(type='bool'),
|
||||
onboot=dict(type='bool', default='yes'),
|
||||
onboot=dict(type='bool', default=True),
|
||||
ostype=dict(default='l26', choices=['other', 'wxp', 'w2k', 'w2k3', 'w2k8', 'wvista', 'win7', 'win8', 'win10', 'l24', 'l26', 'solaris']),
|
||||
parallel=dict(type='dict'),
|
||||
pool=dict(type='str'),
|
||||
|
@ -849,13 +849,13 @@ def main():
|
|||
startup=dict(),
|
||||
state=dict(default='present', choices=['present', 'absent', 'stopped', 'started', 'restarted', 'current']),
|
||||
storage=dict(type='str'),
|
||||
tablet=dict(type='bool', default='no'),
|
||||
tablet=dict(type='bool', default=False),
|
||||
target=dict(type='str'),
|
||||
tdf=dict(type='bool'),
|
||||
template=dict(type='bool', default='no'),
|
||||
template=dict(type='bool', default=False),
|
||||
timeout=dict(type='int', default=30),
|
||||
update=dict(type='bool', default='no'),
|
||||
validate_certs=dict(type='bool', default='no'),
|
||||
update=dict(type='bool', default=False),
|
||||
validate_certs=dict(type='bool', default=False),
|
||||
vcpus=dict(type='int', default=None),
|
||||
vga=dict(default='std', choices=['std', 'cirrus', 'vmware', 'qxl', 'serial0', 'serial1', 'serial2', 'serial3', 'qxl2', 'qxl3', 'qxl4']),
|
||||
virtio=dict(type='dict', default=None),
|
||||
|
|
|
@ -166,14 +166,14 @@ def main():
|
|||
api_host=dict(required=True),
|
||||
api_user=dict(required=True),
|
||||
api_password=dict(no_log=True),
|
||||
validate_certs=dict(type='bool', default='no'),
|
||||
validate_certs=dict(type='bool', default=False),
|
||||
node=dict(),
|
||||
src=dict(type='path'),
|
||||
template=dict(),
|
||||
content_type=dict(default='vztmpl', choices=['vztmpl', 'iso']),
|
||||
storage=dict(default='local'),
|
||||
timeout=dict(type='int', default=30),
|
||||
force=dict(type='bool', default='no'),
|
||||
force=dict(type='bool', default=False),
|
||||
state=dict(default='present', choices=['present', 'absent']),
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue