From 015566fb06628f5799ec2a0d33da0c4599262a28 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Tue, 6 Sep 2022 20:42:17 +0200 Subject: [PATCH] Normalize more booleans. (#5247) --- plugins/become/doas.py | 2 +- plugins/become/dzdo.py | 2 +- plugins/become/ksu.py | 4 +- plugins/become/machinectl.py | 2 +- plugins/become/pbrun.py | 4 +- plugins/become/pfexec.py | 4 +- plugins/become/pmrun.py | 2 +- plugins/become/sesu.py | 2 +- plugins/cache/pickle.py | 2 +- plugins/cache/redis.py | 2 +- plugins/cache/yaml.py | 2 +- plugins/callback/cgroup_memory_recap.py | 4 +- plugins/callback/diy.py | 2 +- plugins/callback/hipchat.py | 6 +-- plugins/callback/jabber.py | 8 ++-- plugins/callback/logdna.py | 10 ++-- plugins/callback/logentries.py | 6 +-- plugins/callback/selective.py | 2 +- plugins/callback/slack.py | 4 +- plugins/doc_fragments/ibm_storage.py | 6 +-- .../oracle_creatable_resource.py | 2 +- plugins/inventory/gitlab_runners.py | 2 +- plugins/inventory/nmap.py | 14 +++--- plugins/inventory/online.py | 4 +- plugins/inventory/opennebula.py | 8 ++-- plugins/inventory/scaleway.py | 2 +- plugins/inventory/virtualbox.py | 4 +- plugins/lookup/cartesian.py | 2 +- plugins/lookup/chef_databag.py | 4 +- plugins/lookup/consul_kv.py | 4 +- plugins/lookup/cyberarkpassword.py | 4 +- plugins/lookup/dnstxt.py | 2 +- plugins/lookup/etcd.py | 4 +- plugins/lookup/etcd3.py | 4 +- plugins/lookup/filetree.py | 2 +- plugins/lookup/flattened.py | 2 +- plugins/lookup/hiera.py | 2 +- plugins/lookup/manifold.py | 8 ++-- plugins/lookup/onepassword.py | 2 +- plugins/lookup/onepassword_raw.py | 2 +- plugins/lookup/passwordstore.py | 2 +- plugins/lookup/shelvefile.py | 4 +- .../modules/cloud/alicloud/ali_instance.py | 18 +++---- .../modules/cloud/atomic/atomic_container.py | 6 +-- plugins/modules/cloud/atomic/atomic_image.py | 2 +- .../cloud/centurylink/clc_aa_policy.py | 10 ++-- .../cloud/centurylink/clc_alert_policy.py | 6 +-- .../centurylink/clc_blueprint_package.py | 10 ++-- .../cloud/centurylink/clc_firewall_policy.py | 8 ++-- .../modules/cloud/centurylink/clc_group.py | 16 +++---- .../cloud/centurylink/clc_loadbalancer.py | 6 +-- .../cloud/centurylink/clc_modify_server.py | 2 +- .../modules/cloud/centurylink/clc_publicip.py | 6 +-- .../cloud/centurylink/clc_server_snapshot.py | 14 +++--- plugins/modules/cloud/huawei/hwc_vpc_eip.py | 2 +- plugins/modules/cloud/huawei/hwc_vpc_port.py | 2 +- .../cloud/huawei/hwc_vpc_private_ip.py | 2 +- .../modules/cloud/huawei/hwc_vpc_subnet.py | 2 +- plugins/modules/cloud/linode/linode.py | 12 ++--- plugins/modules/cloud/lxc/lxc_container.py | 2 +- .../modules/cloud/memset/memset_dns_reload.py | 2 +- .../cloud/memset/memset_zone_record.py | 2 +- plugins/modules/cloud/misc/proxmox_kvm.py | 2 +- plugins/modules/cloud/opennebula/one_vm.py | 2 +- plugins/modules/cloud/packet/packet_device.py | 2 +- .../modules/cloud/packet/packet_ip_subnet.py | 14 +++--- .../modules/cloud/packet/packet_project.py | 2 +- plugins/modules/cloud/packet/packet_sshkey.py | 2 +- plugins/modules/cloud/packet/packet_volume.py | 6 +-- plugins/modules/cloud/rackspace/rax.py | 4 +- plugins/modules/cloud/rackspace/rax_cbs.py | 2 +- .../cloud/rackspace/rax_cbs_attachments.py | 2 +- plugins/modules/cloud/rackspace/rax_cdb.py | 2 +- plugins/modules/cloud/rackspace/rax_clb.py | 2 +- plugins/modules/cloud/rackspace/rax_dns.py | 2 +- .../modules/cloud/rackspace/rax_dns_record.py | 6 +-- plugins/modules/cloud/rackspace/rax_facts.py | 2 +- .../cloud/rackspace/rax_files_objects.py | 2 +- .../modules/cloud/rackspace/rax_identity.py | 2 +- .../modules/cloud/rackspace/rax_keypair.py | 4 +- plugins/modules/cloud/rackspace/rax_meta.py | 2 +- .../modules/cloud/rackspace/rax_mon_alarm.py | 2 +- .../modules/cloud/rackspace/rax_mon_check.py | 2 +- .../modules/cloud/rackspace/rax_mon_entity.py | 2 +- .../cloud/rackspace/rax_mon_notification.py | 2 +- .../rackspace/rax_mon_notification_plan.py | 2 +- .../modules/cloud/rackspace/rax_network.py | 2 +- plugins/modules/cloud/rackspace/rax_queue.py | 2 +- plugins/modules/cloud/smartos/nictagadm.py | 4 +- plugins/modules/cloud/softlayer/sl_vm.py | 2 +- .../spotinst/spotinst_aws_elastigroup.py | 16 +++---- plugins/modules/cloud/univention/udm_share.py | 2 +- .../modules/clustering/consul/consul_acl.py | 2 +- .../modules/clustering/consul/consul_kv.py | 2 +- .../clustering/consul/consul_session.py | 2 +- .../modules/clustering/pacemaker_cluster.py | 2 +- .../aerospike/aerospike_migrations.py | 30 ++++++------ .../database/influxdb/influxdb_user.py | 2 +- .../database/misc/elasticsearch_plugin.py | 8 ++-- .../modules/database/misc/kibana_plugin.py | 2 +- .../modules/database/saphana/hana_query.py | 4 +- plugins/modules/files/iso_create.py | 4 +- plugins/modules/identity/ipa/ipa_host.py | 6 +-- plugins/modules/identity/ipa/ipa_vault.py | 4 +- .../identity/keycloak/keycloak_client.py | 40 ++++++++-------- .../identity/keycloak/keycloak_clientscope.py | 6 +-- .../keycloak/keycloak_clienttemplate.py | 8 ++-- plugins/modules/identity/onepassword_info.py | 10 ++-- plugins/modules/monitoring/bigpanda.py | 2 +- plugins/modules/monitoring/icinga2_feature.py | 2 +- plugins/modules/monitoring/logstash_plugin.py | 2 +- .../modules/monitoring/sensu/sensu_handler.py | 2 +- .../monitoring/statusio_maintenance.py | 8 ++-- plugins/modules/net_tools/cloudflare_dns.py | 6 +-- plugins/modules/net_tools/dnsmadeeasy.py | 6 +-- plugins/modules/net_tools/netcup_dns.py | 16 +++---- .../modules/net_tools/pritunl/pritunl_org.py | 6 +-- .../net_tools/pritunl/pritunl_org_info.py | 18 +++---- plugins/modules/notification/catapult.py | 2 +- plugins/modules/notification/mattermost.py | 4 +- plugins/modules/notification/mqtt.py | 2 +- plugins/modules/notification/rocketchat.py | 4 +- plugins/modules/notification/slack.py | 4 +- plugins/modules/notification/syslogger.py | 6 +-- plugins/modules/notification/telegram.py | 6 +-- plugins/modules/packaging/language/cpanm.py | 2 +- .../packaging/language/pip_package_info.py | 2 +- plugins/modules/packaging/os/homebrew_cask.py | 4 +- .../modules/packaging/os/rhsm_repository.py | 2 +- .../modules/packaging/os/rpm_ostree_pkg.py | 2 +- .../manageiq/manageiq_alert_profiles.py | 4 +- .../manageiq/manageiq_alerts.py | 8 ++-- .../manageiq/manageiq_group.py | 6 +-- .../manageiq/manageiq_policies.py | 6 +-- .../manageiq/manageiq_tags.py | 8 ++-- .../manageiq/manageiq_tenant.py | 10 ++-- .../manageiq/manageiq_user.py | 12 ++--- .../redfish/redfish_command.py | 4 +- .../redfish/redfish_config.py | 6 +-- .../remote_management/stacki/stacki_host.py | 8 ++-- .../bitbucket/bitbucket_pipeline_variable.py | 4 +- .../source_control/github/github_key.py | 6 +-- .../source_control/github/github_webhook.py | 2 +- .../source_control/gitlab/gitlab_group.py | 8 ++-- .../source_control/gitlab/gitlab_project.py | 10 ++-- .../gitlab/gitlab_project_members.py | 4 +- .../source_control/gitlab/gitlab_runner.py | 24 +++++----- .../source_control/gitlab/gitlab_user.py | 10 ++-- plugins/modules/storage/pmem/pmem.py | 6 +-- plugins/modules/storage/zfs/zfs_facts.py | 4 +- plugins/modules/storage/zfs/zpool_facts.py | 4 +- plugins/modules/system/beadm.py | 4 +- plugins/modules/system/java_cert.py | 4 +- plugins/modules/system/nosh.py | 6 +-- plugins/modules/system/parted.py | 2 +- plugins/modules/system/solaris_zone.py | 2 +- plugins/modules/system/syspatch.py | 2 +- .../web_infrastructure/apache2_module.py | 10 ++-- .../web_infrastructure/deploy_helper.py | 4 +- .../modules/web_infrastructure/jenkins_job.py | 4 +- .../web_infrastructure/jenkins_job_info.py | 2 +- .../web_infrastructure/rundeck_acl_policy.py | 6 +-- .../web_infrastructure/rundeck_project.py | 6 +-- .../sophos_utm/utm_ca_host_key_cert.py | 2 +- .../sophos_utm/utm_dns_host.py | 4 +- .../sophos_utm/utm_proxy_auth_profile.py | 10 ++-- .../sophos_utm/utm_proxy_exception.py | 48 +++++++++---------- .../sophos_utm/utm_proxy_frontend.py | 16 +++---- .../sophos_utm/utm_proxy_location.py | 8 ++-- .../modules/web_infrastructure/taiga_issue.py | 6 +-- 170 files changed, 465 insertions(+), 465 deletions(-) diff --git a/plugins/become/doas.py b/plugins/become/doas.py index d282e96851..69e730aad4 100644 --- a/plugins/become/doas.py +++ b/plugins/become/doas.py @@ -55,7 +55,7 @@ DOCUMENTATION = ''' - name: ANSIBLE_DOAS_FLAGS become_pass: description: password for doas prompt - required: False + required: false vars: - name: ansible_become_password - name: ansible_become_pass diff --git a/plugins/become/dzdo.py b/plugins/become/dzdo.py index b3c34f377c..a358e84e39 100644 --- a/plugins/become/dzdo.py +++ b/plugins/become/dzdo.py @@ -55,7 +55,7 @@ DOCUMENTATION = ''' - name: ANSIBLE_DZDO_FLAGS become_pass: description: Options to pass to dzdo - required: False + required: false vars: - name: ansible_become_password - name: ansible_become_pass diff --git a/plugins/become/ksu.py b/plugins/become/ksu.py index 29731d95d5..fa2f66864a 100644 --- a/plugins/become/ksu.py +++ b/plugins/become/ksu.py @@ -25,7 +25,7 @@ DOCUMENTATION = ''' env: - name: ANSIBLE_BECOME_USER - name: ANSIBLE_KSU_USER - required: True + required: true become_exe: description: Su executable default: ksu @@ -56,7 +56,7 @@ DOCUMENTATION = ''' - name: ANSIBLE_KSU_FLAGS become_pass: description: ksu password - required: False + required: false vars: - name: ansible_ksu_pass - name: ansible_become_pass diff --git a/plugins/become/machinectl.py b/plugins/become/machinectl.py index 4b533baba0..3e13dfc2a5 100644 --- a/plugins/become/machinectl.py +++ b/plugins/become/machinectl.py @@ -56,7 +56,7 @@ DOCUMENTATION = ''' - name: ANSIBLE_MACHINECTL_FLAGS become_pass: description: Password for machinectl - required: False + required: false vars: - name: ansible_become_password - name: ansible_become_pass diff --git a/plugins/become/pbrun.py b/plugins/become/pbrun.py index 3645e95fec..7d1437191e 100644 --- a/plugins/become/pbrun.py +++ b/plugins/become/pbrun.py @@ -56,7 +56,7 @@ DOCUMENTATION = ''' - name: ANSIBLE_PBRUN_FLAGS become_pass: description: Password for pbrun - required: False + required: false vars: - name: ansible_become_password - name: ansible_become_pass @@ -69,7 +69,7 @@ DOCUMENTATION = ''' key: password wrap_exe: description: Toggle to wrap the command pbrun calls in 'shell -c' or not - default: False + default: false type: bool ini: - section: pbrun_become_plugin diff --git a/plugins/become/pfexec.py b/plugins/become/pfexec.py index f14c22e68f..43237342d4 100644 --- a/plugins/become/pfexec.py +++ b/plugins/become/pfexec.py @@ -59,7 +59,7 @@ DOCUMENTATION = ''' - name: ANSIBLE_PFEXEC_FLAGS become_pass: description: pfexec password - required: False + required: false vars: - name: ansible_become_password - name: ansible_become_pass @@ -72,7 +72,7 @@ DOCUMENTATION = ''' key: password wrap_exe: description: Toggle to wrap the command pfexec calls in 'shell -c' or not - default: False + default: false type: bool ini: - section: pfexec_become_plugin diff --git a/plugins/become/pmrun.py b/plugins/become/pmrun.py index bb384aeedf..74b633f09a 100644 --- a/plugins/become/pmrun.py +++ b/plugins/become/pmrun.py @@ -42,7 +42,7 @@ DOCUMENTATION = ''' - name: ANSIBLE_PMRUN_FLAGS become_pass: description: pmrun password - required: False + required: false vars: - name: ansible_become_password - name: ansible_become_pass diff --git a/plugins/become/sesu.py b/plugins/become/sesu.py index 751163d19e..5958c1bfca 100644 --- a/plugins/become/sesu.py +++ b/plugins/become/sesu.py @@ -56,7 +56,7 @@ DOCUMENTATION = ''' - name: ANSIBLE_SESU_FLAGS become_pass: description: Password to pass to sesu - required: False + required: false vars: - name: ansible_become_password - name: ansible_become_pass diff --git a/plugins/cache/pickle.py b/plugins/cache/pickle.py index 10295bb5d2..06b673921e 100644 --- a/plugins/cache/pickle.py +++ b/plugins/cache/pickle.py @@ -16,7 +16,7 @@ DOCUMENTATION = ''' author: Brian Coca (@bcoca) options: _uri: - required: True + required: true description: - Path in which the cache plugin will save the files env: diff --git a/plugins/cache/redis.py b/plugins/cache/redis.py index 121f9b22f4..81e960cf18 100644 --- a/plugins/cache/redis.py +++ b/plugins/cache/redis.py @@ -21,7 +21,7 @@ DOCUMENTATION = ''' - The format is C(host:port:db:password), for example C(localhost:6379:0:changeme). - To use encryption in transit, prefix the connection with C(tls://), as in C(tls://localhost:6379:0:changeme). - To use redis sentinel, use separator C(;), for example C(localhost:26379;localhost:26379;0:changeme). Requires redis>=2.9.0. - required: True + required: true env: - name: ANSIBLE_CACHE_PLUGIN_CONNECTION ini: diff --git a/plugins/cache/yaml.py b/plugins/cache/yaml.py index 08620816b6..3a5ddf3e6f 100644 --- a/plugins/cache/yaml.py +++ b/plugins/cache/yaml.py @@ -16,7 +16,7 @@ DOCUMENTATION = ''' author: Brian Coca (@bcoca) options: _uri: - required: True + required: true description: - Path in which the cache plugin will save the files env: diff --git a/plugins/callback/cgroup_memory_recap.py b/plugins/callback/cgroup_memory_recap.py index a894336c8f..eedacfeecb 100644 --- a/plugins/callback/cgroup_memory_recap.py +++ b/plugins/callback/cgroup_memory_recap.py @@ -23,7 +23,7 @@ DOCUMENTATION = ''' - To create the cgroup, first use a command such as C(sudo cgcreate -a ec2-user:ec2-user -t ec2-user:ec2-user -g memory:ansible_profile) options: max_mem_file: - required: True + required: true description: Path to cgroups C(memory.max_usage_in_bytes) file. Example C(/sys/fs/cgroup/memory/ansible_profile/memory.max_usage_in_bytes) env: - name: CGROUP_MAX_MEM_FILE @@ -31,7 +31,7 @@ DOCUMENTATION = ''' - section: callback_cgroupmemrecap key: max_mem_file cur_mem_file: - required: True + required: true description: Path to C(memory.usage_in_bytes) file. Example C(/sys/fs/cgroup/memory/ansible_profile/memory.usage_in_bytes) env: - name: CGROUP_CUR_MEM_FILE diff --git a/plugins/callback/diy.py b/plugins/callback/diy.py index f62bc15440..55a07725f2 100644 --- a/plugins/callback/diy.py +++ b/plugins/callback/diy.py @@ -713,7 +713,7 @@ playbook.yml: > - name: Using alias vars (see ansible.cfg) ansible.builtin.debug: msg: - when: False + when: false vars: ansible_callback_diy_playbook_on_task_start_msg: "" on_skipped_msg: "DIY output(via task vars): skipped example:\n\e[0m\e[38;5;4m\u25b6\u25b6 {{ ansible_callback_diy.result.task.name }}\n" diff --git a/plugins/callback/hipchat.py b/plugins/callback/hipchat.py index dc70789dbe..3e10b69e7f 100644 --- a/plugins/callback/hipchat.py +++ b/plugins/callback/hipchat.py @@ -21,7 +21,7 @@ DOCUMENTATION = ''' options: token: description: HipChat API token for v1 or v2 API. - required: True + required: true env: - name: HIPCHAT_TOKEN ini: @@ -29,7 +29,7 @@ DOCUMENTATION = ''' key: token api_version: description: HipChat API version, v1 or v2. - required: False + required: false default: v1 env: - name: HIPCHAT_API_VERSION @@ -55,7 +55,7 @@ DOCUMENTATION = ''' notify: description: Add notify flag to important messages type: bool - default: True + default: true env: - name: HIPCHAT_NOTIFY ini: diff --git a/plugins/callback/jabber.py b/plugins/callback/jabber.py index 3fd0b6fb97..823ae20144 100644 --- a/plugins/callback/jabber.py +++ b/plugins/callback/jabber.py @@ -20,22 +20,22 @@ DOCUMENTATION = ''' options: server: description: connection info to jabber server - required: True + required: true env: - name: JABBER_SERV user: description: Jabber user to authenticate as - required: True + required: true env: - name: JABBER_USER password: description: Password for the user to the jabber server - required: True + required: true env: - name: JABBER_PASS to: description: chat identifier that will receive the message - required: True + required: true env: - name: JABBER_TO ''' diff --git a/plugins/callback/logdna.py b/plugins/callback/logdna.py index c84054c592..ee0a1eb022 100644 --- a/plugins/callback/logdna.py +++ b/plugins/callback/logdna.py @@ -18,7 +18,7 @@ DOCUMENTATION = ''' - whitelisting in configuration options: conf_key: - required: True + required: true description: LogDNA Ingestion Key type: string env: @@ -27,7 +27,7 @@ DOCUMENTATION = ''' - section: callback_logdna key: conf_key plugin_ignore_errors: - required: False + required: false description: Whether to ignore errors on failing or not type: boolean env: @@ -35,9 +35,9 @@ DOCUMENTATION = ''' ini: - section: callback_logdna key: plugin_ignore_errors - default: False + default: false conf_hostname: - required: False + required: false description: Alternative Host Name; the current host name by default type: string env: @@ -46,7 +46,7 @@ DOCUMENTATION = ''' - section: callback_logdna key: conf_hostname conf_tags: - required: False + required: false description: Tags type: string env: diff --git a/plugins/callback/logentries.py b/plugins/callback/logentries.py index 945757edd6..d40939b0ab 100644 --- a/plugins/callback/logentries.py +++ b/plugins/callback/logentries.py @@ -48,7 +48,7 @@ DOCUMENTATION = ''' description: The logentries "TCP token" env: - name: LOGENTRIES_ANSIBLE_TOKEN - required: True + required: true ini: - section: callback_logentries key: token @@ -57,7 +57,7 @@ DOCUMENTATION = ''' - Toggle to decide whether to use TLS to encrypt the communications with the API server env: - name: LOGENTRIES_USE_TLS - default: False + default: false type: boolean ini: - section: callback_logentries @@ -65,7 +65,7 @@ DOCUMENTATION = ''' flatten: description: flatten complex data structures into a single dictionary with complex keys type: boolean - default: False + default: false env: - name: LOGENTRIES_FLATTEN ini: diff --git a/plugins/callback/selective.py b/plugins/callback/selective.py index 78c28ec7a5..6476f5ba53 100644 --- a/plugins/callback/selective.py +++ b/plugins/callback/selective.py @@ -21,7 +21,7 @@ DOCUMENTATION = ''' - If you increase verbosity all tasks are printed. options: nocolor: - default: False + default: false description: This setting allows suppressing colorizing output env: - name: ANSIBLE_NOCOLOR diff --git a/plugins/callback/slack.py b/plugins/callback/slack.py index 46340ee44c..6ca15b43f5 100644 --- a/plugins/callback/slack.py +++ b/plugins/callback/slack.py @@ -21,7 +21,7 @@ DOCUMENTATION = ''' - Before 2.4 only environment variables were available for configuring this plugin options: webhook_url: - required: True + required: true description: Slack Webhook URL env: - name: SLACK_WEBHOOK_URL @@ -51,7 +51,7 @@ DOCUMENTATION = ''' ini: - section: callback_slack key: validate_certs - default: True + default: true type: bool ''' diff --git a/plugins/doc_fragments/ibm_storage.py b/plugins/doc_fragments/ibm_storage.py index ec3b0a0e05..ff38c3fc7c 100644 --- a/plugins/doc_fragments/ibm_storage.py +++ b/plugins/doc_fragments/ibm_storage.py @@ -18,17 +18,17 @@ options: description: - Management user on the spectrum accelerate storage system. type: str - required: True + required: true password: description: - Password for username on the spectrum accelerate storage system. type: str - required: True + required: true endpoints: description: - The hostname or management IP of Spectrum Accelerate storage system. type: str - required: True + required: true notes: - This module requires pyxcli python library. Use 'pip install pyxcli' in order to get pyxcli. diff --git a/plugins/doc_fragments/oracle_creatable_resource.py b/plugins/doc_fragments/oracle_creatable_resource.py index 7c1551ec06..5293819199 100644 --- a/plugins/doc_fragments/oracle_creatable_resource.py +++ b/plugins/doc_fragments/oracle_creatable_resource.py @@ -15,7 +15,7 @@ class ModuleDocFragment(object): idempotent operation, and doesn't create the resource if it already exists. Setting this option to true, forcefully creates a copy of the resource, even if it already exists.This option is mutually exclusive with I(key_by). - default: False + default: false type: bool key_by: description: The list of comma-separated attributes of this resource which should be used to uniquely diff --git a/plugins/inventory/gitlab_runners.py b/plugins/inventory/gitlab_runners.py index 0b7dff079c..d68b8d4e28 100644 --- a/plugins/inventory/gitlab_runners.py +++ b/plugins/inventory/gitlab_runners.py @@ -66,7 +66,7 @@ host: https://gitlab.com # Example using constructed features to create groups and set ansible_host plugin: community.general.gitlab_runners host: https://gitlab.com -strict: False +strict: false keyed_groups: # add e.g. amd64 hosts to an arch_amd64 group - prefix: arch diff --git a/plugins/inventory/nmap.py b/plugins/inventory/nmap.py index 3c3b3f8e41..01a5fa04ba 100644 --- a/plugins/inventory/nmap.py +++ b/plugins/inventory/nmap.py @@ -20,7 +20,7 @@ DOCUMENTATION = ''' options: plugin: description: token that ensures this is a source file for the 'nmap' plugin. - required: True + required: true choices: ['nmap', 'community.general.nmap'] sudo: description: Set to C(true) to execute a C(sudo nmap) plugin scan. @@ -29,7 +29,7 @@ DOCUMENTATION = ''' type: boolean address: description: Network IP or range of IPs to scan, you can use a simple range (10.2.2.15-25) or CIDR notation. - required: True + required: true exclude: description: list of addresses to exclude type: list @@ -37,15 +37,15 @@ DOCUMENTATION = ''' ports: description: Enable/disable scanning for open ports type: boolean - default: True + default: true ipv4: description: use IPv4 type addresses type: boolean - default: True + default: true ipv6: description: use IPv6 type addresses type: boolean - default: True + default: true notes: - At least one of ipv4 or ipv6 is required to be True, both can be True, but they cannot both be False. - 'TODO: add OS fingerprinting' @@ -53,14 +53,14 @@ DOCUMENTATION = ''' EXAMPLES = ''' # inventory.config file in YAML format plugin: community.general.nmap -strict: False +strict: false address: 192.168.0.0/24 # a sudo nmap scan to fully use nmap scan power. plugin: community.general.nmap sudo: true -strict: False +strict: false address: 192.168.0.0/24 ''' diff --git a/plugins/inventory/online.py b/plugins/inventory/online.py index f0424ea5e8..261548d8a2 100644 --- a/plugins/inventory/online.py +++ b/plugins/inventory/online.py @@ -16,10 +16,10 @@ DOCUMENTATION = r''' options: plugin: description: token that ensures this is a source file for the 'online' plugin. - required: True + required: true choices: ['online', 'community.general.online'] oauth_token: - required: True + required: true description: Online OAuth token. env: # in order of precedence diff --git a/plugins/inventory/opennebula.py b/plugins/inventory/opennebula.py index f46ad73c57..603920edc2 100644 --- a/plugins/inventory/opennebula.py +++ b/plugins/inventory/opennebula.py @@ -34,7 +34,7 @@ DOCUMENTATION = r''' - If not set then the value of the C(ONE_URL) environment variable is used. env: - name: ONE_URL - required: True + required: true type: string api_username: description: @@ -49,7 +49,7 @@ DOCUMENTATION = r''' - If not set, the value of the C(ONE_PASSWORD) environment variable is used. env: - name: ONE_PASSWORD - required: False + required: false type: string api_authfile: description: @@ -58,7 +58,7 @@ DOCUMENTATION = r''' - Set environment variable C(ONE_AUTH) to override this path. env: - name: ONE_AUTH - required: False + required: false type: string hostname: description: Field to match the hostname. Note C(v4_first_ip) corresponds to the first IPv4 found on VM. @@ -74,7 +74,7 @@ DOCUMENTATION = r''' group_by_labels: description: Create host groups by vm labels type: bool - default: True + default: true ''' EXAMPLES = r''' diff --git a/plugins/inventory/scaleway.py b/plugins/inventory/scaleway.py index 4404038270..6aacc9f665 100644 --- a/plugins/inventory/scaleway.py +++ b/plugins/inventory/scaleway.py @@ -19,7 +19,7 @@ DOCUMENTATION = r''' options: plugin: description: Token that ensures this is a source file for the 'scaleway' plugin. - required: True + required: true choices: ['scaleway', 'community.general.scaleway'] regions: description: Filter results on a specific Scaleway region. diff --git a/plugins/inventory/virtualbox.py b/plugins/inventory/virtualbox.py index a8d186bb30..829fc7b971 100644 --- a/plugins/inventory/virtualbox.py +++ b/plugins/inventory/virtualbox.py @@ -20,12 +20,12 @@ DOCUMENTATION = ''' options: plugin: description: token that ensures this is a source file for the 'virtualbox' plugin - required: True + required: true choices: ['virtualbox', 'community.general.virtualbox'] running_only: description: toggles showing all vms vs only those currently running type: boolean - default: False + default: false settings_password_file: description: provide a file containing the settings password (equivalent to --settingspwfile) network_info_path: diff --git a/plugins/lookup/cartesian.py b/plugins/lookup/cartesian.py index 6d98c271ee..516d153389 100644 --- a/plugins/lookup/cartesian.py +++ b/plugins/lookup/cartesian.py @@ -18,7 +18,7 @@ DOCUMENTATION = ''' _raw: description: - a set of lists - required: True + required: true ''' EXAMPLES = """ diff --git a/plugins/lookup/chef_databag.py b/plugins/lookup/chef_databag.py index 04ef7ee41d..b14d924ae8 100644 --- a/plugins/lookup/chef_databag.py +++ b/plugins/lookup/chef_databag.py @@ -22,11 +22,11 @@ DOCUMENTATION = ''' name: description: - Name of the databag - required: True + required: true item: description: - Item to fetch - required: True + required: true ''' EXAMPLES = """ diff --git a/plugins/lookup/consul_kv.py b/plugins/lookup/consul_kv.py index 794df197fc..2d4a202d94 100644 --- a/plugins/lookup/consul_kv.py +++ b/plugins/lookup/consul_kv.py @@ -25,7 +25,7 @@ DOCUMENTATION = ''' recurse: type: boolean description: If true, will retrieve all the values that have the given key as prefix. - default: False + default: false index: description: - If the key has a value with the specified index then this is returned allowing access to historical values. @@ -56,7 +56,7 @@ DOCUMENTATION = ''' - Whether to use http or https. - If you use C(ANSIBLE_CONSUL_URL) this value will be used from there. validate_certs: - default: True + default: true description: Whether to verify the ssl connection or not. env: - name: ANSIBLE_CONSUL_VALIDATE_CERTS diff --git a/plugins/lookup/cyberarkpassword.py b/plugins/lookup/cyberarkpassword.py index a0e36d3efe..00dd81d7f7 100644 --- a/plugins/lookup/cyberarkpassword.py +++ b/plugins/lookup/cyberarkpassword.py @@ -22,10 +22,10 @@ DOCUMENTATION = ''' default: '/opt/CARKaim/sdk/clipasswordsdk' appid: description: Defines the unique ID of the application that is issuing the password request. - required: True + required: true query: description: Describes the filter criteria for the password retrieval. - required: True + required: true output: description: - Specifies the desired output fields separated by commas. diff --git a/plugins/lookup/dnstxt.py b/plugins/lookup/dnstxt.py index 7f4516ce5b..abf3e64b60 100644 --- a/plugins/lookup/dnstxt.py +++ b/plugins/lookup/dnstxt.py @@ -17,7 +17,7 @@ DOCUMENTATION = ''' options: _terms: description: domain or list of domains to query TXT records from - required: True + required: true type: list elements: string ''' diff --git a/plugins/lookup/etcd.py b/plugins/lookup/etcd.py index 8f7c4954d1..d6a12293e3 100644 --- a/plugins/lookup/etcd.py +++ b/plugins/lookup/etcd.py @@ -21,7 +21,7 @@ DOCUMENTATION = ''' - the list of keys to lookup on the etcd server type: list elements: string - required: True + required: true url: description: - Environment variable with the url for the etcd server @@ -37,7 +37,7 @@ DOCUMENTATION = ''' validate_certs: description: - toggle checking that the ssl certificates are valid, you normally only want to turn this off with self-signed certs. - default: True + default: true type: boolean ''' diff --git a/plugins/lookup/etcd3.py b/plugins/lookup/etcd3.py index 901d602174..df41d791e8 100644 --- a/plugins/lookup/etcd3.py +++ b/plugins/lookup/etcd3.py @@ -24,12 +24,12 @@ DOCUMENTATION = ''' - The list of keys (or key prefixes) to look up on the etcd3 server. type: list elements: str - required: True + required: true prefix: description: - Look for key or prefix key. type: bool - default: False + default: false endpoints: description: - Counterpart of C(ETCDCTL_ENDPOINTS) environment variable. diff --git a/plugins/lookup/filetree.py b/plugins/lookup/filetree.py index 024b031a1d..13b3d71e43 100644 --- a/plugins/lookup/filetree.py +++ b/plugins/lookup/filetree.py @@ -18,7 +18,7 @@ description: options: _terms: description: path(s) of files to read - required: True + required: true ''' EXAMPLES = r""" diff --git a/plugins/lookup/flattened.py b/plugins/lookup/flattened.py index 0e802d369c..25098fa23a 100644 --- a/plugins/lookup/flattened.py +++ b/plugins/lookup/flattened.py @@ -15,7 +15,7 @@ DOCUMENTATION = ''' options: _terms: description: lists to flatten - required: True + required: true notes: - unlike 'items' which only flattens 1 level, this plugin will continue to flatten until it cannot find lists anymore. - aka highlander plugin, there can only be one (list). diff --git a/plugins/lookup/hiera.py b/plugins/lookup/hiera.py index d3aa8b99b4..055d16133b 100644 --- a/plugins/lookup/hiera.py +++ b/plugins/lookup/hiera.py @@ -21,7 +21,7 @@ DOCUMENTATION = ''' - The list of keys to lookup on the Puppetmaster type: list elements: string - required: True + required: true _bin_file: description: - Binary file to execute Hiera diff --git a/plugins/lookup/manifold.py b/plugins/lookup/manifold.py index f83104d93b..9d2913063a 100644 --- a/plugins/lookup/manifold.py +++ b/plugins/lookup/manifold.py @@ -20,24 +20,24 @@ DOCUMENTATION = ''' matched resources will be returned. type: list elements: string - required: False + required: false api_token: description: - manifold API token type: string - required: True + required: true env: - name: MANIFOLD_API_TOKEN project: description: - The project label you want to get the resource for. type: string - required: False + required: false team: description: - The team label you want to get the resource for. type: string - required: False + required: false ''' EXAMPLES = ''' diff --git a/plugins/lookup/onepassword.py b/plugins/lookup/onepassword.py index b6b9374eba..42e07e9cbf 100644 --- a/plugins/lookup/onepassword.py +++ b/plugins/lookup/onepassword.py @@ -22,7 +22,7 @@ DOCUMENTATION = ''' options: _terms: description: identifier(s) (UUID, name, or subdomain; case-insensitive) of item(s) to retrieve. - required: True + required: true field: description: field to return from each matching item (case-insensitive). default: 'password' diff --git a/plugins/lookup/onepassword_raw.py b/plugins/lookup/onepassword_raw.py index d9abaf645e..9a1e0741a0 100644 --- a/plugins/lookup/onepassword_raw.py +++ b/plugins/lookup/onepassword_raw.py @@ -22,7 +22,7 @@ DOCUMENTATION = ''' options: _terms: description: identifier(s) (UUID, name, or domain; case-insensitive) of item(s) to retrieve. - required: True + required: true master_password: description: The password used to unlock the specified vault. aliases: ['vault_password'] diff --git a/plugins/lookup/passwordstore.py b/plugins/lookup/passwordstore.py index 7cdc72de23..ce1f4ee852 100644 --- a/plugins/lookup/passwordstore.py +++ b/plugins/lookup/passwordstore.py @@ -20,7 +20,7 @@ DOCUMENTATION = ''' options: _terms: description: query key. - required: True + required: true passwordstore: description: - Location of the password store. diff --git a/plugins/lookup/shelvefile.py b/plugins/lookup/shelvefile.py index ee84a40027..c1aaef83ce 100644 --- a/plugins/lookup/shelvefile.py +++ b/plugins/lookup/shelvefile.py @@ -17,10 +17,10 @@ DOCUMENTATION = ''' description: sets of key value pairs of parameters key: description: key to query - required: True + required: true file: description: path to shelve file - required: True + required: true ''' EXAMPLES = """ diff --git a/plugins/modules/cloud/alicloud/ali_instance.py b/plugins/modules/cloud/alicloud/ali_instance.py index f36e67d551..40fced0866 100644 --- a/plugins/modules/cloud/alicloud/ali_instance.py +++ b/plugins/modules/cloud/alicloud/ali_instance.py @@ -101,7 +101,7 @@ options: description: - Specifies whether to add sequential suffixes to the host_name. The sequential suffix ranges from 001 to 999. - default: False + default: false type: bool version_added: '0.2.0' password: @@ -143,7 +143,7 @@ options: allocate_public_ip: description: - Whether allocate a public ip for the new instance. - default: False + default: false aliases: [ 'assign_public_ip' ] type: bool instance_charge_type: @@ -162,7 +162,7 @@ options: description: - Whether automate renew the charge of the instance. type: bool - default: False + default: false auto_renew_period: description: - The duration of the automatic renew the charge of the instance. Required when I(auto_renew=true). @@ -177,7 +177,7 @@ options: force: description: - Whether the current operation needs to be execute forcibly. - default: False + default: false type: bool tags: description: @@ -189,7 +189,7 @@ options: description: - Delete any tags not specified in the task that are on the instance. If True, it means you have to specify all the desired tags on each task affecting an instance. - default: False + default: false type: bool version_added: '0.2.0' key_name: @@ -236,13 +236,13 @@ options: required parameters are set, and validates the request format, service permissions, and available ECS instances. If the validation fails, the corresponding error code is returned. If the validation succeeds, the DryRunOperation error code is returned. - If I(dry_run=false), A request is sent. If the validation succeeds, the instance is created. - default: False + default: false type: bool version_added: '0.2.0' include_data_disks: description: - Whether to change instance disks charge type when changing instance charge type. - default: True + default: true type: bool version_added: '0.2.0' author: @@ -265,7 +265,7 @@ EXAMPLES = ''' image: ubuntu1404_64_40G_cloudinit_20160727.raw instance_type: ecs.n4.small vswitch_id: vsw-abcd1234 - assign_public_ip: True + assign_public_ip: true max_bandwidth_out: 10 host_name: myhost password: mypassword @@ -275,7 +275,7 @@ EXAMPLES = ''' security_groups: ["sg-f2rwnfh23r"] instance_ids: ["i-abcd12346", "i-abcd12345"] - force: True + force: true tasks: - name: Launch ECS instance in VPC network diff --git a/plugins/modules/cloud/atomic/atomic_container.py b/plugins/modules/cloud/atomic/atomic_container.py index 467dd08767..586b1254c2 100644 --- a/plugins/modules/cloud/atomic/atomic_container.py +++ b/plugins/modules/cloud/atomic/atomic_container.py @@ -26,18 +26,18 @@ options: backend: description: - Define the backend to use for the container. - required: True + required: true choices: ["docker", "ostree"] type: str name: description: - Name of the container. - required: True + required: true type: str image: description: - The image to use to install the container. - required: True + required: true type: str rootfs: description: diff --git a/plugins/modules/cloud/atomic/atomic_image.py b/plugins/modules/cloud/atomic/atomic_image.py index 4016387c64..2705304f01 100644 --- a/plugins/modules/cloud/atomic/atomic_image.py +++ b/plugins/modules/cloud/atomic/atomic_image.py @@ -31,7 +31,7 @@ options: name: description: - Name of the container image. - required: True + required: true type: str state: description: diff --git a/plugins/modules/cloud/centurylink/clc_aa_policy.py b/plugins/modules/cloud/centurylink/clc_aa_policy.py index 41a1a96663..d5d56b2a65 100644 --- a/plugins/modules/cloud/centurylink/clc_aa_policy.py +++ b/plugins/modules/cloud/centurylink/clc_aa_policy.py @@ -19,17 +19,17 @@ options: description: - The name of the Anti Affinity Policy. type: str - required: True + required: true location: description: - Datacenter in which the policy lives/should live. type: str - required: True + required: true state: description: - Whether to create or delete the policy. type: str - required: False + required: false default: present choices: ['present','absent'] requirements: @@ -55,7 +55,7 @@ EXAMPLES = ''' --- - name: Create AA Policy hosts: localhost - gather_facts: False + gather_facts: false connection: local tasks: - name: Create an Anti Affinity Policy @@ -71,7 +71,7 @@ EXAMPLES = ''' - name: Delete AA Policy hosts: localhost - gather_facts: False + gather_facts: false connection: local tasks: - name: Delete an Anti Affinity Policy diff --git a/plugins/modules/cloud/centurylink/clc_alert_policy.py b/plugins/modules/cloud/centurylink/clc_alert_policy.py index 95945703d1..c7f02c2ffa 100644 --- a/plugins/modules/cloud/centurylink/clc_alert_policy.py +++ b/plugins/modules/cloud/centurylink/clc_alert_policy.py @@ -20,7 +20,7 @@ options: description: - The alias of your CLC Account type: str - required: True + required: true name: description: - The name of the alert policy. This is mutually exclusive with id @@ -81,7 +81,7 @@ EXAMPLES = ''' --- - name: Create Alert Policy Example hosts: localhost - gather_facts: False + gather_facts: false connection: local tasks: - name: Create an Alert Policy for disk above 80% for 5 minutes @@ -102,7 +102,7 @@ EXAMPLES = ''' - name: Delete Alert Policy Example hosts: localhost - gather_facts: False + gather_facts: false connection: local tasks: - name: Delete an Alert Policy diff --git a/plugins/modules/cloud/centurylink/clc_blueprint_package.py b/plugins/modules/cloud/centurylink/clc_blueprint_package.py index 85f3c890fe..0dc29b0ce0 100644 --- a/plugins/modules/cloud/centurylink/clc_blueprint_package.py +++ b/plugins/modules/cloud/centurylink/clc_blueprint_package.py @@ -19,24 +19,24 @@ options: description: - A list of server Ids to deploy the blue print package. type: list - required: True + required: true elements: str package_id: description: - The package id of the blue print. type: str - required: True + required: true package_params: description: - The dictionary of arguments required to deploy the blue print. type: dict default: {} - required: False + required: false state: description: - Whether to install or uninstall the package. Currently it supports only "present" for install action. type: str - required: False + required: false default: present choices: ['present'] wait: @@ -44,7 +44,7 @@ options: - Whether to wait for the tasks to finish before returning. type: str default: 'True' - required: False + required: false requirements: - python = 2.7 - requests >= 2.5.0 diff --git a/plugins/modules/cloud/centurylink/clc_firewall_policy.py b/plugins/modules/cloud/centurylink/clc_firewall_policy.py index c2bc415a30..cc77238db9 100644 --- a/plugins/modules/cloud/centurylink/clc_firewall_policy.py +++ b/plugins/modules/cloud/centurylink/clc_firewall_policy.py @@ -19,7 +19,7 @@ options: description: - Target datacenter for the firewall policy type: str - required: True + required: true state: description: - Whether to create or delete the firewall policy @@ -53,7 +53,7 @@ options: description: - CLC alias for the source account type: str - required: True + required: true destination_account_alias: description: - CLC alias for the destination account @@ -90,7 +90,7 @@ EXAMPLES = ''' --- - name: Create Firewall Policy hosts: localhost - gather_facts: False + gather_facts: false connection: local tasks: - name: Create / Verify an Firewall Policy at CenturyLink Cloud @@ -105,7 +105,7 @@ EXAMPLES = ''' - name: Delete Firewall Policy hosts: localhost - gather_facts: False + gather_facts: false connection: local tasks: - name: Delete an Firewall Policy at CenturyLink Cloud diff --git a/plugins/modules/cloud/centurylink/clc_group.py b/plugins/modules/cloud/centurylink/clc_group.py index 24e29c3e19..21e6d93d28 100644 --- a/plugins/modules/cloud/centurylink/clc_group.py +++ b/plugins/modules/cloud/centurylink/clc_group.py @@ -20,23 +20,23 @@ options: description: - The name of the Server Group type: str - required: True + required: true description: description: - A description of the Server Group type: str - required: False + required: false parent: description: - The parent group of the server group. If parent is not provided, it creates the group at top level. type: str - required: False + required: false location: description: - Datacenter to create the group in. If location is not provided, the group gets created in the default datacenter associated with the account type: str - required: False + required: false state: description: - Whether to create or delete the group @@ -47,8 +47,8 @@ options: description: - Whether to wait for the tasks to finish before returning. type: bool - default: True - required: False + default: true + required: false requirements: - python = 2.7 - requests >= 2.5.0 @@ -73,7 +73,7 @@ EXAMPLES = ''' --- - name: Create Server Group hosts: localhost - gather_facts: False + gather_facts: false connection: local tasks: - name: Create / Verify a Server Group at CenturyLink Cloud @@ -90,7 +90,7 @@ EXAMPLES = ''' # Delete a Server Group - name: Delete Server Group hosts: localhost - gather_facts: False + gather_facts: false connection: local tasks: - name: Delete / Verify Absent a Server Group at CenturyLink Cloud diff --git a/plugins/modules/cloud/centurylink/clc_loadbalancer.py b/plugins/modules/cloud/centurylink/clc_loadbalancer.py index bad07d7815..d13c2d76ce 100644 --- a/plugins/modules/cloud/centurylink/clc_loadbalancer.py +++ b/plugins/modules/cloud/centurylink/clc_loadbalancer.py @@ -20,7 +20,7 @@ options: description: - The name of the loadbalancer type: str - required: True + required: true description: description: - A description for the loadbalancer @@ -29,12 +29,12 @@ options: description: - The alias of your CLC Account type: str - required: True + required: true location: description: - The location of the datacenter where the load balancer resides in type: str - required: True + required: true method: description: -The balancing method for the load balancer pool diff --git a/plugins/modules/cloud/centurylink/clc_modify_server.py b/plugins/modules/cloud/centurylink/clc_modify_server.py index 1c133dbc6f..ff0611e3f8 100644 --- a/plugins/modules/cloud/centurylink/clc_modify_server.py +++ b/plugins/modules/cloud/centurylink/clc_modify_server.py @@ -19,7 +19,7 @@ options: description: - A list of server Ids to modify. type: list - required: True + required: true elements: str cpu: description: diff --git a/plugins/modules/cloud/centurylink/clc_publicip.py b/plugins/modules/cloud/centurylink/clc_publicip.py index 7fc4b7468b..98d392adf9 100644 --- a/plugins/modules/cloud/centurylink/clc_publicip.py +++ b/plugins/modules/cloud/centurylink/clc_publicip.py @@ -30,7 +30,7 @@ options: description: - A list of servers to create public ips on. type: list - required: True + required: true elements: str state: description: @@ -66,7 +66,7 @@ EXAMPLES = ''' - name: Add Public IP to Server hosts: localhost - gather_facts: False + gather_facts: false connection: local tasks: - name: Create Public IP For Servers @@ -86,7 +86,7 @@ EXAMPLES = ''' - name: Delete Public IP from Server hosts: localhost - gather_facts: False + gather_facts: false connection: local tasks: - name: Create Public IP For Servers diff --git a/plugins/modules/cloud/centurylink/clc_server_snapshot.py b/plugins/modules/cloud/centurylink/clc_server_snapshot.py index 471fca2c1e..44f52ece64 100644 --- a/plugins/modules/cloud/centurylink/clc_server_snapshot.py +++ b/plugins/modules/cloud/centurylink/clc_server_snapshot.py @@ -19,26 +19,26 @@ options: description: - The list of CLC server Ids. type: list - required: True + required: true elements: str expiration_days: description: - The number of days to keep the server snapshot before it expires. type: int default: 7 - required: False + required: false state: description: - The state to insure that the provided resources are in. type: str default: 'present' - required: False + required: false choices: ['present', 'absent', 'restore'] wait: description: - Whether to wait for the provisioning tasks to finish before returning. default: 'True' - required: False + required: false type: str requirements: - python = 2.7 @@ -66,7 +66,7 @@ EXAMPLES = ''' - UC1TEST-SVR01 - UC1TEST-SVR02 expiration_days: 10 - wait: True + wait: true state: present - name: Restore server snapshot @@ -74,7 +74,7 @@ EXAMPLES = ''' server_ids: - UC1TEST-SVR01 - UC1TEST-SVR02 - wait: True + wait: true state: restore - name: Delete server snapshot @@ -82,7 +82,7 @@ EXAMPLES = ''' server_ids: - UC1TEST-SVR01 - UC1TEST-SVR02 - wait: True + wait: true state: absent ''' diff --git a/plugins/modules/cloud/huawei/hwc_vpc_eip.py b/plugins/modules/cloud/huawei/hwc_vpc_eip.py index c9479981fd..a86338052e 100644 --- a/plugins/modules/cloud/huawei/hwc_vpc_eip.py +++ b/plugins/modules/cloud/huawei/hwc_vpc_eip.py @@ -135,7 +135,7 @@ EXAMPLES = ''' hwc_vpc_subnet: gateway_ip: "192.168.100.32" name: "ansible_network_subnet_test" - dhcp_enable: True + dhcp_enable: true vpc_id: "{{ vpc.id }}" cidr: "192.168.100.0/26" register: subnet diff --git a/plugins/modules/cloud/huawei/hwc_vpc_port.py b/plugins/modules/cloud/huawei/hwc_vpc_port.py index de2fd38f66..dadc76c064 100644 --- a/plugins/modules/cloud/huawei/hwc_vpc_port.py +++ b/plugins/modules/cloud/huawei/hwc_vpc_port.py @@ -119,7 +119,7 @@ EXAMPLES = ''' hwc_vpc_subnet: gateway_ip: "192.168.100.32" name: "ansible_network_subnet_test" - dhcp_enable: True + dhcp_enable: true vpc_id: "{{ vpc.id }}" cidr: "192.168.100.0/26" register: subnet diff --git a/plugins/modules/cloud/huawei/hwc_vpc_private_ip.py b/plugins/modules/cloud/huawei/hwc_vpc_private_ip.py index bcec7cf0b7..e05c14f74d 100644 --- a/plugins/modules/cloud/huawei/hwc_vpc_private_ip.py +++ b/plugins/modules/cloud/huawei/hwc_vpc_private_ip.py @@ -63,7 +63,7 @@ EXAMPLES = ''' hwc_vpc_subnet: gateway_ip: "192.168.100.32" name: "ansible_network_subnet_test" - dhcp_enable: True + dhcp_enable: true vpc_id: "{{ vpc.id }}" cidr: "192.168.100.0/26" register: subnet diff --git a/plugins/modules/cloud/huawei/hwc_vpc_subnet.py b/plugins/modules/cloud/huawei/hwc_vpc_subnet.py index 260635b975..d38150dfc3 100644 --- a/plugins/modules/cloud/huawei/hwc_vpc_subnet.py +++ b/plugins/modules/cloud/huawei/hwc_vpc_subnet.py @@ -110,7 +110,7 @@ EXAMPLES = ''' cidr: "192.168.100.0/26" gateway_ip: "192.168.100.32" name: "ansible_network_subnet_test" - dhcp_enable: True + dhcp_enable: true ''' RETURN = ''' diff --git a/plugins/modules/cloud/linode/linode.py b/plugins/modules/cloud/linode/linode.py index 8de8c07f69..c19770dc41 100644 --- a/plugins/modules/cloud/linode/linode.py +++ b/plugins/modules/cloud/linode/linode.py @@ -209,15 +209,15 @@ EXAMPLES = ''' wait: true wait_timeout: 600 state: present - alert_bwquota_enabled: True + alert_bwquota_enabled: true alert_bwquota_threshold: 80 - alert_bwin_enabled: True + alert_bwin_enabled: true alert_bwin_threshold: 10 - alert_cpu_enabled: True + alert_cpu_enabled: true alert_cpu_threshold: 210 - alert_bwout_enabled: True + alert_bwout_enabled: true alert_bwout_threshold: 10 - alert_diskio_enabled: True + alert_diskio_enabled: true alert_diskio_threshold: 10000 backupweeklyday: 1 backupwindow: 2 @@ -225,7 +225,7 @@ EXAMPLES = ''' additional_disks: - {Label: 'disk1', Size: 2500, Type: 'raw'} - {Label: 'newdisk', Size: 2000} - watchdog: True + watchdog: true delegate_to: localhost register: linode_creation diff --git a/plugins/modules/cloud/lxc/lxc_container.py b/plugins/modules/cloud/lxc/lxc_container.py index 7c6d01fb2f..ddcee0c8ea 100644 --- a/plugins/modules/cloud/lxc/lxc_container.py +++ b/plugins/modules/cloud/lxc/lxc_container.py @@ -413,7 +413,7 @@ lxc_container: description: if the container was cloned returned: success, when clone_name is specified type: bool - sample: True + sample: true """ import os diff --git a/plugins/modules/cloud/memset/memset_dns_reload.py b/plugins/modules/cloud/memset/memset_dns_reload.py index ab6eecd227..580740d1a3 100644 --- a/plugins/modules/cloud/memset/memset_dns_reload.py +++ b/plugins/modules/cloud/memset/memset_dns_reload.py @@ -42,7 +42,7 @@ EXAMPLES = ''' - name: Submit DNS reload and poll community.general.memset_dns_reload: api_key: 5eb86c9196ab03919abcf03857163741 - poll: True + poll: true delegate_to: localhost ''' diff --git a/plugins/modules/cloud/memset/memset_zone_record.py b/plugins/modules/cloud/memset/memset_zone_record.py index a92cd2923f..5082475176 100644 --- a/plugins/modules/cloud/memset/memset_zone_record.py +++ b/plugins/modules/cloud/memset/memset_zone_record.py @@ -142,7 +142,7 @@ memset_api: description: Adds the current domain onto the address field for C(CNAME), C(MX), C(NS) and C(SRV) types. returned: always type: bool - sample: False + sample: false ttl: description: Record TTL. returned: always diff --git a/plugins/modules/cloud/misc/proxmox_kvm.py b/plugins/modules/cloud/misc/proxmox_kvm.py index 063fda697a..1180c56173 100644 --- a/plugins/modules/cloud/misc/proxmox_kvm.py +++ b/plugins/modules/cloud/misc/proxmox_kvm.py @@ -580,7 +580,7 @@ EXAMPLES = ''' storage: VMs_LVM_thin format: raw efitype: 4m - pre_enrolled_keys: False + pre_enrolled_keys: false - name: Create VM with 1 10GB SATA disk and an EFI disk, with Secure Boot enabled by default community.general.proxmox_kvm: diff --git a/plugins/modules/cloud/opennebula/one_vm.py b/plugins/modules/cloud/opennebula/one_vm.py index 39ae2e0d46..dca65d6db3 100644 --- a/plugins/modules/cloud/opennebula/one_vm.py +++ b/plugins/modules/cloud/opennebula/one_vm.py @@ -68,7 +68,7 @@ options: vm_start_on_hold: description: - Set to true to put vm on hold while creating - default: False + default: false type: bool instance_ids: description: diff --git a/plugins/modules/cloud/packet/packet_device.py b/plugins/modules/cloud/packet/packet_device.py index 5547999ec4..e8452f99eb 100644 --- a/plugins/modules/cloud/packet/packet_device.py +++ b/plugins/modules/cloud/packet/packet_device.py @@ -255,7 +255,7 @@ RETURN = ''' changed: description: True if a device was altered in any way (created, modified or removed) type: bool - sample: True + sample: true returned: success devices: diff --git a/plugins/modules/cloud/packet/packet_ip_subnet.py b/plugins/modules/cloud/packet/packet_ip_subnet.py index b2441dd9c7..79f93a6413 100644 --- a/plugins/modules/cloud/packet/packet_ip_subnet.py +++ b/plugins/modules/cloud/packet/packet_ip_subnet.py @@ -37,13 +37,13 @@ options: hostname: description: - A hostname of a device to/from which to assign/remove a subnet. - required: False + required: false type: str device_id: description: - UUID of a device to/from which to assign/remove a subnet. - required: False + required: false type: str project_id: @@ -118,7 +118,7 @@ RETURN = ''' changed: description: True if an IP address assignments were altered in any way (created or removed). type: bool - sample: True + sample: true returned: success device_id: @@ -135,15 +135,15 @@ subnet: assigned_to: { href : /devices/61f9aa5e-0530-47f5-97c2-113828e61ed0 } cidr: 31 created_at: '2017-08-07T15:15:30Z' - enabled: True + enabled: true gateway: 147.75.90.240 href: /ips/31eda960-0a16-4c0f-b196-f3dc4928529f id: 1eda960-0a16-4c0f-b196-f3dc4928529f - manageable: True - management: True + manageable: true + management: true netmask: 255.255.255.254 network: 147.75.90.240 - public: True + public: true returned: success ''' diff --git a/plugins/modules/cloud/packet/packet_project.py b/plugins/modules/cloud/packet/packet_project.py index 581e56dd4f..18b6f73f99 100644 --- a/plugins/modules/cloud/packet/packet_project.py +++ b/plugins/modules/cloud/packet/packet_project.py @@ -108,7 +108,7 @@ RETURN = ''' changed: description: True if a project was created or removed. type: bool - sample: True + sample: true returned: success name: diff --git a/plugins/modules/cloud/packet/packet_sshkey.py b/plugins/modules/cloud/packet/packet_sshkey.py index a336723f56..d39e419747 100644 --- a/plugins/modules/cloud/packet/packet_sshkey.py +++ b/plugins/modules/cloud/packet/packet_sshkey.py @@ -84,7 +84,7 @@ RETURN = ''' changed: description: True if a sshkey was created or removed. type: bool - sample: True + sample: true returned: always sshkeys: description: Information about sshkeys that were created/removed. diff --git a/plugins/modules/cloud/packet/packet_volume.py b/plugins/modules/cloud/packet/packet_volume.py index b2c6d116c1..f0508c5891 100644 --- a/plugins/modules/cloud/packet/packet_volume.py +++ b/plugins/modules/cloud/packet/packet_volume.py @@ -84,7 +84,7 @@ options: description: - Create new volume locked. type: bool - default: False + default: false billing_cycle: description: @@ -102,13 +102,13 @@ options: snapshot_count: description: - How many snapshots to keep, a positive integer. - required: True + required: true type: int snapshot_frequency: description: - Frequency of snapshots. - required: True + required: true choices: ["15min", "1hour", "1day", "1week", "1month", "1year"] type: str diff --git a/plugins/modules/cloud/rackspace/rax.py b/plugins/modules/cloud/rackspace/rax.py index 57397b7dc2..35f88dde81 100644 --- a/plugins/modules/cloud/rackspace/rax.py +++ b/plugins/modules/cloud/rackspace/rax.py @@ -179,7 +179,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Build a Cloud Server - gather_facts: False + gather_facts: false tasks: - name: Server build request local_action: @@ -200,7 +200,7 @@ EXAMPLES = ''' - name: Build an exact count of cloud servers with incremented names hosts: local - gather_facts: False + gather_facts: false tasks: - name: Server build requests local_action: diff --git a/plugins/modules/cloud/rackspace/rax_cbs.py b/plugins/modules/cloud/rackspace/rax_cbs.py index 5a4cd868b6..cde1d98755 100644 --- a/plugins/modules/cloud/rackspace/rax_cbs.py +++ b/plugins/modules/cloud/rackspace/rax_cbs.py @@ -78,7 +78,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Build a Block Storage Volume - gather_facts: False + gather_facts: false hosts: local connection: local tasks: diff --git a/plugins/modules/cloud/rackspace/rax_cbs_attachments.py b/plugins/modules/cloud/rackspace/rax_cbs_attachments.py index ac85593a26..82a1f30cfb 100644 --- a/plugins/modules/cloud/rackspace/rax_cbs_attachments.py +++ b/plugins/modules/cloud/rackspace/rax_cbs_attachments.py @@ -58,7 +58,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Attach a Block Storage Volume - gather_facts: False + gather_facts: false hosts: local connection: local tasks: diff --git a/plugins/modules/cloud/rackspace/rax_cdb.py b/plugins/modules/cloud/rackspace/rax_cdb.py index 3051bcdcb2..6703a8dd4b 100644 --- a/plugins/modules/cloud/rackspace/rax_cdb.py +++ b/plugins/modules/cloud/rackspace/rax_cdb.py @@ -70,7 +70,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Build a Cloud Databases - gather_facts: False + gather_facts: false tasks: - name: Server build request local_action: diff --git a/plugins/modules/cloud/rackspace/rax_clb.py b/plugins/modules/cloud/rackspace/rax_clb.py index fa7f7c7377..8e5db34e50 100644 --- a/plugins/modules/cloud/rackspace/rax_clb.py +++ b/plugins/modules/cloud/rackspace/rax_clb.py @@ -111,7 +111,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Build a Load Balancer - gather_facts: False + gather_facts: false hosts: local connection: local tasks: diff --git a/plugins/modules/cloud/rackspace/rax_dns.py b/plugins/modules/cloud/rackspace/rax_dns.py index d10b178867..a97a4bb175 100644 --- a/plugins/modules/cloud/rackspace/rax_dns.py +++ b/plugins/modules/cloud/rackspace/rax_dns.py @@ -54,7 +54,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Create domain hosts: all - gather_facts: False + gather_facts: false tasks: - name: Domain create request local_action: diff --git a/plugins/modules/cloud/rackspace/rax_dns_record.py b/plugins/modules/cloud/rackspace/rax_dns_record.py index ba4d4b1699..e51424dc04 100644 --- a/plugins/modules/cloud/rackspace/rax_dns_record.py +++ b/plugins/modules/cloud/rackspace/rax_dns_record.py @@ -24,7 +24,7 @@ options: description: - IP address for A/AAAA record, FQDN for CNAME/MX/NS, or text data for SRV/TXT - required: True + required: true domain: type: str description: @@ -38,7 +38,7 @@ options: type: str description: - FQDN record name to create - required: True + required: true overwrite: description: - Add new records if data doesn't match, instead of updating existing @@ -100,7 +100,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Create DNS Records hosts: all - gather_facts: False + gather_facts: false tasks: - name: Create A record local_action: diff --git a/plugins/modules/cloud/rackspace/rax_facts.py b/plugins/modules/cloud/rackspace/rax_facts.py index 7d10d0d6d7..560f05e56a 100644 --- a/plugins/modules/cloud/rackspace/rax_facts.py +++ b/plugins/modules/cloud/rackspace/rax_facts.py @@ -37,7 +37,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Gather info about servers hosts: all - gather_facts: False + gather_facts: false tasks: - name: Get facts about servers local_action: diff --git a/plugins/modules/cloud/rackspace/rax_files_objects.py b/plugins/modules/cloud/rackspace/rax_files_objects.py index c287d9bf7e..a7c36e6920 100644 --- a/plugins/modules/cloud/rackspace/rax_files_objects.py +++ b/plugins/modules/cloud/rackspace/rax_files_objects.py @@ -83,7 +83,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: "Test Cloud Files Objects" hosts: local - gather_facts: False + gather_facts: false tasks: - name: "Get objects from test container" community.general.rax_files_objects: diff --git a/plugins/modules/cloud/rackspace/rax_identity.py b/plugins/modules/cloud/rackspace/rax_identity.py index 8e30c2971b..6f7472bcf4 100644 --- a/plugins/modules/cloud/rackspace/rax_identity.py +++ b/plugins/modules/cloud/rackspace/rax_identity.py @@ -32,7 +32,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Load Rackspace Cloud Identity - gather_facts: False + gather_facts: false hosts: local connection: local tasks: diff --git a/plugins/modules/cloud/rackspace/rax_keypair.py b/plugins/modules/cloud/rackspace/rax_keypair.py index 5a881ad052..6664ac8bd0 100644 --- a/plugins/modules/cloud/rackspace/rax_keypair.py +++ b/plugins/modules/cloud/rackspace/rax_keypair.py @@ -45,7 +45,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Create a keypair hosts: localhost - gather_facts: False + gather_facts: false tasks: - name: Keypair request local_action: @@ -67,7 +67,7 @@ EXAMPLES = ''' - name: Create a keypair hosts: localhost - gather_facts: False + gather_facts: false tasks: - name: Keypair request local_action: diff --git a/plugins/modules/cloud/rackspace/rax_meta.py b/plugins/modules/cloud/rackspace/rax_meta.py index 17dc780cf8..7937696f88 100644 --- a/plugins/modules/cloud/rackspace/rax_meta.py +++ b/plugins/modules/cloud/rackspace/rax_meta.py @@ -41,7 +41,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Set metadata for a server hosts: all - gather_facts: False + gather_facts: false tasks: - name: Set metadata local_action: diff --git a/plugins/modules/cloud/rackspace/rax_mon_alarm.py b/plugins/modules/cloud/rackspace/rax_mon_alarm.py index 9083c91394..dd971f7243 100644 --- a/plugins/modules/cloud/rackspace/rax_mon_alarm.py +++ b/plugins/modules/cloud/rackspace/rax_mon_alarm.py @@ -77,7 +77,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Alarm example - gather_facts: False + gather_facts: false hosts: local connection: local tasks: diff --git a/plugins/modules/cloud/rackspace/rax_mon_check.py b/plugins/modules/cloud/rackspace/rax_mon_check.py index 2075b2cea0..adbd7e7600 100644 --- a/plugins/modules/cloud/rackspace/rax_mon_check.py +++ b/plugins/modules/cloud/rackspace/rax_mon_check.py @@ -119,7 +119,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Create a monitoring check - gather_facts: False + gather_facts: false hosts: local connection: local tasks: diff --git a/plugins/modules/cloud/rackspace/rax_mon_entity.py b/plugins/modules/cloud/rackspace/rax_mon_entity.py index 0cfeb7ab2c..e8dabef69e 100644 --- a/plugins/modules/cloud/rackspace/rax_mon_entity.py +++ b/plugins/modules/cloud/rackspace/rax_mon_entity.py @@ -57,7 +57,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Entity example - gather_facts: False + gather_facts: false hosts: local connection: local tasks: diff --git a/plugins/modules/cloud/rackspace/rax_mon_notification.py b/plugins/modules/cloud/rackspace/rax_mon_notification.py index cb519e43cf..c26b0315db 100644 --- a/plugins/modules/cloud/rackspace/rax_mon_notification.py +++ b/plugins/modules/cloud/rackspace/rax_mon_notification.py @@ -52,7 +52,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Monitoring notification example - gather_facts: False + gather_facts: false hosts: local connection: local tasks: diff --git a/plugins/modules/cloud/rackspace/rax_mon_notification_plan.py b/plugins/modules/cloud/rackspace/rax_mon_notification_plan.py index 1721aac09e..7800ea0fe9 100644 --- a/plugins/modules/cloud/rackspace/rax_mon_notification_plan.py +++ b/plugins/modules/cloud/rackspace/rax_mon_notification_plan.py @@ -58,7 +58,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Example notification plan - gather_facts: False + gather_facts: false hosts: local connection: local tasks: diff --git a/plugins/modules/cloud/rackspace/rax_network.py b/plugins/modules/cloud/rackspace/rax_network.py index 604111cc5d..02de3ce011 100644 --- a/plugins/modules/cloud/rackspace/rax_network.py +++ b/plugins/modules/cloud/rackspace/rax_network.py @@ -42,7 +42,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Build an Isolated Network - gather_facts: False + gather_facts: false tasks: - name: Network create request diff --git a/plugins/modules/cloud/rackspace/rax_queue.py b/plugins/modules/cloud/rackspace/rax_queue.py index b28099f786..366c1c77e3 100644 --- a/plugins/modules/cloud/rackspace/rax_queue.py +++ b/plugins/modules/cloud/rackspace/rax_queue.py @@ -38,7 +38,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Build a Queue - gather_facts: False + gather_facts: false hosts: local connection: local tasks: diff --git a/plugins/modules/cloud/smartos/nictagadm.py b/plugins/modules/cloud/smartos/nictagadm.py index 555bb92fb5..e70d93c8a1 100644 --- a/plugins/modules/cloud/smartos/nictagadm.py +++ b/plugins/modules/cloud/smartos/nictagadm.py @@ -80,7 +80,7 @@ etherstub: description: specifies if the nic tag will create and attach to an etherstub. returned: always type: bool - sample: False + sample: false mtu: description: specifies which MTU size was passed during the nictagadm add command. mtu and etherstub are mutually exclusive. returned: always @@ -90,7 +90,7 @@ force: description: Shows if -f was used during the deletion of a nic tag returned: always type: bool - sample: False + sample: false state: description: state of the target returned: always diff --git a/plugins/modules/cloud/softlayer/sl_vm.py b/plugins/modules/cloud/softlayer/sl_vm.py index 37292cb1c1..851f7a7f53 100644 --- a/plugins/modules/cloud/softlayer/sl_vm.py +++ b/plugins/modules/cloud/softlayer/sl_vm.py @@ -230,7 +230,7 @@ EXAMPLES = ''' - 100 os_code: UBUNTU_LATEST ssh_keys: [] - wait: True + wait: true - hostname: instance-3 domain: anydomain.com datacenter: dal09 diff --git a/plugins/modules/cloud/spotinst/spotinst_aws_elastigroup.py b/plugins/modules/cloud/spotinst/spotinst_aws_elastigroup.py index 0d555abfeb..40d0270800 100644 --- a/plugins/modules/cloud/spotinst/spotinst_aws_elastigroup.py +++ b/plugins/modules/cloud/spotinst/spotinst_aws_elastigroup.py @@ -523,7 +523,7 @@ EXAMPLES = ''' min_size: 0 target: 0 unit: instance - monitoring: True + monitoring: true name: ansible-group on_demand_instance_type: c3.large product: Linux/UNIX @@ -561,7 +561,7 @@ EXAMPLES = ''' min_size: 0 target: 0 unit: instance - monitoring: True + monitoring: true name: ansible-group-tal on_demand_instance_type: c3.large product: Linux/UNIX @@ -576,7 +576,7 @@ EXAMPLES = ''' - c3.large do_not_update: - image_id - wait_for_instances: True + wait_for_instances: true wait_timeout: 600 register: result @@ -608,7 +608,7 @@ EXAMPLES = ''' min_size: 0 target: 0 unit: instance - monitoring: True + monitoring: true name: ansible-group-tal on_demand_instance_type: c3.large product: Linux/UNIX @@ -627,7 +627,7 @@ EXAMPLES = ''' - c3.large do_not_update: - image_id - wait_for_instances: True + wait_for_instances: true wait_timeout: 600 register: result @@ -659,7 +659,7 @@ EXAMPLES = ''' virtual_name: ephemeral0 - device_name: '/dev/xvdb/' virtual_name: ephemeral1 - monitoring: True + monitoring: true name: ansible-group on_demand_instance_type: c3.large product: Linux/UNIX @@ -697,7 +697,7 @@ EXAMPLES = ''' min_size: 0 target: 0 unit: instance - monitoring: True + monitoring: true name: ansible-group on_demand_instance_type: c3.large product: Linux/UNIX @@ -737,7 +737,7 @@ EXAMPLES = ''' min_size: 0 target: 2 unit: instance - monitoring: True + monitoring: true name: ansible-group-1 on_demand_instance_type: c3.large product: Linux/UNIX diff --git a/plugins/modules/cloud/univention/udm_share.py b/plugins/modules/cloud/univention/udm_share.py index c0077bdc1c..b1d7e13287 100644 --- a/plugins/modules/cloud/univention/udm_share.py +++ b/plugins/modules/cloud/univention/udm_share.py @@ -106,7 +106,7 @@ options: description: - Show in Windows network environment. type: bool - default: True + default: true aliases: [ samba_browsable ] sambaCreateMode: default: '0744' diff --git a/plugins/modules/clustering/consul/consul_acl.py b/plugins/modules/clustering/consul/consul_acl.py index 23a6431cd7..b9f14db164 100644 --- a/plugins/modules/clustering/consul/consul_acl.py +++ b/plugins/modules/clustering/consul/consul_acl.py @@ -79,7 +79,7 @@ options: description: - whether to verify the tls certificate of the consul agent required: false - default: True + default: true requirements: - python-consul - pyhcl diff --git a/plugins/modules/clustering/consul/consul_kv.py b/plugins/modules/clustering/consul/consul_kv.py index ed64a86d18..3419e3322b 100644 --- a/plugins/modules/clustering/consul/consul_kv.py +++ b/plugins/modules/clustering/consul/consul_kv.py @@ -61,7 +61,7 @@ options: description: - If the I(state) is C(present) and I(value) is set, perform a read after setting the value and return this value. - default: True + default: true type: bool session: description: diff --git a/plugins/modules/clustering/consul/consul_session.py b/plugins/modules/clustering/consul/consul_session.py index 6c06f9a139..062eb3befe 100644 --- a/plugins/modules/clustering/consul/consul_session.py +++ b/plugins/modules/clustering/consul/consul_session.py @@ -88,7 +88,7 @@ options: description: - Whether to verify the TLS certificate of the consul agent. type: bool - default: True + default: true behavior: description: - The optional behavior that can be attached to the session when it diff --git a/plugins/modules/clustering/pacemaker_cluster.py b/plugins/modules/clustering/pacemaker_cluster.py index 823bb76257..a71c1b0044 100644 --- a/plugins/modules/clustering/pacemaker_cluster.py +++ b/plugins/modules/clustering/pacemaker_cluster.py @@ -52,7 +52,7 @@ EXAMPLES = ''' RETURN = ''' changed: - description: True if the cluster state has changed + description: true if the cluster state has changed type: bool returned: always out: diff --git a/plugins/modules/database/aerospike/aerospike_migrations.py b/plugins/modules/database/aerospike/aerospike_migrations.py index 32d51a6b1f..32ab06a853 100644 --- a/plugins/modules/database/aerospike/aerospike_migrations.py +++ b/plugins/modules/database/aerospike/aerospike_migrations.py @@ -23,73 +23,73 @@ options: host: description: - Which host do we use as seed for info connection - required: False + required: false type: str default: localhost port: description: - Which port to connect to Aerospike on (service port) - required: False + required: false type: int default: 3000 connect_timeout: description: - How long to try to connect before giving up (milliseconds) - required: False + required: false type: int default: 1000 consecutive_good_checks: description: - How many times should the cluster report "no migrations" consecutively before returning OK back to ansible? - required: False + required: false type: int default: 3 sleep_between_checks: description: - How long to sleep between each check (seconds). - required: False + required: false type: int default: 60 tries_limit: description: - How many times do we poll before giving up and failing? default: 300 - required: False + required: false type: int local_only: description: - Do you wish to only check for migrations on the local node before returning, or do you want all nodes in the cluster to finish before returning? - required: True + required: true type: bool min_cluster_size: description: - Check will return bad until cluster size is met or until tries is exhausted - required: False + required: false type: int default: 1 fail_on_cluster_change: description: - Fail if the cluster key changes if something else is changing the cluster, we may want to fail - required: False + required: false type: bool - default: True + default: true migrate_tx_key: description: - The metric key used to determine if we have tx migrations remaining. Changeable due to backwards compatibility. - required: False + required: false type: str default: migrate_tx_partitions_remaining migrate_rx_key: description: - The metric key used to determine if we have rx migrations remaining. Changeable due to backwards compatibility. - required: False + required: false type: str default: migrate_rx_partitions_remaining target_cluster_size: @@ -102,7 +102,7 @@ options: - If this option is specified on a cluster that has at least 1 host <4.3 then it will be ignored until the min version reaches 4.3. - required: False + required: false type: int ''' EXAMPLES = ''' @@ -114,7 +114,7 @@ EXAMPLES = ''' consecutive_good_checks: 5 sleep_between_checks: 15 tries_limit: 600 - local_only: False + local_only: false # example playbook: - name: Upgrade aerospike @@ -140,7 +140,7 @@ EXAMPLES = ''' # Tries Limit * Sleep Between Checks * delay * retries - name: Wait for aerospike migrations community.general.aerospike_migrations: - local_only: True + local_only: true sleep_between_checks: 1 tries_limit: 5 consecutive_good_checks: 3 diff --git a/plugins/modules/database/influxdb/influxdb_user.py b/plugins/modules/database/influxdb/influxdb_user.py index 06ef13e2b3..25bc2a95ce 100644 --- a/plugins/modules/database/influxdb/influxdb_user.py +++ b/plugins/modules/database/influxdb/influxdb_user.py @@ -24,7 +24,7 @@ options: user_name: description: - Name of the user. - required: True + required: true type: str user_password: description: diff --git a/plugins/modules/database/misc/elasticsearch_plugin.py b/plugins/modules/database/misc/elasticsearch_plugin.py index 12aedc182f..a68ff086c3 100644 --- a/plugins/modules/database/misc/elasticsearch_plugin.py +++ b/plugins/modules/database/misc/elasticsearch_plugin.py @@ -22,7 +22,7 @@ options: name: description: - Name of the plugin to install. - required: True + required: true type: str state: description: @@ -40,13 +40,13 @@ options: parameter. If, for example, the plugin is already installed, changing this has no effect. - For ES 1.x use url. - required: False + required: false type: str url: description: - Set exact URL to download the plugin from (Only works for ES 1.x). - For ES 2.x and higher, use src. - required: False + required: false type: str timeout: description: @@ -57,7 +57,7 @@ options: force: description: - "Force batch mode when installing plugins. This is only necessary if a plugin requires additional permissions and console detection fails." - default: False + default: false type: bool plugin_bin: description: diff --git a/plugins/modules/database/misc/kibana_plugin.py b/plugins/modules/database/misc/kibana_plugin.py index 5522340156..94838e22b6 100644 --- a/plugins/modules/database/misc/kibana_plugin.py +++ b/plugins/modules/database/misc/kibana_plugin.py @@ -22,7 +22,7 @@ options: name: description: - Name of the plugin to install. - required: True + required: true type: str state: description: diff --git a/plugins/modules/database/saphana/hana_query.py b/plugins/modules/database/saphana/hana_query.py index 2ea0ce2510..746b2a3f44 100644 --- a/plugins/modules/database/saphana/hana_query.py +++ b/plugins/modules/database/saphana/hana_query.py @@ -88,7 +88,7 @@ EXAMPLES = r''' - "select user_name from users;" - select * from SYSTEM; host: "localhost" - autocommit: False + autocommit: false - name: Run several queries from file community.general.hana_query: @@ -109,7 +109,7 @@ EXAMPLES = r''' query: - "select user_name from users;" - select * from users; - autocommit: False + autocommit: false ''' RETURN = r''' diff --git a/plugins/modules/files/iso_create.py b/plugins/modules/files/iso_create.py index 1340ab9ce4..d729f222a2 100644 --- a/plugins/modules/files/iso_create.py +++ b/plugins/modules/files/iso_create.py @@ -73,7 +73,7 @@ options: - If set to C(True), then version 2.60 of the UDF spec is used. - If not specified or set to C(False), then no UDF support is added. type: bool - default: False + default: false ''' EXAMPLES = r''' @@ -139,7 +139,7 @@ udf: description: Configured UDF support. returned: on success type: bool - sample: False + sample: false ''' import os diff --git a/plugins/modules/identity/ipa/ipa_host.py b/plugins/modules/identity/ipa/ipa_host.py index 5fb3f1679c..ad3c37877c 100644 --- a/plugins/modules/identity/ipa/ipa_host.py +++ b/plugins/modules/identity/ipa/ipa_host.py @@ -112,8 +112,8 @@ EXAMPLES = r''' ipa_host: ipa.example.com ipa_user: admin ipa_pass: topsecret - validate_certs: False - random_password: True + validate_certs: false + random_password: true - name: Ensure host is disabled community.general.ipa_host: @@ -146,7 +146,7 @@ EXAMPLES = r''' ipa_host: ipa.example.com ipa_user: admin ipa_pass: topsecret - update_dns: True + update_dns: true ''' RETURN = r''' diff --git a/plugins/modules/identity/ipa/ipa_vault.py b/plugins/modules/identity/ipa/ipa_vault.py index bfefc7a94c..40f5844cd9 100644 --- a/plugins/modules/identity/ipa/ipa_vault.py +++ b/plugins/modules/identity/ipa/ipa_vault.py @@ -66,7 +66,7 @@ options: description: - Force replace the existent vault on IPA server. type: bool - default: False + default: false choices: ["True", "False"] validate_certs: description: @@ -115,7 +115,7 @@ EXAMPLES = r''' ipa_host: ipa.example.com ipa_user: admin ipa_pass: topsecret - replace: True + replace: true - name: Get vault info if already exists community.general.ipa_vault: diff --git a/plugins/modules/identity/keycloak/keycloak_client.py b/plugins/modules/identity/keycloak/keycloak_client.py index 4fffeb2955..22ba6a810a 100644 --- a/plugins/modules/identity/keycloak/keycloak_client.py +++ b/plugins/modules/identity/keycloak/keycloak_client.py @@ -596,7 +596,7 @@ EXAMPLES = ''' root_url: https://www.example.com/ admin_url: https://www.example.com/admin_url base_url: basepath - enabled: True + enabled: true client_authenticator_type: client-secret secret: REALLYWELLKEPTSECRET redirect_uris: @@ -605,20 +605,20 @@ EXAMPLES = ''' web_origins: - https://www.example.com/* not_before: 1507825725 - bearer_only: False - consent_required: False - standard_flow_enabled: True - implicit_flow_enabled: False - direct_access_grants_enabled: False - service_accounts_enabled: False - authorization_services_enabled: False - public_client: False - frontchannel_logout: False + bearer_only: false + consent_required: false + standard_flow_enabled: true + implicit_flow_enabled: false + direct_access_grants_enabled: false + service_accounts_enabled: false + authorization_services_enabled: false + public_client: false + frontchannel_logout: false protocol: openid-connect full_scope_allowed: false node_re_registration_timeout: -1 client_template: test - use_template_config: False + use_template_config: false use_template_scope: false use_template_mappers: false always_display_in_console: true @@ -633,13 +633,13 @@ EXAMPLES = ''' browser: 4c90336b-bf1d-4b87-916d-3677ba4e5fbb protocol_mappers: - config: - access.token.claim: True + access.token.claim: true claim.name: "family_name" - id.token.claim: True + id.token.claim: true jsonType.label: String user.attribute: lastName - userinfo.token.claim: True - consentRequired: True + userinfo.token.claim: true + consentRequired: true consentText: "${familyName}" name: family name protocol: openid-connect @@ -653,14 +653,14 @@ EXAMPLES = ''' protocol: saml protocolMapper: saml-role-list-mapper attributes: - saml.authnstatement: True - saml.client.signature: True - saml.force.post.binding: True - saml.server.signature: True + saml.authnstatement: true + saml.client.signature: true + saml.force.post.binding: true + saml.server.signature: true saml.signature.algorithm: RSA_SHA256 saml.signing.certificate: CERTIFICATEHERE saml.signing.private.key: PRIVATEKEYHERE - saml_force_name_id_format: False + saml_force_name_id_format: false saml_name_id_format: username saml_signature_canonicalization_method: "http://www.w3.org/2001/10/xml-exc-c14n#" user.info.response.signature.alg: RS256 diff --git a/plugins/modules/identity/keycloak/keycloak_clientscope.py b/plugins/modules/identity/keycloak/keycloak_clientscope.py index b690cf4802..0ac6836f7b 100644 --- a/plugins/modules/identity/keycloak/keycloak_clientscope.py +++ b/plugins/modules/identity/keycloak/keycloak_clientscope.py @@ -228,12 +228,12 @@ EXAMPLES = ''' protocol: openid-connect protocol_mappers: - config: - access.token.claim: True + access.token.claim: true claim.name: "family_name" - id.token.claim: True + id.token.claim: true jsonType.label: String user.attribute: lastName - userinfo.token.claim: True + userinfo.token.claim: true name: family name protocol: openid-connect protocolMapper: oidc-usermodel-property-mapper diff --git a/plugins/modules/identity/keycloak/keycloak_clienttemplate.py b/plugins/modules/identity/keycloak/keycloak_clienttemplate.py index b35827372e..4b75bad919 100644 --- a/plugins/modules/identity/keycloak/keycloak_clienttemplate.py +++ b/plugins/modules/identity/keycloak/keycloak_clienttemplate.py @@ -213,13 +213,13 @@ EXAMPLES = ''' name: this_is_a_test protocol_mappers: - config: - access.token.claim: True + access.token.claim: true claim.name: "family_name" - id.token.claim: True + id.token.claim: true jsonType.label: String user.attribute: lastName - userinfo.token.claim: True - consentRequired: True + userinfo.token.claim: true + consentRequired: true consentText: "${familyName}" name: family name protocol: openid-connect diff --git a/plugins/modules/identity/onepassword_info.py b/plugins/modules/identity/onepassword_info.py index 316b1f1d90..8118709b17 100644 --- a/plugins/modules/identity/onepassword_info.py +++ b/plugins/modules/identity/onepassword_info.py @@ -55,7 +55,7 @@ options: type: str description: - The name of the particular 1Password vault to search, useful if your 1Password user has access to multiple vaults (optional). - required: True + required: true auto_login: type: dict description: @@ -80,18 +80,18 @@ options: description: - The master password for your subdomain. - This is always required when specifying C(auto_login). - required: True + required: true secret_key: type: str description: - The secret key for your subdomain. - Only required for initial sign in. default: {} - required: False + required: false cli_path: type: path description: Used to specify the exact path to the C(op) command line interface - required: False + required: false default: 'op' ''' @@ -114,7 +114,7 @@ EXAMPLES = ''' vault: Name of the vault # optional, only necessary if there is more than 1 Vault available delegate_to: localhost register: my_1password_item - no_log: True # Don't want to log the secrets to the console! + no_log: true # Don't want to log the secrets to the console! # Gather secrets combining simple and advanced search terms to retrieve two items, one of which we fetch two # fields. In the first 'password' is fetched, as a field name is not specified (default behaviour) and in the diff --git a/plugins/modules/monitoring/bigpanda.py b/plugins/modules/monitoring/bigpanda.py index 8c2a858877..4e653aadb7 100644 --- a/plugins/modules/monitoring/bigpanda.py +++ b/plugins/modules/monitoring/bigpanda.py @@ -64,7 +64,7 @@ options: type: str description: - Base URL of the API server. - required: False + required: false default: https://api.bigpanda.io validate_certs: description: diff --git a/plugins/modules/monitoring/icinga2_feature.py b/plugins/modules/monitoring/icinga2_feature.py index 395003e65f..2f1d5629d5 100644 --- a/plugins/modules/monitoring/icinga2_feature.py +++ b/plugins/modules/monitoring/icinga2_feature.py @@ -26,7 +26,7 @@ options: type: str description: - This is the feature name to enable or disable. - required: True + required: true state: type: str description: diff --git a/plugins/modules/monitoring/logstash_plugin.py b/plugins/modules/monitoring/logstash_plugin.py index b174515643..a4979646dd 100644 --- a/plugins/modules/monitoring/logstash_plugin.py +++ b/plugins/modules/monitoring/logstash_plugin.py @@ -20,7 +20,7 @@ options: type: str description: - Install plugin with that name. - required: True + required: true state: type: str description: diff --git a/plugins/modules/monitoring/sensu/sensu_handler.py b/plugins/modules/monitoring/sensu/sensu_handler.py index cd56f38f70..15e63e57d3 100644 --- a/plugins/modules/monitoring/sensu/sensu_handler.py +++ b/plugins/modules/monitoring/sensu/sensu_handler.py @@ -27,7 +27,7 @@ options: type: str description: - A unique name for the handler. The name cannot contain special characters or spaces. - required: True + required: true type: type: str description: diff --git a/plugins/modules/monitoring/statusio_maintenance.py b/plugins/modules/monitoring/statusio_maintenance.py index 711e8917d0..b884a943aa 100644 --- a/plugins/modules/monitoring/statusio_maintenance.py +++ b/plugins/modules/monitoring/statusio_maintenance.py @@ -131,8 +131,8 @@ EXAMPLES = ''' api_id: api_id api_key: api_key statuspage: statuspage_id - maintenance_notify_1_hr: True - automation: True + maintenance_notify_1_hr: true + automation: true - name: Create a maintenance window for 60 minutes on server1 and server2 community.general.statusio_maintenance: @@ -145,8 +145,8 @@ EXAMPLES = ''' api_id: api_id api_key: api_key statuspage: statuspage_id - maintenance_notify_1_hr: True - automation: True + maintenance_notify_1_hr: true + automation: true delegate_to: localhost - name: Create a future maintenance window for 24 hours to all hosts inside the Primary Data Center diff --git a/plugins/modules/net_tools/cloudflare_dns.py b/plugins/modules/net_tools/cloudflare_dns.py index dca9a8e176..92132c0f6f 100644 --- a/plugins/modules/net_tools/cloudflare_dns.py +++ b/plugins/modules/net_tools/cloudflare_dns.py @@ -304,7 +304,7 @@ record: description: No documentation available. returned: success type: bool - sample: False + sample: false meta: description: No documentation available. returned: success @@ -329,12 +329,12 @@ record: description: Whether this record can be proxied through Cloudflare. returned: success type: bool - sample: False + sample: false proxied: description: Whether the record is proxied through Cloudflare. returned: success type: bool - sample: False + sample: false ttl: description: The time-to-live for the record. returned: success diff --git a/plugins/modules/net_tools/dnsmadeeasy.py b/plugins/modules/net_tools/dnsmadeeasy.py index 0efbe5b6e0..ec9e9951cd 100644 --- a/plugins/modules/net_tools/dnsmadeeasy.py +++ b/plugins/modules/net_tools/dnsmadeeasy.py @@ -254,7 +254,7 @@ EXAMPLES = ''' record_name: test record_type: A record_value: 127.0.0.1 - failover: True + failover: true ip1: 127.0.0.2 ip2: 127.0.0.3 @@ -267,7 +267,7 @@ EXAMPLES = ''' record_name: test record_type: A record_value: 127.0.0.1 - failover: True + failover: true ip1: 127.0.0.2 ip2: 127.0.0.3 ip3: 127.0.0.4 @@ -320,7 +320,7 @@ EXAMPLES = ''' record_name: test record_type: A record_value: 127.0.0.1 - failover: True + failover: true ip1: 127.0.0.2 ip2: 127.0.0.3 monitor: true diff --git a/plugins/modules/net_tools/netcup_dns.py b/plugins/modules/net_tools/netcup_dns.py index db6bcd61ad..e6bf3de0c3 100644 --- a/plugins/modules/net_tools/netcup_dns.py +++ b/plugins/modules/net_tools/netcup_dns.py @@ -20,22 +20,22 @@ options: api_key: description: - "API key for authentication, must be obtained via the netcup CCP (U(https://ccp.netcup.net))." - required: True + required: true type: str api_password: description: - "API password for authentication, must be obtained via the netcup CCP (U(https://ccp.netcup.net))." - required: True + required: true type: str customer_id: description: - Netcup customer id. - required: True + required: true type: int domain: description: - Domainname the records should be added / removed. - required: True + required: true type: str record: description: @@ -47,7 +47,7 @@ options: description: - Record type. choices: ['A', 'AAAA', 'MX', 'CNAME', 'CAA', 'SRV', 'TXT', 'TLSA', 'NS', 'DS'] - required: True + required: true type: str value: description: @@ -56,19 +56,19 @@ options: type: str solo: type: bool - default: False + default: false description: - Whether the record should be the only one for that record type and record name. Only use with I(state=present). - This will delete all other records with the same record name and type. priority: description: - Record priority. Required for I(type=MX). - required: False + required: false type: int state: description: - Whether the record should exist or not. - required: False + required: false default: present choices: [ 'present', 'absent' ] type: str diff --git a/plugins/modules/net_tools/pritunl/pritunl_org.py b/plugins/modules/net_tools/pritunl/pritunl_org.py index 0900ccf3be..75c3564f24 100644 --- a/plugins/modules/net_tools/pritunl/pritunl_org.py +++ b/plugins/modules/net_tools/pritunl/pritunl_org.py @@ -68,11 +68,11 @@ response: type: dict sample: { - "auth_api": False, + "auth_api": false, "name": "Foo", - "auth_token": None, + "auth_token": null, "user_count": 0, - "auth_secret": None, + "auth_secret": null, "id": "csftwlu6uhralzi2dpmhekz3", } """ diff --git a/plugins/modules/net_tools/pritunl/pritunl_org_info.py b/plugins/modules/net_tools/pritunl/pritunl_org_info.py index 65e8c93c56..1529239ad9 100644 --- a/plugins/modules/net_tools/pritunl/pritunl_org_info.py +++ b/plugins/modules/net_tools/pritunl/pritunl_org_info.py @@ -49,27 +49,27 @@ organizations: sample: [ { - "auth_api": False, + "auth_api": false, "name": "FooOrg", - "auth_token": None, + "auth_token": null, "user_count": 0, - "auth_secret": None, + "auth_secret": null, "id": "csftwlu6uhralzi2dpmhekz3", }, { - "auth_api": False, + "auth_api": false, "name": "MyOrg", - "auth_token": None, + "auth_token": null, "user_count": 3, - "auth_secret": None, + "auth_secret": null, "id": "58070daee63f3b2e6e472c36", }, { - "auth_api": False, + "auth_api": false, "name": "BarOrg", - "auth_token": None, + "auth_token": null, "user_count": 0, - "auth_secret": None, + "auth_secret": null, "id": "v1sncsxxybnsylc8gpqg85pg", } ] diff --git a/plugins/modules/notification/catapult.py b/plugins/modules/notification/catapult.py index 64853849fc..8b8c72974d 100644 --- a/plugins/modules/notification/catapult.py +++ b/plugins/modules/notification/catapult.py @@ -90,7 +90,7 @@ changed: description: Whether the api accepted the message. returned: always type: bool - sample: True + sample: true ''' diff --git a/plugins/modules/notification/mattermost.py b/plugins/modules/notification/mattermost.py index 8f2f0b608f..af6666b3cd 100644 --- a/plugins/modules/notification/mattermost.py +++ b/plugins/modules/notification/mattermost.py @@ -97,10 +97,10 @@ EXAMPLES = """ fields: - title: System A value: "load average: 0,74, 0,66, 0,63" - short: True + short: true - title: System B value: 'load average: 5,16, 4,64, 2,43' - short: True + short: true """ RETURN = ''' diff --git a/plugins/modules/notification/mqtt.py b/plugins/modules/notification/mqtt.py index 81d2bf6a4f..fe6e7347fc 100644 --- a/plugins/modules/notification/mqtt.py +++ b/plugins/modules/notification/mqtt.py @@ -112,7 +112,7 @@ EXAMPLES = ''' topic: 'service/ansible/{{ ansible_hostname }}' payload: 'Hello at {{ ansible_date_time.iso8601 }}' qos: 0 - retain: False + retain: false client_id: ans001 delegate_to: localhost ''' diff --git a/plugins/modules/notification/rocketchat.py b/plugins/modules/notification/rocketchat.py index affbb625e1..153567e22a 100644 --- a/plugins/modules/notification/rocketchat.py +++ b/plugins/modules/notification/rocketchat.py @@ -135,10 +135,10 @@ EXAMPLES = """ fields: - title: System A value: 'load average: 0,74, 0,66, 0,63' - short: True + short: true - title: System B value: 'load average: 5,16, 4,64, 2,43' - short: True + short: true delegate_to: localhost """ diff --git a/plugins/modules/notification/slack.py b/plugins/modules/notification/slack.py index d985412932..154a8ccffd 100644 --- a/plugins/modules/notification/slack.py +++ b/plugins/modules/notification/slack.py @@ -175,10 +175,10 @@ EXAMPLES = """ fields: - title: System A value: "load average: 0,74, 0,66, 0,63" - short: True + short: true - title: System B value: 'load average: 5,16, 4,64, 2,43' - short: True + short: true - name: Use the blocks API community.general.slack: diff --git a/plugins/modules/notification/syslogger.py b/plugins/modules/notification/syslogger.py index 07cdb87227..5fc21a9dc1 100644 --- a/plugins/modules/notification/syslogger.py +++ b/plugins/modules/notification/syslogger.py @@ -18,7 +18,7 @@ options: type: str description: - This is the message to place in syslog. - required: True + required: true priority: type: str description: @@ -37,7 +37,7 @@ options: description: - Log the PID in brackets. type: bool - default: False + default: false ident: description: - Specify the name of application name which is sending the log to syslog. @@ -88,7 +88,7 @@ log_pid: description: Log PID status returned: always type: bool - sample: True + sample: true msg: description: Message sent to syslog returned: always diff --git a/plugins/modules/notification/telegram.py b/plugins/modules/notification/telegram.py index c647565fd4..499af4ef1a 100644 --- a/plugins/modules/notification/telegram.py +++ b/plugins/modules/notification/telegram.py @@ -54,8 +54,8 @@ EXAMPLES = """ chat_id: 000000 parse_mode: "markdown" text: "Your precious application has been deployed: https://example.com" - disable_web_page_preview: True - disable_notification: True + disable_web_page_preview: true + disable_notification: true - name: Forward message to someone community.general.telegram: @@ -64,7 +64,7 @@ EXAMPLES = """ api_args: chat_id: 000000 from_chat_id: 111111 - disable_notification: True + disable_notification: true message_id: '{{ saved_msg_id }}' """ diff --git a/plugins/modules/packaging/language/cpanm.py b/plugins/modules/packaging/language/cpanm.py index 1e85ac04c3..aba4e9d56e 100644 --- a/plugins/modules/packaging/language/cpanm.py +++ b/plugins/modules/packaging/language/cpanm.py @@ -113,7 +113,7 @@ EXAMPLES = ''' - name: Install Dancer perl package without running the unit tests in indicated locallib community.general.cpanm: name: Dancer - notest: True + notest: true locallib: /srv/webapps/my_app/extlib - name: Install Dancer perl package from a specific mirror diff --git a/plugins/modules/packaging/language/pip_package_info.py b/plugins/modules/packaging/language/pip_package_info.py index e5d3acae6f..6931366c87 100644 --- a/plugins/modules/packaging/language/pip_package_info.py +++ b/plugins/modules/packaging/language/pip_package_info.py @@ -20,7 +20,7 @@ options: - A list of the pip executables that will be used to get the packages. They can be supplied with the full path or just the executable name, for example C(pip3.7). default: ['pip'] - required: False + required: false type: list elements: path requirements: diff --git a/plugins/modules/packaging/os/homebrew_cask.py b/plugins/modules/packaging/os/homebrew_cask.py index 8198c22b16..5937831962 100644 --- a/plugins/modules/packaging/os/homebrew_cask.py +++ b/plugins/modules/packaging/os/homebrew_cask.py @@ -111,7 +111,7 @@ EXAMPLES = ''' community.general.homebrew_cask: name: alfred state: present - accept_external_apps: True + accept_external_apps: true - name: Remove cask with force option community.general.homebrew_cask: @@ -133,7 +133,7 @@ EXAMPLES = ''' community.general.homebrew_cask: name: 1password state: upgraded - greedy: True + greedy: true - name: Using sudo password for installing cask community.general.homebrew_cask: diff --git a/plugins/modules/packaging/os/rhsm_repository.py b/plugins/modules/packaging/os/rhsm_repository.py index 5a42f95b86..2ff0cd4c96 100644 --- a/plugins/modules/packaging/os/rhsm_repository.py +++ b/plugins/modules/packaging/os/rhsm_repository.py @@ -65,7 +65,7 @@ EXAMPLES = ''' - name: Disable all repositories except rhel-7-server-rpms community.general.rhsm_repository: name: rhel-7-server-rpms - purge: True + purge: true ''' RETURN = ''' diff --git a/plugins/modules/packaging/os/rpm_ostree_pkg.py b/plugins/modules/packaging/os/rpm_ostree_pkg.py index 61d8c9b057..5f7632b1e1 100644 --- a/plugins/modules/packaging/os/rpm_ostree_pkg.py +++ b/plugins/modules/packaging/os/rpm_ostree_pkg.py @@ -62,7 +62,7 @@ changed: description: State changes. returned: always type: bool - sample: True + sample: true action: description: Action performed. returned: always diff --git a/plugins/modules/remote_management/manageiq/manageiq_alert_profiles.py b/plugins/modules/remote_management/manageiq/manageiq_alert_profiles.py index e5b5944d1e..1ea5c57b09 100644 --- a/plugins/modules/remote_management/manageiq/manageiq_alert_profiles.py +++ b/plugins/modules/remote_management/manageiq/manageiq_alert_profiles.py @@ -65,7 +65,7 @@ EXAMPLES = ''' url: 'http://127.0.0.1:3000' username: 'admin' password: 'smartvm' - validate_certs: False + validate_certs: false - name: Delete an alert profile from ManageIQ community.general.manageiq_alert_profiles: @@ -75,7 +75,7 @@ EXAMPLES = ''' url: 'http://127.0.0.1:3000' username: 'admin' password: 'smartvm' - validate_certs: False + validate_certs: false ''' RETURN = ''' diff --git a/plugins/modules/remote_management/manageiq/manageiq_alerts.py b/plugins/modules/remote_management/manageiq/manageiq_alerts.py index a500653282..d12ebd6ea6 100644 --- a/plugins/modules/remote_management/manageiq/manageiq_alerts.py +++ b/plugins/modules/remote_management/manageiq/manageiq_alerts.py @@ -26,7 +26,7 @@ options: description: - absent - alert should not exist, - present - alert should exist, - required: False + required: false choices: ['absent', 'present'] default: 'present' description: @@ -84,7 +84,7 @@ EXAMPLES = ''' url: 'http://127.0.0.1:3000' username: 'admin' password: 'smartvm' - validate_certs: False + validate_certs: false - name: Add an alert with a "miq expression" to ManageIQ community.general.manageiq_alerts: @@ -111,7 +111,7 @@ EXAMPLES = ''' url: 'http://127.0.0.1:3000' username: 'admin' password: 'smartvm' - validate_certs: False + validate_certs: false - name: Delete an alert from ManageIQ community.general.manageiq_alerts: @@ -121,7 +121,7 @@ EXAMPLES = ''' url: 'http://127.0.0.1:3000' username: 'admin' password: 'smartvm' - validate_certs: False + validate_certs: false ''' RETURN = ''' diff --git a/plugins/modules/remote_management/manageiq/manageiq_group.py b/plugins/modules/remote_management/manageiq/manageiq_group.py index a1fbc758b6..509de77e21 100644 --- a/plugins/modules/remote_management/manageiq/manageiq_group.py +++ b/plugins/modules/remote_management/manageiq/manageiq_group.py @@ -99,7 +99,7 @@ EXAMPLES = ''' url: 'https://manageiq_server' username: 'admin' password: 'smartvm' - validate_certs: False + validate_certs: false - name: Create a group in ManageIQ with the role EvmRole-user and tenant with tenant_id 4 community.general.manageiq_group: @@ -110,7 +110,7 @@ EXAMPLES = ''' url: 'https://manageiq_server' username: 'admin' password: 'smartvm' - validate_certs: False + validate_certs: false - name: - Create or update a group in ManageIQ with the role EvmRole-user and tenant my_tenant. @@ -136,7 +136,7 @@ EXAMPLES = ''' url: 'https://manageiq_server' username: 'admin' password: 'smartvm' - validate_certs: False + validate_certs: false - name: Delete a group in ManageIQ community.general.manageiq_group: diff --git a/plugins/modules/remote_management/manageiq/manageiq_policies.py b/plugins/modules/remote_management/manageiq/manageiq_policies.py index 38018771fc..3d54a7b5aa 100644 --- a/plugins/modules/remote_management/manageiq/manageiq_policies.py +++ b/plugins/modules/remote_management/manageiq/manageiq_policies.py @@ -68,7 +68,7 @@ EXAMPLES = ''' url: 'http://127.0.0.1:3000' username: 'admin' password: 'smartvm' - validate_certs: False + validate_certs: false - name: Unassign a policy_profile for a provider in ManageIQ community.general.manageiq_policies: @@ -81,7 +81,7 @@ EXAMPLES = ''' url: 'http://127.0.0.1:3000' username: 'admin' password: 'smartvm' - validate_certs: False + validate_certs: false - name: List current policy_profile and policies for a provider in ManageIQ community.general.manageiq_policies: @@ -92,7 +92,7 @@ EXAMPLES = ''' url: 'http://127.0.0.1:3000' username: 'admin' password: 'smartvm' - validate_certs: False + validate_certs: false ''' RETURN = ''' diff --git a/plugins/modules/remote_management/manageiq/manageiq_tags.py b/plugins/modules/remote_management/manageiq/manageiq_tags.py index cb85796455..d8db5960ff 100644 --- a/plugins/modules/remote_management/manageiq/manageiq_tags.py +++ b/plugins/modules/remote_management/manageiq/manageiq_tags.py @@ -71,7 +71,7 @@ EXAMPLES = ''' url: 'http://127.0.0.1:3000' username: 'admin' password: 'smartvm' - validate_certs: False + validate_certs: false - name: Create new tags for a provider in ManageIQ community.general.manageiq_tags: @@ -86,7 +86,7 @@ EXAMPLES = ''' url: 'http://127.0.0.1:3000' username: 'admin' password: 'smartvm' - validate_certs: False + validate_certs: false - name: Remove tags for a provider in ManageIQ community.general.manageiq_tags: @@ -102,7 +102,7 @@ EXAMPLES = ''' url: 'http://127.0.0.1:3000' username: 'admin' password: 'smartvm' - validate_certs: False + validate_certs: false - name: List current tags for a provider in ManageIQ community.general.manageiq_tags: @@ -113,7 +113,7 @@ EXAMPLES = ''' url: 'http://127.0.0.1:3000' username: 'admin' password: 'smartvm' - validate_certs: False + validate_certs: false ''' RETURN = ''' diff --git a/plugins/modules/remote_management/manageiq/manageiq_tenant.py b/plugins/modules/remote_management/manageiq/manageiq_tenant.py index 2cd8deea64..f696934b2f 100644 --- a/plugins/modules/remote_management/manageiq/manageiq_tenant.py +++ b/plugins/modules/remote_management/manageiq/manageiq_tenant.py @@ -77,7 +77,7 @@ EXAMPLES = ''' url: 'http://127.0.0.1:3000' username: 'admin' password: 'smartvm' - validate_certs: False + validate_certs: false - name: Create a tenant in ManageIQ community.general.manageiq_tenant: @@ -88,7 +88,7 @@ EXAMPLES = ''' url: 'http://127.0.0.1:3000' username: 'admin' password: 'smartvm' - validate_certs: False + validate_certs: false - name: Delete a tenant in ManageIQ community.general.manageiq_tenant: @@ -99,7 +99,7 @@ EXAMPLES = ''' url: 'http://127.0.0.1:3000' username: 'admin' password: 'smartvm' - validate_certs: False + validate_certs: false - name: Set tenant quota for cpu_allocated, mem_allocated, remove quota for vms_allocated community.general.manageiq_tenant: @@ -113,7 +113,7 @@ EXAMPLES = ''' url: 'http://127.0.0.1:3000' username: 'admin' password: 'smartvm' - validate_certs: False + validate_certs: false - name: Delete a tenant in ManageIQ using a token @@ -124,7 +124,7 @@ EXAMPLES = ''' manageiq_connection: url: 'http://127.0.0.1:3000' token: 'sometoken' - validate_certs: False + validate_certs: false ''' RETURN = ''' diff --git a/plugins/modules/remote_management/manageiq/manageiq_user.py b/plugins/modules/remote_management/manageiq/manageiq_user.py index 42a507924f..b9b69182cb 100644 --- a/plugins/modules/remote_management/manageiq/manageiq_user.py +++ b/plugins/modules/remote_management/manageiq/manageiq_user.py @@ -68,7 +68,7 @@ EXAMPLES = ''' url: 'http://127.0.0.1:3000' username: 'admin' password: 'smartvm' - validate_certs: False + validate_certs: false - name: Create a new user in ManageIQ using a token community.general.manageiq_user: @@ -80,7 +80,7 @@ EXAMPLES = ''' manageiq_connection: url: 'http://127.0.0.1:3000' token: 'sometoken' - validate_certs: False + validate_certs: false - name: Delete a user in ManageIQ community.general.manageiq_user: @@ -90,7 +90,7 @@ EXAMPLES = ''' url: 'http://127.0.0.1:3000' username: 'admin' password: 'smartvm' - validate_certs: False + validate_certs: false - name: Delete a user in ManageIQ using a token community.general.manageiq_user: @@ -99,7 +99,7 @@ EXAMPLES = ''' manageiq_connection: url: 'http://127.0.0.1:3000' token: 'sometoken' - validate_certs: False + validate_certs: false - name: Update email of user in ManageIQ community.general.manageiq_user: @@ -109,7 +109,7 @@ EXAMPLES = ''' url: 'http://127.0.0.1:3000' username: 'admin' password: 'smartvm' - validate_certs: False + validate_certs: false - name: Update email of user in ManageIQ using a token community.general.manageiq_user: @@ -118,7 +118,7 @@ EXAMPLES = ''' manageiq_connection: url: 'http://127.0.0.1:3000' token: 'sometoken' - validate_certs: False + validate_certs: false ''' RETURN = ''' diff --git a/plugins/modules/remote_management/redfish/redfish_command.py b/plugins/modules/remote_management/redfish/redfish_command.py index 35a12eb8c1..4ab519f5a4 100644 --- a/plugins/modules/remote_management/redfish/redfish_command.py +++ b/plugins/modules/remote_management/redfish/redfish_command.py @@ -182,13 +182,13 @@ options: description: - Indicates that the image is treated as inserted on command completion. type: bool - default: True + default: true write_protected: required: false description: - Indicates that the media is treated as write-protected. type: bool - default: True + default: true username: required: false description: diff --git a/plugins/modules/remote_management/redfish/redfish_config.py b/plugins/modules/remote_management/redfish/redfish_config.py index 448f2d573f..c583fb6cb2 100644 --- a/plugins/modules/remote_management/redfish/redfish_config.py +++ b/plugins/modules/remote_management/redfish/redfish_config.py @@ -191,10 +191,10 @@ EXAMPLES = ''' command: SetNetworkProtocols network_protocols: SNMP: - ProtocolEnabled: True + ProtocolEnabled: true Port: 161 HTTP: - ProtocolEnabled: False + ProtocolEnabled: false Port: 8080 baseuri: "{{ baseuri }}" username: "{{ username }}" @@ -206,7 +206,7 @@ EXAMPLES = ''' command: SetManagerNic nic_config: DHCPv4: - DHCPEnabled: False + DHCPEnabled: false IPv4StaticAddresses: Address: 192.168.1.3 Gateway: 192.168.1.1 diff --git a/plugins/modules/remote_management/stacki/stacki_host.py b/plugins/modules/remote_management/stacki/stacki_host.py index 9b46698a02..2e339bf280 100644 --- a/plugins/modules/remote_management/stacki/stacki_host.py +++ b/plugins/modules/remote_management/stacki/stacki_host.py @@ -19,23 +19,23 @@ options: name: description: - Name of the host to be added to Stacki. - required: True + required: true type: str stacki_user: description: - Username for authenticating with Stacki API, but if not specified, the environment variable C(stacki_user) is used instead. - required: True + required: true type: str stacki_password: description: - Password for authenticating with Stacki API, but if not specified, the environment variable C(stacki_password) is used instead. - required: True + required: true type: str stacki_endpoint: description: - URL for the Stacki API Endpoint. - required: True + required: true type: str prim_intf_mac: description: diff --git a/plugins/modules/source_control/bitbucket/bitbucket_pipeline_variable.py b/plugins/modules/source_control/bitbucket/bitbucket_pipeline_variable.py index 4c465482d0..daf65d0b4d 100644 --- a/plugins/modules/source_control/bitbucket/bitbucket_pipeline_variable.py +++ b/plugins/modules/source_control/bitbucket/bitbucket_pipeline_variable.py @@ -66,8 +66,8 @@ EXAMPLES = r''' secured: '{{ item.secured }}' state: present with_items: - - { name: AWS_ACCESS_KEY, value: ABCD1234, secured: False } - - { name: AWS_SECRET, value: qwe789poi123vbn0, secured: True } + - { name: AWS_ACCESS_KEY, value: ABCD1234, secured: false } + - { name: AWS_SECRET, value: qwe789poi123vbn0, secured: true } - name: Remove pipeline variable community.general.bitbucket_pipeline_variable: diff --git a/plugins/modules/source_control/github/github_key.py b/plugins/modules/source_control/github/github_key.py index 23b5d53324..5dfd694275 100644 --- a/plugins/modules/source_control/github/github_key.py +++ b/plugins/modules/source_control/github/github_key.py @@ -51,17 +51,17 @@ deleted_keys: description: An array of key objects that were deleted. Only present on state=absent type: list returned: When state=absent - sample: [{'id': 0, 'key': 'BASE64 encoded key', 'url': 'http://example.com/github key', 'created_at': 'YYYY-MM-DDTHH:MM:SZ', 'read_only': False}] + sample: [{'id': 0, 'key': 'BASE64 encoded key', 'url': 'http://example.com/github key', 'created_at': 'YYYY-MM-DDTHH:MM:SZ', 'read_only': false}] matching_keys: description: An array of keys matching the specified name. Only present on state=present type: list returned: When state=present - sample: [{'id': 0, 'key': 'BASE64 encoded key', 'url': 'http://example.com/github key', 'created_at': 'YYYY-MM-DDTHH:MM:SZ', 'read_only': False}] + sample: [{'id': 0, 'key': 'BASE64 encoded key', 'url': 'http://example.com/github key', 'created_at': 'YYYY-MM-DDTHH:MM:SZ', 'read_only': false}] key: description: Metadata about the key just created. Only present on state=present type: dict returned: success - sample: {'id': 0, 'key': 'BASE64 encoded key', 'url': 'http://example.com/github key', 'created_at': 'YYYY-MM-DDTHH:MM:SZ', 'read_only': False} + sample: {'id': 0, 'key': 'BASE64 encoded key', 'url': 'http://example.com/github key', 'created_at': 'YYYY-MM-DDTHH:MM:SZ', 'read_only': false} ''' EXAMPLES = ''' diff --git a/plugins/modules/source_control/github/github_webhook.py b/plugins/modules/source_control/github/github_webhook.py index 007d2fadc2..b97087d221 100644 --- a/plugins/modules/source_control/github/github_webhook.py +++ b/plugins/modules/source_control/github/github_webhook.py @@ -113,7 +113,7 @@ EXAMPLES = ''' url: https://jenkins.example.com/ghprbhook/ content_type: json secret: "{{ github_shared_secret }}" - insecure_ssl: True + insecure_ssl: true events: - issue_comment - pull_request diff --git a/plugins/modules/source_control/gitlab/gitlab_group.py b/plugins/modules/source_control/gitlab/gitlab_group.py index 5585ea2bc9..8dbe33e6f4 100644 --- a/plugins/modules/source_control/gitlab/gitlab_group.py +++ b/plugins/modules/source_control/gitlab/gitlab_group.py @@ -94,14 +94,14 @@ EXAMPLES = ''' community.general.gitlab_group: api_url: https://gitlab.example.com/ api_token: "{{ access_token }}" - validate_certs: False + validate_certs: false name: my_first_group state: absent - name: "Create GitLab Group" community.general.gitlab_group: api_url: https://gitlab.example.com/ - validate_certs: True + validate_certs: true api_username: dj-wasabi api_password: "MySecretPassword" name: my_first_group @@ -112,7 +112,7 @@ EXAMPLES = ''' - name: "Create GitLab SubGroup" community.general.gitlab_group: api_url: https://gitlab.example.com/ - validate_certs: True + validate_certs: true api_username: dj-wasabi api_password: "MySecretPassword" name: my_first_group @@ -124,7 +124,7 @@ EXAMPLES = ''' - name: "Create GitLab Group for SubGroups only" community.general.gitlab_group: api_url: https://gitlab.example.com/ - validate_certs: True + validate_certs: true api_username: dj-wasabi api_password: "MySecretPassword" name: my_main_group diff --git a/plugins/modules/source_control/gitlab/gitlab_project.py b/plugins/modules/source_control/gitlab/gitlab_project.py index 63a94bd444..2f3fc39a0c 100644 --- a/plugins/modules/source_control/gitlab/gitlab_project.py +++ b/plugins/modules/source_control/gitlab/gitlab_project.py @@ -186,7 +186,7 @@ EXAMPLES = r''' community.general.gitlab_project: api_url: https://gitlab.example.com/ api_token: "{{ access_token }}" - validate_certs: False + validate_certs: false name: my_first_project state: absent delegate_to: localhost @@ -194,15 +194,15 @@ EXAMPLES = r''' - name: Create GitLab Project in group Ansible community.general.gitlab_project: api_url: https://gitlab.example.com/ - validate_certs: True + validate_certs: true api_username: dj-wasabi api_password: "MySecretPassword" name: my_first_project group: ansible - issues_enabled: False + issues_enabled: false merge_method: rebase_merge - wiki_enabled: True - snippets_enabled: True + wiki_enabled: true + snippets_enabled: true import_url: http://git.example.com/example/lab.git initialize_with_readme: true state: present diff --git a/plugins/modules/source_control/gitlab/gitlab_project_members.py b/plugins/modules/source_control/gitlab/gitlab_project_members.py index 1fe0c818de..f1144680bb 100644 --- a/plugins/modules/source_control/gitlab/gitlab_project_members.py +++ b/plugins/modules/source_control/gitlab/gitlab_project_members.py @@ -91,7 +91,7 @@ EXAMPLES = r''' community.general.gitlab_project_members: api_url: 'https://gitlab.example.com' api_token: 'Your-Private-Token' - validate_certs: True + validate_certs: true project: projectname gitlab_user: username access_level: developer @@ -101,7 +101,7 @@ EXAMPLES = r''' community.general.gitlab_project_members: api_url: 'https://gitlab.example.com' api_token: 'Your-Private-Token' - validate_certs: False + validate_certs: false project: projectname gitlab_user: username state: absent diff --git a/plugins/modules/source_control/gitlab/gitlab_runner.py b/plugins/modules/source_control/gitlab/gitlab_runner.py index f79bbc2628..14548c2c72 100644 --- a/plugins/modules/source_control/gitlab/gitlab_runner.py +++ b/plugins/modules/source_control/gitlab/gitlab_runner.py @@ -46,14 +46,14 @@ options: description: description: - The unique name of the runner. - required: True + required: true type: str aliases: - name state: description: - Make sure that the runner with the same name exists with the same configuration or delete the runner with the same name. - required: False + required: false default: present choices: ["present", "absent"] type: str @@ -72,39 +72,39 @@ options: active: description: - Define if the runners is immediately active after creation. - required: False + required: false default: true type: bool locked: description: - Determines if the runner is locked or not. - required: False - default: False + required: false + default: false type: bool access_level: description: - Determines if a runner can pick up jobs only from protected branches. - If set to C(ref_protected), runner can pick up jobs only from protected branches. - If set to C(not_protected), runner can pick up jobs from both protected and unprotected branches. - required: False + required: false default: ref_protected choices: ["ref_protected", "not_protected"] type: str maximum_timeout: description: - The maximum time that a runner has to complete a specific job. - required: False + required: false default: 3600 type: int run_untagged: description: - Run untagged jobs or not. - required: False + required: false default: true type: bool tag_list: description: The tags that apply to the runner. - required: False + required: false default: [] type: list elements: str @@ -118,10 +118,10 @@ EXAMPLES = ''' registration_token: 4gfdsg345 description: Docker Machine t1 state: present - active: True + active: true tag_list: ['docker'] - run_untagged: False - locked: False + run_untagged: false + locked: false - name: "Delete runner" community.general.gitlab_runner: diff --git a/plugins/modules/source_control/gitlab/gitlab_user.py b/plugins/modules/source_control/gitlab/gitlab_user.py index 14be4bd177..35bda030fc 100644 --- a/plugins/modules/source_control/gitlab/gitlab_user.py +++ b/plugins/modules/source_control/gitlab/gitlab_user.py @@ -144,14 +144,14 @@ EXAMPLES = ''' community.general.gitlab_user: api_url: https://gitlab.example.com/ api_token: "{{ access_token }}" - validate_certs: False + validate_certs: false username: myusername state: absent - name: "Create GitLab User" community.general.gitlab_user: api_url: https://gitlab.example.com/ - validate_certs: True + validate_certs: true api_username: dj-wasabi api_password: "MySecretPassword" name: My Name @@ -167,7 +167,7 @@ EXAMPLES = ''' - name: "Create GitLab User using external identity provider" community.general.gitlab_user: api_url: https://gitlab.example.com/ - validate_certs: True + validate_certs: true api_token: "{{ access_token }}" name: My Name username: myusername @@ -184,7 +184,7 @@ EXAMPLES = ''' community.general.gitlab_user: api_url: https://gitlab.example.com/ api_token: "{{ access_token }}" - validate_certs: False + validate_certs: false username: myusername state: blocked @@ -192,7 +192,7 @@ EXAMPLES = ''' community.general.gitlab_user: api_url: https://gitlab.example.com/ api_token: "{{ access_token }}" - validate_certs: False + validate_certs: false username: myusername state: unblocked ''' diff --git a/plugins/modules/storage/pmem/pmem.py b/plugins/modules/storage/pmem/pmem.py index b2027642b3..8cc14c4693 100644 --- a/plugins/modules/storage/pmem/pmem.py +++ b/plugins/modules/storage/pmem/pmem.py @@ -117,7 +117,7 @@ reboot_required: description: Indicates that the system reboot is required to complete the PMem configuration. returned: success type: bool - sample: True + sample: true result: description: - Shows the value of AppDirect, Memory Mode and Reserved size in bytes. @@ -173,7 +173,7 @@ EXAMPLES = r''' - name: Configure the Pmem as AppDirect with not interleaved 10, Memory Mode 70, and the Reserved 20 percent. community.general.pmem: appdirect: 10 - appdirect_interleaved: False + appdirect_interleaved: false memorymode: 70 - name: Configure the Pmem each socket. @@ -181,7 +181,7 @@ EXAMPLES = r''' socket: - id: 0 appdirect: 10 - appdirect_interleaved: False + appdirect_interleaved: false memorymode: 70 reserved: 20 - id: 1 diff --git a/plugins/modules/storage/zfs/zfs_facts.py b/plugins/modules/storage/zfs/zfs_facts.py index 2b11f8a090..ee0884f995 100644 --- a/plugins/modules/storage/zfs/zfs_facts.py +++ b/plugins/modules/storage/zfs/zfs_facts.py @@ -80,12 +80,12 @@ parsable: description: if parsable output should be provided in machine friendly format. returned: if 'parsable' is set to True type: bool - sample: True + sample: true recurse: description: if we should recurse over ZFS dataset returned: if 'recurse' is set to True type: bool - sample: True + sample: true zfs_datasets: description: ZFS dataset facts returned: always diff --git a/plugins/modules/storage/zfs/zpool_facts.py b/plugins/modules/storage/zfs/zpool_facts.py index 3aa953fcae..a749438659 100644 --- a/plugins/modules/storage/zfs/zpool_facts.py +++ b/plugins/modules/storage/zfs/zpool_facts.py @@ -28,7 +28,7 @@ options: - Specifies if property values should be displayed in machine friendly format. type: bool - default: False + default: false required: false properties: description: @@ -113,7 +113,7 @@ parsable: description: if parsable output should be provided in machine friendly format. returned: if 'parsable' is set to True type: bool - sample: True + sample: true ''' from collections import defaultdict diff --git a/plugins/modules/system/beadm.py b/plugins/modules/system/beadm.py index a55aa23b3d..8f1726882b 100644 --- a/plugins/modules/system/beadm.py +++ b/plugins/modules/system/beadm.py @@ -22,7 +22,7 @@ options: description: - ZFS boot environment name. type: str - required: True + required: true aliases: [ "be" ] snapshot: description: @@ -133,7 +133,7 @@ force: description: If forced action is wanted returned: always type: bool - sample: False + sample: false ''' import os diff --git a/plugins/modules/system/java_cert.py b/plugins/modules/system/java_cert.py index 6d1df19093..89daddfcda 100644 --- a/plugins/modules/system/java_cert.py +++ b/plugins/modules/system/java_cert.py @@ -42,7 +42,7 @@ options: description: - Trust imported cert as CAcert. type: bool - default: False + default: false version_added: '0.2.0' pkcs12_path: description: @@ -122,7 +122,7 @@ EXAMPLES = r''' keystore_create: true state: present cert_alias: LE_RootCA - trust_cacert: True + trust_cacert: true - name: Import SSL certificate from google.com to a keystore, create it if it doesn't exist community.general.java_cert: diff --git a/plugins/modules/system/nosh.py b/plugins/modules/system/nosh.py index 190a26a55b..756f5fed42 100644 --- a/plugins/modules/system/nosh.py +++ b/plugins/modules/system/nosh.py @@ -132,7 +132,7 @@ enabled: description: whether the service is enabled at system bootstrap returned: success type: bool - sample: True + sample: true preset: description: whether the enabled status reflects the one set in the relevant C(*.preset) file returned: success @@ -177,7 +177,7 @@ status: description: [] # FIXME returned: success type: bool - sample: True + sample: true LogService: description: [] # FIXME returned: success @@ -322,7 +322,7 @@ user: description: whether the user-level service manager is called returned: success type: bool - sample: False + sample: false ''' diff --git a/plugins/modules/system/parted.py b/plugins/modules/system/parted.py index b2c76df6c4..ae5e7584d1 100644 --- a/plugins/modules/system/parted.py +++ b/plugins/modules/system/parted.py @@ -28,7 +28,7 @@ options: device: description: The block device (disk) where to operate. type: str - required: True + required: true align: description: Set alignment for newly created partitions. Use 'undefined' for parted default aligment. type: str diff --git a/plugins/modules/system/solaris_zone.py b/plugins/modules/system/solaris_zone.py index 972d9cf2db..5d07dbfc60 100644 --- a/plugins/modules/system/solaris_zone.py +++ b/plugins/modules/system/solaris_zone.py @@ -97,7 +97,7 @@ EXAMPLES = ''' name: zone1 state: present path: /zones/zone1 - sparse: True + sparse: true root_password: Be9oX7OSwWoU. config: 'set autoboot=true; add net; set physical=bge0; set address=10.1.1.1; end' diff --git a/plugins/modules/system/syspatch.py b/plugins/modules/system/syspatch.py index a184f3c66b..36b934f299 100644 --- a/plugins/modules/system/syspatch.py +++ b/plugins/modules/system/syspatch.py @@ -70,7 +70,7 @@ reboot_needed: description: Whether or not a reboot is required after an update. returned: always type: bool - sample: True + sample: true ''' from ansible.module_utils.basic import AnsibleModule diff --git a/plugins/modules/web_infrastructure/apache2_module.py b/plugins/modules/web_infrastructure/apache2_module.py index e887a628c8..65d2f689bf 100644 --- a/plugins/modules/web_infrastructure/apache2_module.py +++ b/plugins/modules/web_infrastructure/apache2_module.py @@ -31,13 +31,13 @@ options: - Identifier of the module as listed by C(apache2ctl -M). This is optional and usually determined automatically by the common convention of appending C(_module) to I(name) as well as custom exception for popular modules. - required: False + required: false force: description: - Force disabling of default modules and override Debian warnings. required: false type: bool - default: False + default: false state: type: str description: @@ -48,7 +48,7 @@ options: description: - Ignore configuration checks about inconsistent module configuration. Especially for mpm_* modules. type: bool - default: False + default: false requirements: ["a2enmod","a2dismod"] notes: - This does not work on RedHat-based distributions. It does work on Debian- and SuSE-based distributions. @@ -70,13 +70,13 @@ EXAMPLES = ''' community.general.apache2_module: state: absent name: autoindex - force: True + force: true - name: Disable mpm_worker and ignore warnings about missing mpm module community.general.apache2_module: state: absent name: mpm_worker - ignore_configcheck: True + ignore_configcheck: true - name: Enable dump_io module, which is identified as dumpio_module inside apache2 community.general.apache2_module: diff --git a/plugins/modules/web_infrastructure/deploy_helper.py b/plugins/modules/web_infrastructure/deploy_helper.py index b30470d38c..3d3fe08f28 100644 --- a/plugins/modules/web_infrastructure/deploy_helper.py +++ b/plugins/modules/web_infrastructure/deploy_helper.py @@ -34,7 +34,7 @@ description: options: path: type: path - required: True + required: true aliases: ['dest'] description: - The root path of the project. @@ -234,7 +234,7 @@ EXAMPLES = ''' path: /path/to/root release: '{{ deploy_helper.new_release }}' state: finalize - clean: False + clean: false - community.general.deploy_helper: path: /path/to/root state: clean diff --git a/plugins/modules/web_infrastructure/jenkins_job.py b/plugins/modules/web_infrastructure/jenkins_job.py index 063409510d..0ea52ab36b 100644 --- a/plugins/modules/web_infrastructure/jenkins_job.py +++ b/plugins/modules/web_infrastructure/jenkins_job.py @@ -114,7 +114,7 @@ EXAMPLES = ''' community.general.jenkins_job: name: test password: admin - enabled: False + enabled: false url: http://localhost:8080 user: admin @@ -122,7 +122,7 @@ EXAMPLES = ''' community.general.jenkins_job: name: test token: asdfasfasfasdfasdfadfasfasdfasdfc - enabled: False + enabled: false url: http://localhost:8080 user: admin ''' diff --git a/plugins/modules/web_infrastructure/jenkins_job_info.py b/plugins/modules/web_infrastructure/jenkins_job_info.py index f9909a9308..1195a3e03d 100644 --- a/plugins/modules/web_infrastructure/jenkins_job_info.py +++ b/plugins/modules/web_infrastructure/jenkins_job_info.py @@ -119,7 +119,7 @@ EXAMPLES = ''' user: admin token: 126df5c60d66c66e3b75b11104a16a8a url: https://jenkins.example.com - validate_certs: False + validate_certs: false register: my_jenkins_job_info ''' diff --git a/plugins/modules/web_infrastructure/rundeck_acl_policy.py b/plugins/modules/web_infrastructure/rundeck_acl_policy.py index e76b25e792..6168cb5b64 100644 --- a/plugins/modules/web_infrastructure/rundeck_acl_policy.py +++ b/plugins/modules/web_infrastructure/rundeck_acl_policy.py @@ -30,12 +30,12 @@ options: type: str description: - Sets the project name. - required: True + required: true url: type: str description: - Sets the rundeck instance URL. - required: True + required: true api_version: type: int description: @@ -46,7 +46,7 @@ options: type: str description: - Sets the token to authenticate against Rundeck API. - required: True + required: true project: type: str description: diff --git a/plugins/modules/web_infrastructure/rundeck_project.py b/plugins/modules/web_infrastructure/rundeck_project.py index 0c2fb8686e..88f4a78100 100644 --- a/plugins/modules/web_infrastructure/rundeck_project.py +++ b/plugins/modules/web_infrastructure/rundeck_project.py @@ -32,12 +32,12 @@ options: type: str description: - Sets the project name. - required: True + required: true url: type: str description: - Sets the rundeck instance URL. - required: True + required: true api_version: type: int description: @@ -48,7 +48,7 @@ options: type: str description: - Sets the token to authenticate against Rundeck API. - required: True + required: true client_cert: version_added: '0.2.0' client_key: diff --git a/plugins/modules/web_infrastructure/sophos_utm/utm_ca_host_key_cert.py b/plugins/modules/web_infrastructure/sophos_utm/utm_ca_host_key_cert.py index 2dd066ec66..693f25964a 100644 --- a/plugins/modules/web_infrastructure/sophos_utm/utm_ca_host_key_cert.py +++ b/plugins/modules/web_infrastructure/sophos_utm/utm_ca_host_key_cert.py @@ -51,7 +51,7 @@ options: encrypted: description: - Optionally enable encryption. - default: False + default: false type: bool key: description: diff --git a/plugins/modules/web_infrastructure/sophos_utm/utm_dns_host.py b/plugins/modules/web_infrastructure/sophos_utm/utm_dns_host.py index 19eef74b52..387b8301a0 100644 --- a/plugins/modules/web_infrastructure/sophos_utm/utm_dns_host.py +++ b/plugins/modules/web_infrastructure/sophos_utm/utm_dns_host.py @@ -53,12 +53,12 @@ options: resolved: description: - whether the hostname's ipv4 address is already resolved or not - default: False + default: false type: bool resolved6: description: - whether the hostname's ipv6 address is already resolved or not - default: False + default: false type: bool timeout: type: int diff --git a/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_auth_profile.py b/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_auth_profile.py index 8ebdd7f32a..aab426cc03 100644 --- a/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_auth_profile.py +++ b/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_auth_profile.py @@ -52,7 +52,7 @@ options: description: - Should the login data be stripped when proxying the request to the backend host type: bool - default: True + default: true choices: - True - False @@ -112,7 +112,7 @@ options: description: - Allow session persistency type: bool - default: False + default: false choices: - True - False @@ -125,7 +125,7 @@ options: description: - Specifies if limitation of session lifetime is active type: bool - default: True + default: true choices: - True - False @@ -147,7 +147,7 @@ options: description: - Specifies if session timeout is active type: bool - default: True + default: true choices: - True - False @@ -178,7 +178,7 @@ options: description: - Should a redirect to the requested URL be made type: bool - default: False + default: false choices: - True - False diff --git a/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_exception.py b/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_exception.py index 29d35579b9..f322bc8216 100644 --- a/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_exception.py +++ b/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_exception.py @@ -27,7 +27,7 @@ options: name: description: - The name of the object. Will be used to identify the entry - required: True + required: true type: str op: description: @@ -36,7 +36,7 @@ options: choices: - 'AND' - 'OR' - required: False + required: false type: str path: description: @@ -44,82 +44,82 @@ options: type: list elements: str default: [] - required: False + required: false skip_custom_threats_filters: description: - A list of threats to be skipped type: list elements: str default: [] - required: False + required: false skip_threats_filter_categories: description: - Define which categories of threats are skipped type: list elements: str default: [] - required: False + required: false skipav: description: - Skip the Antivirus Scanning - default: False + default: false type: bool - required: False + required: false skipbadclients: description: - Block clients with bad reputation - default: False + default: false type: bool - required: False + required: false skipcookie: description: - Skip the Cookie Signing check - default: False + default: false type: bool - required: False + required: false skipform: description: - Enable form hardening - default: False + default: false type: bool - required: False + required: false skipform_missingtoken: description: - Enable form hardening with missing tokens - default: False + default: false type: bool - required: False + required: false skiphtmlrewrite: description: - Protection against SQL - default: False + default: false type: bool - required: False + required: false skiptft: description: - Enable true file type control - default: False + default: false type: bool - required: False + required: false skipurl: description: - Enable static URL hardening - default: False + default: false type: bool - required: False + required: false source: description: - Define which categories of threats are skipped type: list elements: str default: [] - required: False + required: false status: description: - Status of the exception rule set - default: True + default: true type: bool - required: False + required: false extends_documentation_fragment: - community.general.utm diff --git a/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_frontend.py b/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_frontend.py index 004b23d3e7..8f5a1e8686 100644 --- a/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_frontend.py +++ b/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_frontend.py @@ -33,7 +33,7 @@ options: description: - Whether to add the content type header or not type: bool - default: False + default: false address: type: str description: @@ -59,7 +59,7 @@ options: description: - Whether to enable the compression type: bool - default: False + default: false domain: type: list elements: str @@ -75,17 +75,17 @@ options: description: - Whether to enable html rewrite or not type: bool - default: False + default: false htmlrewrite_cookies: description: - Whether to enable html rewrite cookie or not type: bool - default: False + default: false implicitredirect: description: - Whether to enable implicit redirection or not type: bool - default: False + default: false lbmethod: type: str description: @@ -111,7 +111,7 @@ options: description: - Whether to preserve host header type: bool - default: False + default: false profile: type: str description: @@ -121,7 +121,7 @@ options: description: - Whether to activate the frontend entry or not type: bool - default: True + default: true type: type: str description: @@ -134,7 +134,7 @@ options: description: - Whether to pass the host header or not type: bool - default: False + default: false extends_documentation_fragment: - community.general.utm diff --git a/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_location.py b/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_location.py index 11b3929e2b..5864cf1924 100644 --- a/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_location.py +++ b/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_location.py @@ -72,7 +72,7 @@ options: description: - Activate hot standby mode type: bool - default: False + default: false path: type: str description: @@ -82,7 +82,7 @@ options: description: - Whether the location is active or not type: bool - default: True + default: true stickysession_id: type: str description: @@ -92,12 +92,12 @@ options: description: - Enable the stickysession type: bool - default: False + default: false websocket_passthrough: description: - Enable the websocket passthrough type: bool - default: False + default: false extends_documentation_fragment: - community.general.utm diff --git a/plugins/modules/web_infrastructure/taiga_issue.py b/plugins/modules/web_infrastructure/taiga_issue.py index 78505afb76..25f6557ea2 100644 --- a/plugins/modules/web_infrastructure/taiga_issue.py +++ b/plugins/modules/web_infrastructure/taiga_issue.py @@ -27,17 +27,17 @@ options: type: str description: - Name of the project containing the issue. Must exist previously. - required: True + required: true subject: type: str description: - The issue subject. - required: True + required: true issue_type: type: str description: - The issue type. Must exist previously. - required: True + required: true priority: type: str description: