From 41cfdda6a3cdd952645b40d4c9da817375e878c2 Mon Sep 17 00:00:00 2001 From: Andrew Klychkov Date: Mon, 13 Jul 2020 22:50:31 +0300 Subject: [PATCH] modules: fix examples to use FQCN (#644) * modules: fix examples to use FQCN * fix * fix * fix --- .../modules/cloud/alicloud/ali_instance.py | 6 +-- .../cloud/alicloud/ali_instance_info.py | 8 ++-- .../modules/cloud/atomic/atomic_container.py | 4 +- plugins/modules/cloud/atomic/atomic_host.py | 4 +- plugins/modules/cloud/atomic/atomic_image.py | 4 +- .../cloud/centurylink/clc_aa_policy.py | 4 +- .../cloud/centurylink/clc_alert_policy.py | 4 +- .../centurylink/clc_blueprint_package.py | 2 +- .../modules/cloud/centurylink/clc_group.py | 4 +- .../cloud/centurylink/clc_loadbalancer.py | 10 ++-- .../cloud/centurylink/clc_modify_server.py | 14 +++--- .../modules/cloud/centurylink/clc_publicip.py | 4 +- .../modules/cloud/centurylink/clc_server.py | 10 ++-- .../cloud/centurylink/clc_server_snapshot.py | 6 +-- .../dimensiondata/dimensiondata_network.py | 6 +-- .../cloud/dimensiondata/dimensiondata_vlan.py | 6 +-- .../modules/cloud/docker/docker_compose.py | 20 ++++---- plugins/modules/cloud/docker/docker_config.py | 14 +++--- .../modules/cloud/docker/docker_container.py | 44 ++++++++--------- .../cloud/docker/docker_container_info.py | 2 +- .../modules/cloud/docker/docker_host_info.py | 10 ++-- plugins/modules/cloud/docker/docker_image.py | 20 ++++---- .../modules/cloud/docker/docker_image_info.py | 4 +- plugins/modules/cloud/docker/docker_login.py | 8 ++-- .../modules/cloud/docker/docker_network.py | 20 ++++---- .../cloud/docker/docker_network_info.py | 2 +- plugins/modules/cloud/docker/docker_node.py | 12 ++--- .../modules/cloud/docker/docker_node_info.py | 8 ++-- plugins/modules/cloud/docker/docker_prune.py | 6 +-- plugins/modules/cloud/docker/docker_secret.py | 14 +++--- plugins/modules/cloud/docker/docker_stack.py | 6 +-- plugins/modules/cloud/docker/docker_swarm.py | 14 +++--- .../modules/cloud/docker/docker_swarm_info.py | 10 ++-- .../cloud/docker/docker_swarm_service.py | 32 ++++++------- .../cloud/docker/docker_swarm_service_info.py | 2 +- plugins/modules/cloud/docker/docker_volume.py | 6 +-- .../cloud/docker/docker_volume_info.py | 2 +- plugins/modules/cloud/google/gc_storage.py | 18 +++---- plugins/modules/cloud/google/gcdns_record.py | 26 +++++----- plugins/modules/cloud/google/gcdns_zone.py | 6 +-- plugins/modules/cloud/google/gce.py | 14 +++--- plugins/modules/cloud/google/gce_eip.py | 4 +- plugins/modules/cloud/google/gce_img.py | 8 ++-- .../cloud/google/gce_instance_template.py | 8 ++-- plugins/modules/cloud/google/gce_labels.py | 6 +-- plugins/modules/cloud/google/gce_mig.py | 10 ++-- plugins/modules/cloud/google/gce_net.py | 12 ++--- plugins/modules/cloud/google/gce_snapshot.py | 6 +-- plugins/modules/cloud/google/gce_tag.py | 6 +-- .../modules/cloud/google/gcp_target_proxy.py | 2 +- plugins/modules/cloud/google/gcp_url_map.py | 4 +- plugins/modules/cloud/google/gcspanner.py | 6 +-- .../cloud/heroku/heroku_collaborator.py | 4 +- .../modules/cloud/huawei/hwc_ecs_instance.py | 2 +- plugins/modules/cloud/huawei/hwc_evs_disk.py | 2 +- .../modules/cloud/huawei/hwc_network_vpc.py | 2 +- plugins/modules/cloud/huawei/hwc_smn_topic.py | 2 +- plugins/modules/cloud/huawei/hwc_vpc_eip.py | 2 +- .../cloud/huawei/hwc_vpc_peering_connect.py | 2 +- plugins/modules/cloud/huawei/hwc_vpc_port.py | 2 +- .../cloud/huawei/hwc_vpc_private_ip.py | 2 +- plugins/modules/cloud/huawei/hwc_vpc_route.py | 2 +- .../cloud/huawei/hwc_vpc_security_group.py | 2 +- .../huawei/hwc_vpc_security_group_rule.py | 2 +- .../modules/cloud/huawei/hwc_vpc_subnet.py | 2 +- .../cloud/kubevirt/kubevirt_cdi_upload.py | 2 +- .../modules/cloud/kubevirt/kubevirt_preset.py | 4 +- .../modules/cloud/kubevirt/kubevirt_pvc.py | 10 ++-- plugins/modules/cloud/kubevirt/kubevirt_rs.py | 4 +- .../cloud/kubevirt/kubevirt_template.py | 4 +- plugins/modules/cloud/kubevirt/kubevirt_vm.py | 16 +++---- plugins/modules/cloud/linode/linode.py | 14 +++--- plugins/modules/cloud/linode/linode_v4.py | 4 +- plugins/modules/cloud/lxc/lxc_container.py | 34 ++++++------- plugins/modules/cloud/lxd/lxd_container.py | 10 ++-- plugins/modules/cloud/lxd/lxd_profile.py | 8 ++-- .../modules/cloud/memset/memset_dns_reload.py | 2 +- .../cloud/memset/memset_memstore_info.py | 2 +- .../cloud/memset/memset_server_info.py | 2 +- plugins/modules/cloud/memset/memset_zone.py | 4 +- .../cloud/memset/memset_zone_domain.py | 2 +- .../cloud/memset/memset_zone_record.py | 6 +-- .../cloud/misc/cloud_init_data_facts.py | 4 +- plugins/modules/cloud/misc/helm.py | 8 ++-- plugins/modules/cloud/misc/ovirt.py | 10 ++-- plugins/modules/cloud/misc/proxmox.py | 30 ++++++------ plugins/modules/cloud/misc/proxmox_kvm.py | 34 ++++++------- .../modules/cloud/misc/proxmox_template.py | 8 ++-- plugins/modules/cloud/misc/rhevm.py | 12 ++--- plugins/modules/cloud/misc/serverless.py | 8 ++-- plugins/modules/cloud/misc/terraform.py | 6 +-- plugins/modules/cloud/misc/xenserver_facts.py | 2 +- .../oneandone/oneandone_firewall_policy.py | 14 +++--- .../oneandone/oneandone_load_balancer.py | 14 +++--- .../oneandone/oneandone_private_network.py | 10 ++-- .../cloud/oneandone/oneandone_public_ip.py | 6 +-- .../cloud/oneandone/oneandone_server.py | 10 ++-- .../cloud/online/online_server_facts.py | 2 +- .../cloud/online/online_server_info.py | 2 +- .../modules/cloud/online/online_user_facts.py | 2 +- .../modules/cloud/online/online_user_info.py | 2 +- plugins/modules/cloud/opennebula/one_host.py | 4 +- plugins/modules/cloud/opennebula/one_image.py | 12 ++--- .../cloud/opennebula/one_image_info.py | 10 ++-- .../modules/cloud/opennebula/one_service.py | 22 ++++----- plugins/modules/cloud/opennebula/one_vm.py | 48 +++++++++---------- plugins/modules/cloud/oracle/oci_vcn.py | 6 +-- plugins/modules/cloud/ovh/ovh_ip_failover.py | 6 +-- .../modules/cloud/ovh/ovh_monthly_billing.py | 4 +- plugins/modules/cloud/packet/packet_device.py | 10 ++-- .../modules/cloud/packet/packet_ip_subnet.py | 4 +- .../modules/cloud/packet/packet_project.py | 8 ++-- plugins/modules/cloud/packet/packet_sshkey.py | 6 +-- plugins/modules/cloud/packet/packet_volume.py | 4 +- .../cloud/packet/packet_volume_attachment.py | 4 +- .../cloud/profitbricks/profitbricks.py | 14 +++--- .../profitbricks/profitbricks_datacenter.py | 4 +- .../cloud/profitbricks/profitbricks_nic.py | 4 +- .../cloud/profitbricks/profitbricks_volume.py | 4 +- .../profitbricks_volume_attachments.py | 4 +- plugins/modules/cloud/pubnub/pubnub_blocks.py | 14 +++--- .../modules/cloud/rackspace/rax_clb_ssl.py | 4 +- plugins/modules/cloud/rackspace/rax_files.py | 22 ++++----- .../cloud/rackspace/rax_files_objects.py | 36 +++++++------- .../modules/cloud/rackspace/rax_mon_alarm.py | 2 +- .../modules/cloud/rackspace/rax_mon_check.py | 2 +- .../modules/cloud/rackspace/rax_mon_entity.py | 2 +- .../rackspace/rax_mon_notification_plan.py | 2 +- .../cloud/rackspace/rax_scaling_group.py | 2 +- .../cloud/rackspace/rax_scaling_policy.py | 6 +-- .../cloud/scaleway/scaleway_compute.py | 6 +-- .../cloud/scaleway/scaleway_image_facts.py | 2 +- .../cloud/scaleway/scaleway_image_info.py | 2 +- plugins/modules/cloud/scaleway/scaleway_ip.py | 4 +- .../cloud/scaleway/scaleway_ip_facts.py | 2 +- .../cloud/scaleway/scaleway_ip_info.py | 2 +- plugins/modules/cloud/scaleway/scaleway_lb.py | 4 +- .../scaleway/scaleway_organization_facts.py | 2 +- .../scaleway/scaleway_organization_info.py | 2 +- .../cloud/scaleway/scaleway_security_group.py | 2 +- .../scaleway/scaleway_security_group_facts.py | 2 +- .../scaleway/scaleway_security_group_info.py | 2 +- .../scaleway/scaleway_security_group_rule.py | 2 +- .../cloud/scaleway/scaleway_server_facts.py | 2 +- .../cloud/scaleway/scaleway_server_info.py | 2 +- .../cloud/scaleway/scaleway_snapshot_facts.py | 2 +- .../cloud/scaleway/scaleway_snapshot_info.py | 2 +- .../modules/cloud/scaleway/scaleway_sshkey.py | 6 +-- .../cloud/scaleway/scaleway_user_data.py | 2 +- .../modules/cloud/scaleway/scaleway_volume.py | 4 +- .../cloud/scaleway/scaleway_volume_facts.py | 2 +- .../cloud/scaleway/scaleway_volume_info.py | 2 +- plugins/modules/cloud/smartos/imgadm.py | 14 +++--- plugins/modules/cloud/smartos/nictagadm.py | 4 +- .../cloud/smartos/smartos_image_info.py | 6 +-- plugins/modules/cloud/smartos/vmadm.py | 6 +-- plugins/modules/cloud/softlayer/sl_vm.py | 6 +-- .../spotinst/spotinst_aws_elastigroup.py | 12 ++--- .../cloud/univention/udm_dns_record.py | 2 +- .../modules/cloud/univention/udm_dns_zone.py | 2 +- plugins/modules/cloud/univention/udm_group.py | 6 +-- plugins/modules/cloud/univention/udm_share.py | 2 +- plugins/modules/cloud/univention/udm_user.py | 6 +-- .../cloud/webfaction/webfaction_app.py | 2 +- .../modules/cloud/webfaction/webfaction_db.py | 2 +- .../cloud/webfaction/webfaction_domain.py | 4 +- .../cloud/webfaction/webfaction_mailbox.py | 2 +- .../cloud/webfaction/webfaction_site.py | 2 +- .../cloud/xenserver/xenserver_guest.py | 12 ++--- .../cloud/xenserver/xenserver_guest_info.py | 2 +- .../xenserver/xenserver_guest_powerstate.py | 2 +- plugins/modules/clustering/consul/consul.py | 18 +++---- .../modules/clustering/consul/consul_acl.py | 8 ++-- .../modules/clustering/consul/consul_kv.py | 10 ++-- .../clustering/consul/consul_session.py | 10 ++-- plugins/modules/clustering/etcd3.py | 6 +-- .../modules/clustering/pacemaker_cluster.py | 2 +- plugins/modules/clustering/znode.py | 12 ++--- .../aerospike/aerospike_migrations.py | 4 +- .../database/influxdb/influxdb_database.py | 6 +-- .../database/influxdb/influxdb_query.py | 4 +- .../influxdb/influxdb_retention_policy.py | 8 ++-- .../database/influxdb/influxdb_user.py | 10 ++-- .../database/influxdb/influxdb_write.py | 2 +- .../database/misc/elasticsearch_plugin.py | 10 ++-- .../modules/database/misc/kibana_plugin.py | 6 +-- plugins/modules/database/misc/redis.py | 14 +++--- plugins/modules/database/misc/riak.py | 6 +-- plugins/modules/database/mssql/mssql_db.py | 4 +- .../database/vertica/vertica_configuration.py | 2 +- .../modules/database/vertica/vertica_info.py | 2 +- .../modules/database/vertica/vertica_role.py | 4 +- .../database/vertica/vertica_schema.py | 6 +-- .../modules/database/vertica/vertica_user.py | 4 +- plugins/modules/files/archive.py | 16 +++---- plugins/modules/files/ini_file.py | 4 +- plugins/modules/files/iso_create.py | 4 +- plugins/modules/files/iso_extract.py | 2 +- plugins/modules/files/read_csv.py | 6 +-- plugins/modules/files/xattr.py | 10 ++-- plugins/modules/files/xml.py | 26 +++++----- plugins/modules/identity/ipa/ipa_config.py | 4 +- plugins/modules/identity/ipa/ipa_dnsrecord.py | 14 +++--- plugins/modules/identity/ipa/ipa_dnszone.py | 6 +-- plugins/modules/identity/ipa/ipa_group.py | 8 ++-- plugins/modules/identity/ipa/ipa_hbacrule.py | 6 +-- plugins/modules/identity/ipa/ipa_host.py | 24 +++++----- plugins/modules/identity/ipa/ipa_hostgroup.py | 4 +- plugins/modules/identity/ipa/ipa_role.py | 6 +-- plugins/modules/identity/ipa/ipa_service.py | 6 +-- plugins/modules/identity/ipa/ipa_subca.py | 6 +-- plugins/modules/identity/ipa/ipa_sudocmd.py | 4 +- .../modules/identity/ipa/ipa_sudocmdgroup.py | 4 +- plugins/modules/identity/ipa/ipa_sudorule.py | 4 +- plugins/modules/identity/ipa/ipa_user.py | 6 +-- plugins/modules/identity/ipa/ipa_vault.py | 10 ++-- .../identity/keycloak/keycloak_group.py | 10 ++-- plugins/modules/identity/onepassword_info.py | 6 +-- .../modules/monitoring/airbrake_deployment.py | 4 +- plugins/modules/monitoring/bigpanda.py | 8 ++-- .../modules/monitoring/circonus_annotation.py | 6 +-- .../monitoring/datadog/datadog_event.py | 4 +- .../monitoring/datadog/datadog_monitor.py | 10 ++-- .../monitoring/honeybadger_deployment.py | 2 +- plugins/modules/monitoring/icinga2_feature.py | 4 +- plugins/modules/monitoring/icinga2_host.py | 2 +- .../modules/monitoring/librato_annotation.py | 6 +-- plugins/modules/monitoring/logentries.py | 4 +- plugins/modules/monitoring/logstash_plugin.py | 8 ++-- plugins/modules/monitoring/monit.py | 2 +- plugins/modules/monitoring/nagios.py | 36 +++++++------- .../modules/monitoring/newrelic_deployment.py | 2 +- plugins/modules/monitoring/pagerduty.py | 14 +++--- plugins/modules/monitoring/pagerduty_alert.py | 8 ++-- plugins/modules/monitoring/pingdom.py | 4 +- .../modules/monitoring/rollbar_deployment.py | 4 +- .../modules/monitoring/sensu/sensu_check.py | 6 +-- .../modules/monitoring/sensu/sensu_client.py | 6 +-- .../modules/monitoring/sensu/sensu_handler.py | 6 +-- .../modules/monitoring/sensu/sensu_silence.py | 6 +-- .../monitoring/sensu/sensu_subscription.py | 4 +- plugins/modules/monitoring/stackdriver.py | 4 +- .../monitoring/statusio_maintenance.py | 8 ++-- plugins/modules/monitoring/uptimerobot.py | 4 +- plugins/modules/net_tools/cloudflare_dns.py | 22 ++++----- plugins/modules/net_tools/dnsimple.py | 16 +++---- plugins/modules/net_tools/dnsmadeeasy.py | 24 +++++----- plugins/modules/net_tools/haproxy.py | 24 +++++----- .../modules/net_tools/hetzner_failover_ip.py | 4 +- .../net_tools/hetzner_failover_ip_info.py | 2 +- plugins/modules/net_tools/hetzner_firewall.py | 2 +- .../net_tools/hetzner_firewall_info.py | 2 +- .../modules/net_tools/infinity/infinity.py | 2 +- plugins/modules/net_tools/ip_netns.py | 4 +- plugins/modules/net_tools/ipify_facts.py | 4 +- plugins/modules/net_tools/ipinfoio_facts.py | 2 +- plugins/modules/net_tools/ipwcli_dns.py | 6 +-- plugins/modules/net_tools/ldap/ldap_attr.py | 12 ++--- plugins/modules/net_tools/ldap/ldap_attrs.py | 14 +++--- plugins/modules/net_tools/ldap/ldap_entry.py | 8 ++-- plugins/modules/net_tools/ldap/ldap_passwd.py | 4 +- plugins/modules/net_tools/lldp.py | 2 +- plugins/modules/net_tools/netcup_dns.py | 10 ++-- .../modules/net_tools/nios/nios_a_record.py | 10 ++-- .../net_tools/nios/nios_aaaa_record.py | 8 ++-- .../net_tools/nios/nios_cname_record.py | 6 +-- .../modules/net_tools/nios/nios_dns_view.py | 8 ++-- .../net_tools/nios/nios_fixed_address.py | 8 ++-- .../net_tools/nios/nios_host_record.py | 18 +++---- plugins/modules/net_tools/nios/nios_member.py | 8 ++-- .../modules/net_tools/nios/nios_mx_record.py | 6 +-- .../net_tools/nios/nios_naptr_record.py | 6 +-- .../modules/net_tools/nios/nios_network.py | 14 +++--- .../net_tools/nios/nios_network_view.py | 8 ++-- .../modules/net_tools/nios/nios_nsgroup.py | 6 +-- .../modules/net_tools/nios/nios_ptr_record.py | 4 +- .../modules/net_tools/nios/nios_srv_record.py | 6 +-- .../modules/net_tools/nios/nios_txt_record.py | 4 +- plugins/modules/net_tools/nios/nios_zone.py | 14 +++--- plugins/modules/net_tools/nmcli.py | 38 +++++++-------- plugins/modules/net_tools/nsupdate.py | 10 ++-- plugins/modules/net_tools/omapi_host.py | 4 +- plugins/modules/net_tools/snmp_facts.py | 4 +- plugins/modules/notification/campfire.py | 4 +- plugins/modules/notification/catapult.py | 4 +- plugins/modules/notification/flowdock.py | 4 +- plugins/modules/notification/grove.py | 2 +- plugins/modules/notification/hipchat.py | 4 +- plugins/modules/notification/irc.py | 2 +- plugins/modules/notification/jabber.py | 6 +-- .../modules/notification/logentries_msg.py | 2 +- plugins/modules/notification/mail.py | 14 +++--- plugins/modules/notification/matrix.py | 4 +- plugins/modules/notification/mattermost.py | 4 +- plugins/modules/notification/mqtt.py | 2 +- plugins/modules/notification/nexmo.py | 2 +- .../notification/office_365_connector_card.py | 4 +- plugins/modules/notification/pushbullet.py | 8 ++-- plugins/modules/notification/pushover.py | 4 +- plugins/modules/notification/rocketchat.py | 8 ++-- plugins/modules/notification/say.py | 2 +- plugins/modules/notification/sendgrid.py | 4 +- plugins/modules/notification/slack.py | 18 +++---- plugins/modules/notification/syslogger.py | 6 +-- plugins/modules/notification/telegram.py | 2 +- plugins/modules/notification/twilio.py | 6 +-- plugins/modules/notification/typetalk.py | 2 +- plugins/modules/packaging/language/bower.py | 12 ++--- plugins/modules/packaging/language/bundler.py | 10 ++-- .../modules/packaging/language/composer.py | 8 ++-- plugins/modules/packaging/language/cpanm.py | 16 +++---- .../packaging/language/easy_install.py | 4 +- plugins/modules/packaging/language/gem.py | 6 +-- .../packaging/language/maven_artifact.py | 14 +++--- plugins/modules/packaging/language/npm.py | 16 +++---- plugins/modules/packaging/language/pear.py | 16 +++---- .../packaging/language/pip_package_info.py | 6 +-- plugins/modules/packaging/language/yarn.py | 14 +++--- plugins/modules/packaging/os/apk.py | 26 +++++----- plugins/modules/packaging/os/apt_repo.py | 6 +-- plugins/modules/packaging/os/apt_rpm.py | 10 ++-- plugins/modules/packaging/os/flatpak.py | 10 ++-- .../modules/packaging/os/flatpak_remote.py | 8 ++-- plugins/modules/packaging/os/homebrew.py | 22 ++++----- plugins/modules/packaging/os/homebrew_cask.py | 20 ++++---- plugins/modules/packaging/os/homebrew_tap.py | 8 ++-- plugins/modules/packaging/os/installp.py | 10 ++-- plugins/modules/packaging/os/layman.py | 10 ++-- plugins/modules/packaging/os/macports.py | 16 +++---- plugins/modules/packaging/os/mas.py | 12 ++--- plugins/modules/packaging/os/openbsd_pkg.py | 20 ++++---- plugins/modules/packaging/os/opkg.py | 10 ++-- plugins/modules/packaging/os/pacman.py | 20 ++++---- plugins/modules/packaging/os/pkg5.py | 8 ++-- .../modules/packaging/os/pkg5_publisher.py | 4 +- plugins/modules/packaging/os/pkgin.py | 18 +++---- plugins/modules/packaging/os/pkgng.py | 10 ++-- plugins/modules/packaging/os/pkgutil.py | 4 +- plugins/modules/packaging/os/portage.py | 16 +++---- plugins/modules/packaging/os/portinstall.py | 6 +-- plugins/modules/packaging/os/pulp_repo.py | 6 +-- .../packaging/os/redhat_subscription.py | 20 ++++---- plugins/modules/packaging/os/rhn_channel.py | 2 +- plugins/modules/packaging/os/rhn_register.py | 12 ++--- plugins/modules/packaging/os/rhsm_release.py | 6 +-- .../modules/packaging/os/rhsm_repository.py | 8 ++-- plugins/modules/packaging/os/slackpkg.py | 6 +-- plugins/modules/packaging/os/snap.py | 8 ++-- plugins/modules/packaging/os/sorcery.py | 22 ++++----- plugins/modules/packaging/os/svr4pkg.py | 10 ++-- plugins/modules/packaging/os/swdepot.py | 6 +-- plugins/modules/packaging/os/swupd.py | 10 ++-- plugins/modules/packaging/os/urpmi.py | 8 ++-- plugins/modules/packaging/os/xbps.py | 14 +++--- plugins/modules/packaging/os/zypper.py | 26 +++++----- .../modules/packaging/os/zypper_repository.py | 12 ++--- .../remote_management/cobbler/cobbler_sync.py | 2 +- .../cobbler/cobbler_system.py | 10 ++-- .../dellemc/idrac_firmware.py | 2 +- .../dellemc/idrac_server_config_profile.py | 8 ++-- .../dellemc/ome_device_info.py | 12 ++--- .../remote_management/foreman/foreman.py | 2 +- .../remote_management/foreman/katello.py | 6 +-- .../remote_management/hpilo/hpilo_boot.py | 4 +- .../remote_management/hpilo/hpilo_info.py | 2 +- .../remote_management/hpilo/hponcfg.py | 4 +- .../modules/remote_management/imc/imc_rest.py | 12 ++--- .../remote_management/ipmi/ipmi_boot.py | 4 +- .../remote_management/ipmi/ipmi_power.py | 2 +- .../remote_management/lxca/lxca_cmms.py | 6 +-- .../remote_management/lxca/lxca_nodes.py | 10 ++-- .../manageiq/manageiq_alert_profiles.py | 4 +- .../manageiq/manageiq_alerts.py | 6 +-- .../manageiq/manageiq_group.py | 10 ++-- .../manageiq/manageiq_policies.py | 6 +-- .../manageiq/manageiq_provider.py | 20 ++++---- .../manageiq/manageiq_tags.py | 6 +-- .../manageiq/manageiq_tenant.py | 10 ++-- .../manageiq/manageiq_user.py | 12 ++--- .../oneview/oneview_datacenter_info.py | 8 ++-- .../oneview/oneview_enclosure_info.py | 10 ++-- .../oneview/oneview_ethernet_network.py | 12 ++--- .../oneview/oneview_ethernet_network_info.py | 8 ++-- .../oneview/oneview_fc_network.py | 8 ++-- .../oneview/oneview_fc_network_info.py | 6 +-- .../oneview/oneview_fcoe_network.py | 6 +-- .../oneview/oneview_fcoe_network_info.py | 6 +-- .../oneview_logical_interconnect_group.py | 8 ++-- ...oneview_logical_interconnect_group_info.py | 6 +-- .../oneview/oneview_network_set.py | 8 ++-- .../oneview/oneview_network_set_info.py | 10 ++-- .../oneview/oneview_san_manager.py | 10 ++-- .../oneview/oneview_san_manager_info.py | 6 +-- .../redfish/idrac_redfish_command.py | 2 +- .../redfish/idrac_redfish_config.py | 10 ++-- .../redfish/idrac_redfish_info.py | 2 +- .../redfish/redfish_command.py | 44 ++++++++--------- .../redfish/redfish_config.py | 16 +++---- .../remote_management/redfish/redfish_info.py | 46 +++++++++--------- .../remote_management/stacki/stacki_host.py | 4 +- .../modules/remote_management/wakeonlan.py | 4 +- .../bitbucket/bitbucket_access_key.py | 4 +- .../bitbucket/bitbucket_pipeline_key_pair.py | 4 +- .../bitbucket_pipeline_known_host.py | 6 +-- .../bitbucket/bitbucket_pipeline_variable.py | 4 +- plugins/modules/source_control/bzr.py | 2 +- plugins/modules/source_control/git_config.py | 26 +++++----- .../github/github_deploy_key.py | 12 ++--- .../source_control/github/github_hooks.py | 4 +- .../source_control/github/github_issue.py | 2 +- .../source_control/github/github_release.py | 8 ++-- .../source_control/github/github_webhook.py | 6 +-- .../github/github_webhook_info.py | 4 +- .../gitlab/gitlab_deploy_key.py | 6 +-- .../source_control/gitlab/gitlab_group.py | 6 +-- .../source_control/gitlab/gitlab_hook.py | 6 +-- .../source_control/gitlab/gitlab_project.py | 4 +- .../gitlab/gitlab_project_variable.py | 6 +-- .../source_control/gitlab/gitlab_runner.py | 4 +- .../source_control/gitlab/gitlab_user.py | 8 ++-- plugins/modules/source_control/hg.py | 4 +- .../modules/storage/emc/emc_vnx_sg_member.py | 4 +- .../storage/glusterfs/gluster_heal_info.py | 4 +- .../modules/storage/glusterfs/gluster_peer.py | 6 +-- .../storage/glusterfs/gluster_volume.py | 20 ++++---- .../modules/storage/hpe3par/ss_3par_cpg.py | 4 +- plugins/modules/storage/ibm/ibm_sa_domain.py | 4 +- plugins/modules/storage/ibm/ibm_sa_host.py | 4 +- .../modules/storage/ibm/ibm_sa_host_ports.py | 4 +- plugins/modules/storage/ibm/ibm_sa_pool.py | 4 +- plugins/modules/storage/ibm/ibm_sa_vol.py | 4 +- plugins/modules/storage/ibm/ibm_sa_vol_map.py | 6 +-- .../storage/netapp/na_cdot_aggregate.py | 4 +- .../modules/storage/netapp/na_cdot_license.py | 4 +- plugins/modules/storage/netapp/na_cdot_lun.py | 4 +- .../modules/storage/netapp/na_cdot_qtree.py | 4 +- plugins/modules/storage/netapp/na_cdot_svm.py | 2 +- .../modules/storage/netapp/na_cdot_user.py | 2 +- .../storage/netapp/na_cdot_user_role.py | 2 +- .../modules/storage/netapp/na_cdot_volume.py | 4 +- .../storage/netapp/na_ontap_gather_facts.py | 8 ++-- .../storage/netapp/sf_account_manager.py | 6 +-- .../storage/netapp/sf_check_connections.py | 2 +- .../netapp/sf_snapshot_schedule_manager.py | 6 +-- .../netapp/sf_volume_access_group_manager.py | 6 +-- .../storage/netapp/sf_volume_manager.py | 6 +-- .../storage/purestorage/purefa_facts.py | 6 +-- .../storage/purestorage/purefb_facts.py | 6 +-- plugins/modules/storage/vexata/vexata_eg.py | 4 +- .../modules/storage/vexata/vexata_volume.py | 6 +-- plugins/modules/storage/zfs/zfs.py | 12 ++--- .../modules/storage/zfs/zfs_delegate_admin.py | 8 ++-- plugins/modules/storage/zfs/zfs_facts.py | 4 +- plugins/modules/storage/zfs/zpool_facts.py | 4 +- plugins/modules/system/aix_devices.py | 24 +++++----- plugins/modules/system/aix_filesystem.py | 38 +++++++-------- plugins/modules/system/aix_inittab.py | 6 +-- plugins/modules/system/aix_lvg.py | 8 ++-- plugins/modules/system/aix_lvol.py | 14 +++--- plugins/modules/system/alternatives.py | 6 +-- plugins/modules/system/awall.py | 6 +-- plugins/modules/system/beadm.py | 14 +++--- plugins/modules/system/capabilities.py | 4 +- plugins/modules/system/cronvar.py | 12 ++--- plugins/modules/system/crypttab.py | 4 +- plugins/modules/system/dconf.py | 14 +++--- plugins/modules/system/filesystem.py | 4 +- plugins/modules/system/firewalld.py | 26 +++++----- plugins/modules/system/gconftool2.py | 2 +- plugins/modules/system/interfaces_file.py | 2 +- plugins/modules/system/java_cert.py | 12 ++--- plugins/modules/system/java_keystore.py | 4 +- plugins/modules/system/kernel_blacklist.py | 2 +- plugins/modules/system/lbu.py | 6 +-- plugins/modules/system/listen_ports_facts.py | 2 +- plugins/modules/system/locale_gen.py | 2 +- plugins/modules/system/lvg.py | 10 ++-- plugins/modules/system/lvol.py | 36 +++++++------- plugins/modules/system/make.py | 8 ++-- plugins/modules/system/mksysb.py | 2 +- plugins/modules/system/modprobe.py | 4 +- plugins/modules/system/nosh.py | 16 +++---- plugins/modules/system/open_iscsi.py | 10 ++-- plugins/modules/system/openwrt_init.py | 8 ++-- plugins/modules/system/osx_defaults.py | 14 +++--- plugins/modules/system/pam_limits.py | 8 ++-- plugins/modules/system/pamd.py | 24 +++++----- plugins/modules/system/parted.py | 14 +++--- plugins/modules/system/pids.py | 2 +- plugins/modules/system/puppet.py | 16 +++---- .../system/python_requirements_info.py | 4 +- plugins/modules/system/runit.py | 12 ++--- plugins/modules/system/sefcontext.py | 2 +- plugins/modules/system/selinux_permissive.py | 2 +- plugins/modules/system/selogin.py | 6 +-- plugins/modules/system/seport.py | 12 ++--- plugins/modules/system/solaris_zone.py | 16 +++---- plugins/modules/system/svc.py | 12 ++--- plugins/modules/system/syspatch.py | 8 ++-- plugins/modules/system/timezone.py | 2 +- plugins/modules/system/ufw.py | 32 ++++++------- plugins/modules/system/vdo.py | 4 +- plugins/modules/system/xfconf.py | 2 +- plugins/modules/system/xfs_quota.py | 6 +-- .../web_infrastructure/apache2_mod_proxy.py | 12 ++--- .../web_infrastructure/apache2_module.py | 10 ++-- .../web_infrastructure/deploy_helper.py | 32 ++++++------- .../web_infrastructure/django_manage.py | 10 ++-- .../web_infrastructure/ejabberd_user.py | 4 +- .../modules/web_infrastructure/gunicorn.py | 8 ++-- .../modules/web_infrastructure/htpasswd.py | 6 +-- plugins/modules/web_infrastructure/jboss.py | 6 +-- .../modules/web_infrastructure/jenkins_job.py | 12 ++--- .../web_infrastructure/jenkins_job_info.py | 16 +++---- .../web_infrastructure/jenkins_plugin.py | 28 +++++------ .../web_infrastructure/jenkins_script.py | 6 +-- plugins/modules/web_infrastructure/jira.py | 20 ++++---- .../web_infrastructure/nginx_status_facts.py | 4 +- .../web_infrastructure/nginx_status_info.py | 4 +- .../web_infrastructure/rundeck_acl_policy.py | 4 +- .../web_infrastructure/rundeck_project.py | 4 +- .../sophos_utm/utm_aaa_group.py | 4 +- .../sophos_utm/utm_aaa_group_info.py | 2 +- .../sophos_utm/utm_ca_host_key_cert.py | 6 +-- .../sophos_utm/utm_ca_host_key_cert_info.py | 2 +- .../sophos_utm/utm_dns_host.py | 4 +- .../sophos_utm/utm_proxy_auth_profile.py | 6 +-- .../sophos_utm/utm_proxy_exception.py | 4 +- .../sophos_utm/utm_proxy_frontend.py | 4 +- .../sophos_utm/utm_proxy_frontend_info.py | 2 +- .../sophos_utm/utm_proxy_location_info.py | 2 +- .../web_infrastructure/supervisorctl.py | 10 ++-- .../modules/web_infrastructure/taiga_issue.py | 4 +- 533 files changed, 2130 insertions(+), 2130 deletions(-) diff --git a/plugins/modules/cloud/alicloud/ali_instance.py b/plugins/modules/cloud/alicloud/ali_instance.py index 5d6591b8e7..09754ccdba 100644 --- a/plugins/modules/cloud/alicloud/ali_instance.py +++ b/plugins/modules/cloud/alicloud/ali_instance.py @@ -278,7 +278,7 @@ EXAMPLES = ''' tasks: - name: Launch ECS instance in VPC network - ali_instance: + community.general.ali_instance: alicloud_access_key: '{{ alicloud_access_key }}' alicloud_secret_key: '{{ alicloud_secret_key }}' alicloud_region: '{{ alicloud_region }}' @@ -296,7 +296,7 @@ EXAMPLES = ''' password: '{{ password }}' - name: With count and count_tag to create a number of instances - ali_instance: + community.general.ali_instance: alicloud_access_key: '{{ alicloud_access_key }}' alicloud_secret_key: '{{ alicloud_secret_key }}' alicloud_region: '{{ alicloud_region }}' @@ -318,7 +318,7 @@ EXAMPLES = ''' password: '{{ password }}' - name: Start instance - ali_instance: + community.general.ali_instance: alicloud_access_key: '{{ alicloud_access_key }}' alicloud_secret_key: '{{ alicloud_secret_key }}' alicloud_region: '{{ alicloud_region }}' diff --git a/plugins/modules/cloud/alicloud/ali_instance_info.py b/plugins/modules/cloud/alicloud/ali_instance_info.py index 5d7699c636..33b3f8a6ad 100644 --- a/plugins/modules/cloud/alicloud/ali_instance_info.py +++ b/plugins/modules/cloud/alicloud/ali_instance_info.py @@ -82,23 +82,23 @@ EXAMPLES = ''' # Fetch instances details according to setting different filters - name: Find all instances in the specified region - ali_instance_info: + community.general.ali_instance_info: register: all_instances - name: Find all instances based on the specified ids - ali_instance_info: + community.general.ali_instance_info: instance_ids: - "i-35b333d9" - "i-ddav43kd" register: instances_by_ids - name: Find all instances based on the specified name_prefix - ali_instance_info: + community.general.ali_instance_info: name_prefix: "ecs_instance_" register: instances_by_name_prefix - name: Find instances based on tags - ali_instance_info: + community.general.ali_instance_info: tags: Test: "add" ''' diff --git a/plugins/modules/cloud/atomic/atomic_container.py b/plugins/modules/cloud/atomic/atomic_container.py index 96b7e735e1..0c0e94afe6 100644 --- a/plugins/modules/cloud/atomic/atomic_container.py +++ b/plugins/modules/cloud/atomic/atomic_container.py @@ -58,7 +58,7 @@ options: EXAMPLES = ''' - name: Install the etcd system container - atomic_container: + community.general.atomic_container: name: etcd image: rhel/etcd backend: ostree @@ -68,7 +68,7 @@ EXAMPLES = ''' - ETCD_NAME=etcd.server - name: Uninstall the etcd system container - atomic_container: + community.general.atomic_container: name: etcd image: rhel/etcd backend: ostree diff --git a/plugins/modules/cloud/atomic/atomic_host.py b/plugins/modules/cloud/atomic/atomic_host.py index c089907317..a27b84d3e0 100644 --- a/plugins/modules/cloud/atomic/atomic_host.py +++ b/plugins/modules/cloud/atomic/atomic_host.py @@ -31,11 +31,11 @@ options: EXAMPLES = ''' - name: Upgrade the atomic host platform to the latest version (atomic host upgrade) - atomic_host: + community.general.atomic_host: revision: latest - name: Deploy a specific revision as the atomic host (atomic host deploy 23.130) - atomic_host: + community.general.atomic_host: revision: 23.130 ''' diff --git a/plugins/modules/cloud/atomic/atomic_image.py b/plugins/modules/cloud/atomic/atomic_image.py index 8cb3002b59..83f56dfbbc 100644 --- a/plugins/modules/cloud/atomic/atomic_image.py +++ b/plugins/modules/cloud/atomic/atomic_image.py @@ -45,12 +45,12 @@ options: EXAMPLES = ''' - name: Execute the run command on rsyslog container image (atomic run rhel7/rsyslog) - atomic_image: + community.general.atomic_image: name: rhel7/rsyslog state: latest - name: Pull busybox to the OSTree backend - atomic_image: + community.general.atomic_image: name: busybox state: latest backend: ostree diff --git a/plugins/modules/cloud/centurylink/clc_aa_policy.py b/plugins/modules/cloud/centurylink/clc_aa_policy.py index 6f9c62a822..1f3797f723 100644 --- a/plugins/modules/cloud/centurylink/clc_aa_policy.py +++ b/plugins/modules/cloud/centurylink/clc_aa_policy.py @@ -58,7 +58,7 @@ EXAMPLES = ''' connection: local tasks: - name: Create an Anti Affinity Policy - clc_aa_policy: + community.general.clc_aa_policy: name: Hammer Time location: UK3 state: present @@ -75,7 +75,7 @@ EXAMPLES = ''' connection: local tasks: - name: Delete an Anti Affinity Policy - clc_aa_policy: + community.general.clc_aa_policy: name: Hammer Time location: UK3 state: absent diff --git a/plugins/modules/cloud/centurylink/clc_alert_policy.py b/plugins/modules/cloud/centurylink/clc_alert_policy.py index 17211a2a71..189a8590ef 100644 --- a/plugins/modules/cloud/centurylink/clc_alert_policy.py +++ b/plugins/modules/cloud/centurylink/clc_alert_policy.py @@ -74,7 +74,7 @@ EXAMPLES = ''' connection: local tasks: - name: Create an Alert Policy for disk above 80% for 5 minutes - clc_alert_policy: + community.general.clc_alert_policy: alias: wfad name: 'alert for disk > 80%' alert_recipients: @@ -96,7 +96,7 @@ EXAMPLES = ''' connection: local tasks: - name: Delete an Alert Policy - clc_alert_policy: + community.general.clc_alert_policy: alias: wfad name: 'alert for disk > 80%' state: absent diff --git a/plugins/modules/cloud/centurylink/clc_blueprint_package.py b/plugins/modules/cloud/centurylink/clc_blueprint_package.py index 8d12f24986..9c5a35efe3 100644 --- a/plugins/modules/cloud/centurylink/clc_blueprint_package.py +++ b/plugins/modules/cloud/centurylink/clc_blueprint_package.py @@ -59,7 +59,7 @@ EXAMPLES = ''' # Note - You must set the CLC_V2_API_USERNAME And CLC_V2_API_PASSWD Environment variables before running these examples - name: Deploy package - clc_blueprint_package: + community.general.clc_blueprint_package: server_ids: - UC1TEST-SERVER1 - UC1TEST-SERVER2 diff --git a/plugins/modules/cloud/centurylink/clc_group.py b/plugins/modules/cloud/centurylink/clc_group.py index 216629a04e..04d3d329ca 100644 --- a/plugins/modules/cloud/centurylink/clc_group.py +++ b/plugins/modules/cloud/centurylink/clc_group.py @@ -70,7 +70,7 @@ EXAMPLES = ''' connection: local tasks: - name: Create / Verify a Server Group at CenturyLink Cloud - clc_group: + community.general.clc_group: name: My Cool Server Group parent: Default Group state: present @@ -89,7 +89,7 @@ EXAMPLES = ''' connection: local tasks: - name: Delete / Verify Absent a Server Group at CenturyLink Cloud - clc_group: + community.general.clc_group: name: My Cool Server Group parent: Default Group state: absent diff --git a/plugins/modules/cloud/centurylink/clc_loadbalancer.py b/plugins/modules/cloud/centurylink/clc_loadbalancer.py index 0aa69792e3..248853549e 100644 --- a/plugins/modules/cloud/centurylink/clc_loadbalancer.py +++ b/plugins/modules/cloud/centurylink/clc_loadbalancer.py @@ -79,7 +79,7 @@ EXAMPLES = ''' connection: local tasks: - name: Actually Create things - clc_loadbalancer: + community.general.clc_loadbalancer: name: test description: test alias: TEST @@ -95,7 +95,7 @@ EXAMPLES = ''' connection: local tasks: - name: Actually Create things - clc_loadbalancer: + community.general.clc_loadbalancer: name: test description: test alias: TEST @@ -111,7 +111,7 @@ EXAMPLES = ''' connection: local tasks: - name: Actually Create things - clc_loadbalancer: + community.general.clc_loadbalancer: name: test description: test alias: TEST @@ -127,7 +127,7 @@ EXAMPLES = ''' connection: local tasks: - name: Actually Delete things - clc_loadbalancer: + community.general.clc_loadbalancer: name: test description: test alias: TEST @@ -143,7 +143,7 @@ EXAMPLES = ''' connection: local tasks: - name: Actually Delete things - clc_loadbalancer: + community.general.clc_loadbalancer: name: test description: test alias: TEST diff --git a/plugins/modules/cloud/centurylink/clc_modify_server.py b/plugins/modules/cloud/centurylink/clc_modify_server.py index 45b21bd009..156621678a 100644 --- a/plugins/modules/cloud/centurylink/clc_modify_server.py +++ b/plugins/modules/cloud/centurylink/clc_modify_server.py @@ -70,7 +70,7 @@ EXAMPLES = ''' # Note - You must set the CLC_V2_API_USERNAME And CLC_V2_API_PASSWD Environment variables before running these examples - name: Set the cpu count to 4 on a server - clc_modify_server: + community.general.clc_modify_server: server_ids: - UC1TESTSVR01 - UC1TESTSVR02 @@ -78,7 +78,7 @@ EXAMPLES = ''' state: present - name: Set the memory to 8GB on a server - clc_modify_server: + community.general.clc_modify_server: server_ids: - UC1TESTSVR01 - UC1TESTSVR02 @@ -86,7 +86,7 @@ EXAMPLES = ''' state: present - name: Set the anti affinity policy on a server - clc_modify_server: + community.general.clc_modify_server: server_ids: - UC1TESTSVR01 - UC1TESTSVR02 @@ -94,7 +94,7 @@ EXAMPLES = ''' state: present - name: Remove the anti affinity policy on a server - clc_modify_server: + community.general.clc_modify_server: server_ids: - UC1TESTSVR01 - UC1TESTSVR02 @@ -102,7 +102,7 @@ EXAMPLES = ''' state: absent - name: Add the alert policy on a server - clc_modify_server: + community.general.clc_modify_server: server_ids: - UC1TESTSVR01 - UC1TESTSVR02 @@ -110,7 +110,7 @@ EXAMPLES = ''' state: present - name: Remove the alert policy on a server - clc_modify_server: + community.general.clc_modify_server: server_ids: - UC1TESTSVR01 - UC1TESTSVR02 @@ -118,7 +118,7 @@ EXAMPLES = ''' state: absent - name: Ret the memory to 16GB and cpu to 8 core on a lust if servers - clc_modify_server: + community.general.clc_modify_server: server_ids: - UC1TESTSVR01 - UC1TESTSVR02 diff --git a/plugins/modules/cloud/centurylink/clc_publicip.py b/plugins/modules/cloud/centurylink/clc_publicip.py index ff1c1773a9..9e1df79bff 100644 --- a/plugins/modules/cloud/centurylink/clc_publicip.py +++ b/plugins/modules/cloud/centurylink/clc_publicip.py @@ -62,7 +62,7 @@ EXAMPLES = ''' connection: local tasks: - name: Create Public IP For Servers - clc_publicip: + community.general.clc_publicip: protocol: TCP ports: - 80 @@ -82,7 +82,7 @@ EXAMPLES = ''' connection: local tasks: - name: Create Public IP For Servers - clc_publicip: + community.general.clc_publicip: server_ids: - UC1TEST-SVR01 - UC1TEST-SVR02 diff --git a/plugins/modules/cloud/centurylink/clc_server.py b/plugins/modules/cloud/centurylink/clc_server.py index 25220aedb8..5cde437aaa 100644 --- a/plugins/modules/cloud/centurylink/clc_server.py +++ b/plugins/modules/cloud/centurylink/clc_server.py @@ -175,7 +175,7 @@ EXAMPLES = ''' # Note - You must set the CLC_V2_API_USERNAME And CLC_V2_API_PASSWD Environment variables before running these examples - name: Provision a single Ubuntu Server - clc_server: + community.general.clc_server: name: test template: ubuntu-14-64 count: 1 @@ -183,7 +183,7 @@ EXAMPLES = ''' state: present - name: Ensure 'Default Group' has exactly 5 servers - clc_server: + community.general.clc_server: name: test template: ubuntu-14-64 exact_count: 5 @@ -191,19 +191,19 @@ EXAMPLES = ''' group: Default Group - name: Stop a Server - clc_server: + community.general.clc_server: server_ids: - UC1ACCT-TEST01 state: stopped - name: Start a Server - clc_server: + community.general.clc_server: server_ids: - UC1ACCT-TEST01 state: started - name: Delete a Server - clc_server: + community.general.clc_server: server_ids: - UC1ACCT-TEST01 state: absent diff --git a/plugins/modules/cloud/centurylink/clc_server_snapshot.py b/plugins/modules/cloud/centurylink/clc_server_snapshot.py index 68060aaa7f..8dc5fa3449 100644 --- a/plugins/modules/cloud/centurylink/clc_server_snapshot.py +++ b/plugins/modules/cloud/centurylink/clc_server_snapshot.py @@ -55,7 +55,7 @@ EXAMPLES = ''' # Note - You must set the CLC_V2_API_USERNAME And CLC_V2_API_PASSWD Environment variables before running these examples - name: Create server snapshot - clc_server_snapshot: + community.general.clc_server_snapshot: server_ids: - UC1TEST-SVR01 - UC1TEST-SVR02 @@ -64,7 +64,7 @@ EXAMPLES = ''' state: present - name: Restore server snapshot - clc_server_snapshot: + community.general.clc_server_snapshot: server_ids: - UC1TEST-SVR01 - UC1TEST-SVR02 @@ -72,7 +72,7 @@ EXAMPLES = ''' state: restore - name: Delete server snapshot - clc_server_snapshot: + community.general.clc_server_snapshot: server_ids: - UC1TEST-SVR01 - UC1TEST-SVR02 diff --git a/plugins/modules/cloud/dimensiondata/dimensiondata_network.py b/plugins/modules/cloud/dimensiondata/dimensiondata_network.py index 0c8ce4d7e7..0604f80795 100644 --- a/plugins/modules/cloud/dimensiondata/dimensiondata_network.py +++ b/plugins/modules/cloud/dimensiondata/dimensiondata_network.py @@ -48,13 +48,13 @@ options: EXAMPLES = ''' - name: Create an MCP 1.0 network - dimensiondata_network: + community.general.dimensiondata_network: region: na location: NA5 name: mynet - name: Create an MCP 2.0 network - dimensiondata_network: + community.general.dimensiondata_network: region: na mcp_user: my_user mcp_password: my_password @@ -63,7 +63,7 @@ EXAMPLES = ''' service_plan: ADVANCED - name: Delete a network - dimensiondata_network: + community.general.dimensiondata_network: region: na location: NA1 name: mynet diff --git a/plugins/modules/cloud/dimensiondata/dimensiondata_vlan.py b/plugins/modules/cloud/dimensiondata/dimensiondata_vlan.py index f3af27a650..33155c3898 100644 --- a/plugins/modules/cloud/dimensiondata/dimensiondata_vlan.py +++ b/plugins/modules/cloud/dimensiondata/dimensiondata_vlan.py @@ -70,7 +70,7 @@ options: EXAMPLES = ''' - name: Add or update VLAN - dimensiondata_vlan: + community.general.dimensiondata_vlan: region: na location: NA5 network_domain: test_network @@ -82,7 +82,7 @@ EXAMPLES = ''' wait: yes - name: Read / get VLAN details - dimensiondata_vlan: + community.general.dimensiondata_vlan: region: na location: NA5 network_domain: test_network @@ -91,7 +91,7 @@ EXAMPLES = ''' wait: yes - name: Delete a VLAN - dimensiondata_vlan: + community.general.dimensiondata_vlan: region: na location: NA5 network_domain: test_network diff --git a/plugins/modules/cloud/docker/docker_compose.py b/plugins/modules/cloud/docker/docker_compose.py index 64be87b925..711ca895d8 100644 --- a/plugins/modules/cloud/docker/docker_compose.py +++ b/plugins/modules/cloud/docker/docker_compose.py @@ -168,12 +168,12 @@ EXAMPLES = ''' gather_facts: no tasks: - name: Tear down existing services - docker_compose: + community.general.docker_compose: project_src: flask state: absent - name: Create and start services - docker_compose: + community.general.docker_compose: project_src: flask register: output @@ -181,7 +181,7 @@ EXAMPLES = ''' var: output - name: Run `docker-compose up` again - docker_compose: + community.general.docker_compose: project_src: flask build: no register: output @@ -193,7 +193,7 @@ EXAMPLES = ''' that: "not output.changed " - name: Stop all services - docker_compose: + community.general.docker_compose: project_src: flask build: no stopped: yes @@ -208,7 +208,7 @@ EXAMPLES = ''' - "not db.flask_db_1.state.running" - name: Restart services - docker_compose: + community.general.docker_compose: project_src: flask build: no restarted: yes @@ -226,7 +226,7 @@ EXAMPLES = ''' hosts: localhost gather_facts: no tasks: - - docker_compose: + - community.general.docker_compose: project_src: flask scale: web: 2 @@ -239,11 +239,11 @@ EXAMPLES = ''' hosts: localhost gather_facts: no tasks: - - docker_compose: + - community.general.docker_compose: project_src: flask state: absent - - docker_compose: + - community.general.docker_compose: project_name: flask definition: version: '2' @@ -273,11 +273,11 @@ EXAMPLES = ''' hosts: localhost gather_facts: no tasks: - - docker_compose: + - community.general.docker_compose: project_src: flask state: absent - - docker_compose: + - community.general.docker_compose: project_name: flask definition: db: diff --git a/plugins/modules/cloud/docker/docker_config.py b/plugins/modules/cloud/docker/docker_config.py index 31b8b243a2..5e7e426cad 100644 --- a/plugins/modules/cloud/docker/docker_config.py +++ b/plugins/modules/cloud/docker/docker_config.py @@ -75,7 +75,7 @@ author: EXAMPLES = ''' - name: Create config foo (from a file on the control machine) - docker_config: + community.general.docker_config: name: foo # If the file is JSON or binary, Ansible might modify it (because # it is first decoded and later re-encoded). Base64-encoding the @@ -85,7 +85,7 @@ EXAMPLES = ''' state: present - name: Change the config data - docker_config: + community.general.docker_config: name: foo data: Goodnight everyone! labels: @@ -94,7 +94,7 @@ EXAMPLES = ''' state: present - name: Add a new label - docker_config: + community.general.docker_config: name: foo data: Goodnight everyone! labels: @@ -105,7 +105,7 @@ EXAMPLES = ''' state: present - name: No change - docker_config: + community.general.docker_config: name: foo data: Goodnight everyone! labels: @@ -115,7 +115,7 @@ EXAMPLES = ''' state: present - name: Update an existing label - docker_config: + community.general.docker_config: name: foo data: Goodnight everyone! labels: @@ -124,14 +124,14 @@ EXAMPLES = ''' state: present - name: Force the (re-)creation of the config - docker_config: + community.general.docker_config: name: foo data: Goodnight everyone! force: yes state: present - name: Remove config foo - docker_config: + community.general.docker_config: name: foo state: absent ''' diff --git a/plugins/modules/cloud/docker/docker_container.py b/plugins/modules/cloud/docker/docker_container.py index c3122523ec..e28bd5747d 100644 --- a/plugins/modules/cloud/docker/docker_container.py +++ b/plugins/modules/cloud/docker/docker_container.py @@ -830,14 +830,14 @@ requirements: EXAMPLES = ''' - name: Create a data container - docker_container: + community.general.docker_container: name: mydata image: busybox volumes: - /data - name: Re-create a redis container - docker_container: + community.general.docker_container: name: myredis image: redis command: redis-server --appendonly yes @@ -849,7 +849,7 @@ EXAMPLES = ''' - mydata - name: Restart a container - docker_container: + community.general.docker_container: name: myapplication image: someuser/appimage state: started @@ -876,19 +876,19 @@ EXAMPLES = ''' BOOLEAN_KEY: "yes" - name: Container present - docker_container: + community.general.docker_container: name: mycontainer state: present image: ubuntu:14.04 command: sleep infinity - name: Stop a container - docker_container: + community.general.docker_container: name: mycontainer state: stopped - name: Start 4 load-balanced containers - docker_container: + community.general.docker_container: name: "container{{ item }}" recreate: yes image: someuser/anotherappimage @@ -896,12 +896,12 @@ EXAMPLES = ''' with_sequence: count=4 - name: Remove container - docker_container: + community.general.docker_container: name: ohno state: absent - name: Syslogging output - docker_container: + community.general.docker_container: name: myservice image: busybox log_driver: syslog @@ -913,14 +913,14 @@ EXAMPLES = ''' tag: myservice - name: Create db container and connect to network - docker_container: + community.general.docker_container: name: db_test image: "postgres:latest" networks: - name: "{{ docker_network_name }}" - name: Start container, connect to network and link - docker_container: + community.general.docker_container: name: sleeper image: ubuntu:14.04 networks: @@ -933,13 +933,13 @@ EXAMPLES = ''' - name: TestingNet2 - name: Start a container with a command - docker_container: + community.general.docker_container: name: sleepy image: ubuntu:14.04 command: ["sleep", "infinity"] - name: Add container to networks - docker_container: + community.general.docker_container: name: sleepy networks: - name: TestingNet @@ -950,7 +950,7 @@ EXAMPLES = ''' ipv4_address: 172.1.10.20 - name: Update network with aliases - docker_container: + community.general.docker_container: name: sleepy networks: - name: TestingNet @@ -959,25 +959,25 @@ EXAMPLES = ''' - zzzz - name: Remove container from one network - docker_container: + community.general.docker_container: name: sleepy networks: - name: TestingNet2 purge_networks: yes - name: Remove container from all networks - docker_container: + community.general.docker_container: name: sleepy purge_networks: yes - name: Start a container and use an env file - docker_container: + community.general.docker_container: name: agent image: jenkinsci/ssh-slave env_file: /var/tmp/jenkins/agent.env - name: Create a container with limited capabilities - docker_container: + community.general.docker_container: name: sleepy image: ubuntu:16.04 command: sleep infinity @@ -987,7 +987,7 @@ EXAMPLES = ''' - all - name: Finer container restart/update control - docker_container: + community.general.docker_container: name: test image: ubuntu:18.04 env: @@ -1001,7 +1001,7 @@ EXAMPLES = ''' volumes: allow_more_present # if there are more volumes, that's ok, as long as `/tmp:/tmp` is there - name: Finer container restart/update control II - docker_container: + community.general.docker_container: name: test image: ubuntu:18.04 env: @@ -1012,7 +1012,7 @@ EXAMPLES = ''' env: strict # except for environment variables; there, we want to be strict - name: Start container with healthstatus - docker_container: + community.general.docker_container: name: nginx-proxy image: nginx:1.13 state: started @@ -1026,7 +1026,7 @@ EXAMPLES = ''' start_period: 30s - name: Remove healthcheck from container - docker_container: + community.general.docker_container: name: nginx-proxy image: nginx:1.13 state: started @@ -1035,7 +1035,7 @@ EXAMPLES = ''' test: ["NONE"] - name: Start container with block device read limit - docker_container: + community.general.docker_container: name: test image: ubuntu:18.04 state: started diff --git a/plugins/modules/cloud/docker/docker_container_info.py b/plugins/modules/cloud/docker/docker_container_info.py index 8cdf8bae96..52eb74e6de 100644 --- a/plugins/modules/cloud/docker/docker_container_info.py +++ b/plugins/modules/cloud/docker/docker_container_info.py @@ -41,7 +41,7 @@ requirements: EXAMPLES = ''' - name: Get infos on container - docker_container_info: + community.general.docker_container_info: name: mydata register: result diff --git a/plugins/modules/cloud/docker/docker_host_info.py b/plugins/modules/cloud/docker/docker_host_info.py index f4f79b1fa3..344e97b99b 100644 --- a/plugins/modules/cloud/docker/docker_host_info.py +++ b/plugins/modules/cloud/docker/docker_host_info.py @@ -100,29 +100,29 @@ requirements: EXAMPLES = ''' - name: Get info on docker host - docker_host_info: + community.general.docker_host_info: register: result - name: Get info on docker host and list images - docker_host_info: + community.general.docker_host_info: images: yes register: result - name: Get info on docker host and list images matching the filter - docker_host_info: + community.general.docker_host_info: images: yes images_filters: label: "mylabel" register: result - name: Get info on docker host and verbose list images - docker_host_info: + community.general.docker_host_info: images: yes verbose_output: yes register: result - name: Get info on docker host and used disk space - docker_host_info: + community.general.docker_host_info: disk_usage: yes register: result diff --git a/plugins/modules/cloud/docker/docker_image.py b/plugins/modules/cloud/docker/docker_image.py index 16e981a297..78035af86d 100644 --- a/plugins/modules/cloud/docker/docker_image.py +++ b/plugins/modules/cloud/docker/docker_image.py @@ -313,19 +313,19 @@ author: EXAMPLES = ''' - name: Pull an image - docker_image: + community.general.docker_image: name: pacur/centos-7 source: pull - name: Tag and push to docker hub - docker_image: + community.general.docker_image: name: pacur/centos-7:56 repository: dcoppenhagan/myimage:7.56 push: yes source: local - name: Tag and push to local registry - docker_image: + community.general.docker_image: # Image will be centos:7 name: centos # Will be pushed to localhost:5000/centos:7 @@ -335,7 +335,7 @@ EXAMPLES = ''' source: local - name: Add tag latest to image - docker_image: + community.general.docker_image: name: myimage:7.1.2 repository: myimage:latest # As 'latest' usually already is present, we need to enable overwriting of existing tags: @@ -343,13 +343,13 @@ EXAMPLES = ''' source: local - name: Remove image - docker_image: + community.general.docker_image: state: absent name: registry.ansible.com/chouseknecht/sinatra tag: v1 - name: Build an image and push it to a private repo - docker_image: + community.general.docker_image: build: path: ./sinatra name: registry.ansible.com/chouseknecht/sinatra @@ -358,14 +358,14 @@ EXAMPLES = ''' source: build - name: Archive image - docker_image: + community.general.docker_image: name: registry.ansible.com/chouseknecht/sinatra tag: v1 archive_path: my_sinatra.tar source: local - name: Load image from archive and push to a private registry - docker_image: + community.general.docker_image: name: localhost:5000/myimages/sinatra tag: v1 push: yes @@ -373,7 +373,7 @@ EXAMPLES = ''' source: load - name: Build image and with build args - docker_image: + community.general.docker_image: name: myimage build: path: /path/to/build/dir @@ -383,7 +383,7 @@ EXAMPLES = ''' source: build - name: Build image using cache source - docker_image: + community.general.docker_image: name: myimage:latest build: path: /path/to/build/dir diff --git a/plugins/modules/cloud/docker/docker_image_info.py b/plugins/modules/cloud/docker/docker_image_info.py index 0e06b976ae..4f052ff5e8 100644 --- a/plugins/modules/cloud/docker/docker_image_info.py +++ b/plugins/modules/cloud/docker/docker_image_info.py @@ -51,11 +51,11 @@ author: EXAMPLES = ''' - name: Inspect a single image - docker_image_info: + community.general.docker_image_info: name: pacur/centos-7 - name: Inspect multiple images - docker_image_info: + community.general.docker_image_info: name: - pacur/centos-7 - sinatra diff --git a/plugins/modules/cloud/docker/docker_login.py b/plugins/modules/cloud/docker/docker_login.py index 356346cf65..58eb03236d 100644 --- a/plugins/modules/cloud/docker/docker_login.py +++ b/plugins/modules/cloud/docker/docker_login.py @@ -86,25 +86,25 @@ author: EXAMPLES = ''' - name: Log into DockerHub - docker_login: + community.general.docker_login: username: docker password: rekcod - name: Log into private registry and force re-authorization - docker_login: + community.general.docker_login: registry_url: your.private.registry.io username: yourself password: secrets3 reauthorize: yes - name: Log into DockerHub using a custom config file - docker_login: + community.general.docker_login: username: docker password: rekcod config_path: /tmp/.mydockercfg - name: Log out of DockerHub - docker_login: + community.general.docker_login: state: absent ''' diff --git a/plugins/modules/cloud/docker/docker_network.py b/plugins/modules/cloud/docker/docker_network.py index afac9e3058..f70cc67d62 100644 --- a/plugins/modules/cloud/docker/docker_network.py +++ b/plugins/modules/cloud/docker/docker_network.py @@ -197,11 +197,11 @@ requirements: EXAMPLES = ''' - name: Create a network - docker_network: + community.general.docker_network: name: network_one - name: Remove all but selected list of containers - docker_network: + community.general.docker_network: name: network_one connected: - container_a @@ -209,25 +209,25 @@ EXAMPLES = ''' - container_c - name: Remove a single container - docker_network: + community.general.docker_network: name: network_one connected: "{{ fulllist|difference(['container_a']) }}" - name: Add a container to a network, leaving existing containers connected - docker_network: + community.general.docker_network: name: network_one connected: - container_a appends: yes - name: Create a network with driver options - docker_network: + community.general.docker_network: name: network_two driver_options: com.docker.network.bridge.name: net2 - name: Create a network with custom IPAM config - docker_network: + community.general.docker_network: name: network_three ipam_config: - subnet: 172.3.27.0/24 @@ -238,21 +238,21 @@ EXAMPLES = ''' host2: 172.3.27.4 - name: Create a network with labels - docker_network: + community.general.docker_network: name: network_four labels: key1: value1 key2: value2 - name: Create a network with IPv6 IPAM config - docker_network: + community.general.docker_network: name: network_ipv6_one enable_ipv6: yes ipam_config: - subnet: fdd1:ac8c:0557:7ce1::/64 - name: Create a network with IPv6 and custom IPv4 IPAM config - docker_network: + community.general.docker_network: name: network_ipv6_two enable_ipv6: yes ipam_config: @@ -260,7 +260,7 @@ EXAMPLES = ''' - subnet: fdd1:ac8c:0557:7ce2::/64 - name: Delete a network, disconnecting all containers - docker_network: + community.general.docker_network: name: network_one state: absent force: yes diff --git a/plugins/modules/cloud/docker/docker_network_info.py b/plugins/modules/cloud/docker/docker_network_info.py index 89ac772e18..df94eba097 100644 --- a/plugins/modules/cloud/docker/docker_network_info.py +++ b/plugins/modules/cloud/docker/docker_network_info.py @@ -41,7 +41,7 @@ requirements: EXAMPLES = ''' - name: Get infos on network - docker_network_info: + community.general.docker_network_info: name: mydata register: result diff --git a/plugins/modules/cloud/docker/docker_node.py b/plugins/modules/cloud/docker/docker_node.py index f10d906da8..12980e5ff3 100644 --- a/plugins/modules/cloud/docker/docker_node.py +++ b/plugins/modules/cloud/docker/docker_node.py @@ -83,35 +83,35 @@ author: EXAMPLES = ''' - name: Set node role - docker_node: + community.general.docker_node: hostname: mynode role: manager - name: Set node availability - docker_node: + community.general.docker_node: hostname: mynode availability: drain - name: Replace node labels with new labels - docker_node: + community.general.docker_node: hostname: mynode labels: key: value labels_state: replace - name: Merge node labels and new labels - docker_node: + community.general.docker_node: hostname: mynode labels: key: value - name: Remove all labels assigned to node - docker_node: + community.general.docker_node: hostname: mynode labels_state: replace - name: Remove selected labels from the node - docker_node: + community.general.docker_node: hostname: mynode labels_to_remove: - key1 diff --git a/plugins/modules/cloud/docker/docker_node_info.py b/plugins/modules/cloud/docker/docker_node_info.py index 2897db25ea..c01edadca1 100644 --- a/plugins/modules/cloud/docker/docker_node_info.py +++ b/plugins/modules/cloud/docker/docker_node_info.py @@ -51,23 +51,23 @@ requirements: EXAMPLES = ''' - name: Get info on all nodes - docker_node_info: + community.general.docker_node_info: register: result - name: Get info on node - docker_node_info: + community.general.docker_node_info: name: mynode register: result - name: Get info on list of nodes - docker_node_info: + community.general.docker_node_info: name: - mynode1 - mynode2 register: result - name: Get info on host if it is Swarm Manager - docker_node_info: + community.general.docker_node_info: self: true register: result ''' diff --git a/plugins/modules/cloud/docker/docker_prune.py b/plugins/modules/cloud/docker/docker_prune.py index 1e695145d6..025c61309f 100644 --- a/plugins/modules/cloud/docker/docker_prune.py +++ b/plugins/modules/cloud/docker/docker_prune.py @@ -87,14 +87,14 @@ requirements: EXAMPLES = ''' - name: Prune containers older than 24h - docker_prune: + community.general.docker_prune: containers: yes containers_filters: # only consider containers created more than 24 hours ago until: 24h - name: Prune everything - docker_prune: + community.general.docker_prune: containers: yes images: yes networks: yes @@ -102,7 +102,7 @@ EXAMPLES = ''' builder_cache: yes - name: Prune everything (including non-dangling images) - docker_prune: + community.general.docker_prune: containers: yes images: yes images_filters: diff --git a/plugins/modules/cloud/docker/docker_secret.py b/plugins/modules/cloud/docker/docker_secret.py index 77d9b64d6c..22dad4cd18 100644 --- a/plugins/modules/cloud/docker/docker_secret.py +++ b/plugins/modules/cloud/docker/docker_secret.py @@ -74,7 +74,7 @@ author: EXAMPLES = ''' - name: Create secret foo (from a file on the control machine) - docker_secret: + community.general.docker_secret: name: foo # If the file is JSON or binary, Ansible might modify it (because # it is first decoded and later re-encoded). Base64-encoding the @@ -84,7 +84,7 @@ EXAMPLES = ''' state: present - name: Change the secret data - docker_secret: + community.general.docker_secret: name: foo data: Goodnight everyone! labels: @@ -93,7 +93,7 @@ EXAMPLES = ''' state: present - name: Add a new label - docker_secret: + community.general.docker_secret: name: foo data: Goodnight everyone! labels: @@ -104,7 +104,7 @@ EXAMPLES = ''' state: present - name: No change - docker_secret: + community.general.docker_secret: name: foo data: Goodnight everyone! labels: @@ -114,7 +114,7 @@ EXAMPLES = ''' state: present - name: Update an existing label - docker_secret: + community.general.docker_secret: name: foo data: Goodnight everyone! labels: @@ -123,14 +123,14 @@ EXAMPLES = ''' state: present - name: Force the removal/creation of the secret - docker_secret: + community.general.docker_secret: name: foo data: Goodnight everyone! force: yes state: present - name: Remove secret foo - docker_secret: + community.general.docker_secret: name: foo state: absent ''' diff --git a/plugins/modules/cloud/docker/docker_stack.py b/plugins/modules/cloud/docker/docker_stack.py index 8ec4a25b34..04d587f0a5 100644 --- a/plugins/modules/cloud/docker/docker_stack.py +++ b/plugins/modules/cloud/docker/docker_stack.py @@ -96,14 +96,14 @@ stack_spec_diff: EXAMPLES = ''' - name: Deploy stack from a compose file - docker_stack: + community.general.docker_stack: state: present name: mystack compose: - /opt/docker-compose.yml - name: Deploy stack from base compose file and override the web service - docker_stack: + community.general.docker_stack: state: present name: mystack compose: @@ -116,7 +116,7 @@ EXAMPLES = ''' ENVVAR: envvar - name: Remove stack - docker_stack: + community.general.docker_stack: name: mystack state: absent ''' diff --git a/plugins/modules/cloud/docker/docker_swarm.py b/plugins/modules/cloud/docker/docker_swarm.py index b893076bab..66c8cbb915 100644 --- a/plugins/modules/cloud/docker/docker_swarm.py +++ b/plugins/modules/cloud/docker/docker_swarm.py @@ -190,37 +190,37 @@ author: EXAMPLES = ''' - name: Init a new swarm with default parameters - docker_swarm: + community.general.docker_swarm: state: present - name: Update swarm configuration - docker_swarm: + community.general.docker_swarm: state: present election_tick: 5 - name: Add nodes - docker_swarm: + community.general.docker_swarm: state: join advertise_addr: 192.168.1.2 join_token: SWMTKN-1--xxxxx remote_addrs: [ '192.168.1.1:2377' ] - name: Leave swarm for a node - docker_swarm: + community.general.docker_swarm: state: absent - name: Remove a swarm manager - docker_swarm: + community.general.docker_swarm: state: absent force: true - name: Remove node from swarm - docker_swarm: + community.general.docker_swarm: state: remove node_id: mynode - name: Inspect swarm - docker_swarm: + community.general.docker_swarm: state: inspect register: swarm_info ''' diff --git a/plugins/modules/cloud/docker/docker_swarm_info.py b/plugins/modules/cloud/docker/docker_swarm_info.py index e4d44e5bd7..a35c8d1a8c 100644 --- a/plugins/modules/cloud/docker/docker_swarm_info.py +++ b/plugins/modules/cloud/docker/docker_swarm_info.py @@ -89,7 +89,7 @@ requirements: EXAMPLES = ''' - name: Get info on Docker Swarm - docker_swarm_info: + community.general.docker_swarm_info: ignore_errors: yes register: result @@ -103,18 +103,18 @@ EXAMPLES = ''' - block: - name: Get info on Docker Swarm and list of registered nodes - docker_swarm_info: + community.general.docker_swarm_info: nodes: yes register: result - name: Get info on Docker Swarm and extended list of registered nodes - docker_swarm_info: + community.general.docker_swarm_info: nodes: yes verbose_output: yes register: result - name: Get info on Docker Swarm and filtered list of registered nodes - docker_swarm_info: + community.general.docker_swarm_info: nodes: yes nodes_filters: name: mynode @@ -124,7 +124,7 @@ EXAMPLES = ''' var: result.swarm_facts - name: Get the swarm unlock key - docker_swarm_info: + community.general.docker_swarm_info: unlock_key: yes register: result diff --git a/plugins/modules/cloud/docker/docker_swarm_service.py b/plugins/modules/cloud/docker/docker_swarm_service.py index 926c45f04b..7c6f23a0f7 100644 --- a/plugins/modules/cloud/docker/docker_swarm_service.py +++ b/plugins/modules/cloud/docker/docker_swarm_service.py @@ -891,7 +891,7 @@ rebuilt: EXAMPLES = ''' - name: Set command and arguments - docker_swarm_service: + community.general.docker_swarm_service: name: myservice image: alpine command: sleep @@ -899,7 +899,7 @@ EXAMPLES = ''' - "3600" - name: Set a bind mount - docker_swarm_service: + community.general.docker_swarm_service: name: myservice image: alpine mounts: @@ -908,7 +908,7 @@ EXAMPLES = ''' type: bind - name: Set service labels - docker_swarm_service: + community.general.docker_swarm_service: name: myservice image: alpine labels: @@ -916,7 +916,7 @@ EXAMPLES = ''' com.example.department: "Finance" - name: Set environment variables - docker_swarm_service: + community.general.docker_swarm_service: name: myservice image: alpine env: @@ -927,7 +927,7 @@ EXAMPLES = ''' - envs/apps/web.env - name: Set fluentd logging - docker_swarm_service: + community.general.docker_swarm_service: name: myservice image: alpine logging: @@ -938,7 +938,7 @@ EXAMPLES = ''' tag: myservice - name: Set restart policies - docker_swarm_service: + community.general.docker_swarm_service: name: myservice image: alpine restart_config: @@ -948,7 +948,7 @@ EXAMPLES = ''' window: 120s - name: Set update config - docker_swarm_service: + community.general.docker_swarm_service: name: myservice image: alpine update_config: @@ -957,7 +957,7 @@ EXAMPLES = ''' order: stop-first - name: Set rollback config - docker_swarm_service: + community.general.docker_swarm_service: name: myservice image: alpine update_config: @@ -968,7 +968,7 @@ EXAMPLES = ''' order: stop-first - name: Set placement preferences - docker_swarm_service: + community.general.docker_swarm_service: name: myservice image: alpine:edge placement: @@ -979,7 +979,7 @@ EXAMPLES = ''' - engine.labels.operatingsystem == ubuntu 14.04 - name: Set configs - docker_swarm_service: + community.general.docker_swarm_service: name: myservice image: alpine:edge configs: @@ -987,14 +987,14 @@ EXAMPLES = ''' filename: "/tmp/config.txt" - name: Set networks - docker_swarm_service: + community.general.docker_swarm_service: name: myservice image: alpine:edge networks: - mynetwork - name: Set networks as a dictionary - docker_swarm_service: + community.general.docker_swarm_service: name: myservice image: alpine:edge networks: @@ -1005,7 +1005,7 @@ EXAMPLES = ''' foo: bar - name: Set secrets - docker_swarm_service: + community.general.docker_swarm_service: name: myservice image: alpine:edge secrets: @@ -1013,7 +1013,7 @@ EXAMPLES = ''' filename: "/run/secrets/secret.txt" - name: Start service with healthcheck - docker_swarm_service: + community.general.docker_swarm_service: name: myservice image: nginx:1.13 healthcheck: @@ -1026,7 +1026,7 @@ EXAMPLES = ''' start_period: 30s - name: Configure service resources - docker_swarm_service: + community.general.docker_swarm_service: name: myservice image: alpine:edge reservations: @@ -1037,7 +1037,7 @@ EXAMPLES = ''' memory: 50M - name: Remove service - docker_swarm_service: + community.general.docker_swarm_service: name: myservice state: absent ''' diff --git a/plugins/modules/cloud/docker/docker_swarm_service_info.py b/plugins/modules/cloud/docker/docker_swarm_service_info.py index e8b5a6613a..130be7b3bf 100644 --- a/plugins/modules/cloud/docker/docker_swarm_service_info.py +++ b/plugins/modules/cloud/docker/docker_swarm_service_info.py @@ -40,7 +40,7 @@ requirements: EXAMPLES = ''' - name: Get info from a service - docker_swarm_service_info: + community.general.docker_swarm_service_info: name: myservice register: result ''' diff --git a/plugins/modules/cloud/docker/docker_volume.py b/plugins/modules/cloud/docker/docker_volume.py index d487b0265f..60af4b997c 100644 --- a/plugins/modules/cloud/docker/docker_volume.py +++ b/plugins/modules/cloud/docker/docker_volume.py @@ -92,16 +92,16 @@ requirements: EXAMPLES = ''' - name: Create a volume - docker_volume: + community.general.docker_volume: name: volume_one - name: Remove a volume - docker_volume: + community.general.docker_volume: name: volume_one state: absent - name: Create a volume with options - docker_volume: + community.general.docker_volume: name: volume_two driver_options: type: btrfs diff --git a/plugins/modules/cloud/docker/docker_volume_info.py b/plugins/modules/cloud/docker/docker_volume_info.py index c6dc3eb2a4..b792c912b3 100644 --- a/plugins/modules/cloud/docker/docker_volume_info.py +++ b/plugins/modules/cloud/docker/docker_volume_info.py @@ -37,7 +37,7 @@ requirements: EXAMPLES = ''' - name: Get infos on volume - docker_volume_info: + community.general.docker_volume_info: name: mydata register: result diff --git a/plugins/modules/cloud/google/gc_storage.py b/plugins/modules/cloud/google/gc_storage.py index eb4d3a838c..f612225fe0 100644 --- a/plugins/modules/cloud/google/gc_storage.py +++ b/plugins/modules/cloud/google/gc_storage.py @@ -85,7 +85,7 @@ author: EXAMPLES = ''' - name: Upload some content - gc_storage: + community.general.gc_storage: bucket: mybucket object: key.txt src: /usr/local/myfile.txt @@ -93,49 +93,49 @@ EXAMPLES = ''' permission: public-read - name: Upload some headers - gc_storage: + community.general.gc_storage: bucket: mybucket object: key.txt src: /usr/local/myfile.txt headers: '{"Content-Encoding": "gzip"}' - name: Download some content - gc_storage: + community.general.gc_storage: bucket: mybucket object: key.txt dest: /usr/local/myfile.txt mode: get - name: Download an object as a string to use else where in your playbook - gc_storage: + community.general.gc_storage: bucket: mybucket object: key.txt mode: get_str - name: Create an empty bucket - gc_storage: + community.general.gc_storage: bucket: mybucket mode: create - name: Create a bucket with key as directory - gc_storage: + community.general.gc_storage: bucket: mybucket object: /my/directory/path mode: create - name: Delete a bucket and all contents - gc_storage: + community.general.gc_storage: bucket: mybucket mode: delete - name: Create a bucket with versioning enabled - gc_storage: + community.general.gc_storage: bucket: "mybucket" versioning: yes mode: create - name: Create a bucket located in the eu - gc_storage: + community.general.gc_storage: bucket: "mybucket" region: "europe-west3" mode: create diff --git a/plugins/modules/cloud/google/gcdns_record.py b/plugins/modules/cloud/google/gcdns_record.py index 5b0b87e6c7..da4980a941 100644 --- a/plugins/modules/cloud/google/gcdns_record.py +++ b/plugins/modules/cloud/google/gcdns_record.py @@ -129,14 +129,14 @@ notes: EXAMPLES = ''' - name: Create an A record - gcdns_record: + community.general.gcdns_record: record: 'www1.example.com' zone: 'example.com' type: A value: '1.2.3.4' - name: Update an existing record - gcdns_record: + community.general.gcdns_record: record: 'www1.example.com' zone: 'example.com' type: A @@ -144,7 +144,7 @@ EXAMPLES = ''' value: '5.6.7.8' - name: Remove an A record - gcdns_record: + community.general.gcdns_record: record: 'www1.example.com' zone_id: 'example-com' state: absent @@ -152,14 +152,14 @@ EXAMPLES = ''' value: '5.6.7.8' - name: Create a CNAME record. Note the trailing dot of value - gcdns_record: + community.general.gcdns_record: record: 'www.example.com' zone_id: 'example-com' type: CNAME value: 'www.example.com.' - name: Create an MX record with a custom TTL. Note the trailing dot of value - gcdns_record: + community.general.gcdns_record: record: 'example.com' zone: 'example.com' type: MX @@ -167,7 +167,7 @@ EXAMPLES = ''' value: '10 mail.example.com.' - name: Create multiple A records with the same name - gcdns_record: + community.general.gcdns_record: record: 'api.example.com' zone_id: 'example-com' type: A @@ -178,7 +178,7 @@ EXAMPLES = ''' - '203.0.113.10' - name: Change the value of an existing record with multiple record_data - gcdns_record: + community.general.gcdns_record: record: 'api.example.com' zone: 'example.com' type: A @@ -190,7 +190,7 @@ EXAMPLES = ''' - '203.0.113.10' - name: Safely remove a multi-line record - gcdns_record: + community.general.gcdns_record: record: 'api.example.com' zone_id: 'example-com' state: absent @@ -202,7 +202,7 @@ EXAMPLES = ''' - '203.0.113.10' - name: Unconditionally remove a record - gcdns_record: + community.general.gcdns_record: record: 'api.example.com' zone_id: 'example-com' state: absent @@ -210,21 +210,21 @@ EXAMPLES = ''' type: A - name: Create an AAAA record - gcdns_record: + community.general.gcdns_record: record: 'www1.example.com' zone: 'example.com' type: AAAA value: 'fd00:db8::1' - name: Create a PTR record - gcdns_record: + community.general.gcdns_record: record: '10.5.168.192.in-addr.arpa' zone: '5.168.192.in-addr.arpa' type: PTR value: 'api.example.com.' # Note the trailing dot. - name: Create an NS record - gcdns_record: + community.general.gcdns_record: record: 'subdomain.example.com' zone: 'example.com' type: NS @@ -236,7 +236,7 @@ EXAMPLES = ''' - 'ns-cloud-d4.googledomains.com.' - name: Create a TXT record - gcdns_record: + community.general.gcdns_record: record: 'example.com' zone_id: 'example-com' type: TXT diff --git a/plugins/modules/cloud/google/gcdns_zone.py b/plugins/modules/cloud/google/gcdns_zone.py index 33044be9e9..bb185b4f64 100644 --- a/plugins/modules/cloud/google/gcdns_zone.py +++ b/plugins/modules/cloud/google/gcdns_zone.py @@ -69,15 +69,15 @@ notes: EXAMPLES = ''' # Basic zone creation example. - name: Create a basic zone with the minimum number of parameters. - gcdns_zone: zone=example.com + community.general.gcdns_zone: zone=example.com # Zone removal example. - name: Remove a zone. - gcdns_zone: zone=example.com state=absent + community.general.gcdns_zone: zone=example.com state=absent # Zone creation with description - name: Creating a zone with a description - gcdns_zone: zone=example.com description="This is an awesome zone" + community.general.gcdns_zone: zone=example.com description="This is an awesome zone" ''' RETURN = ''' diff --git a/plugins/modules/cloud/google/gce.py b/plugins/modules/cloud/google/gce.py index 82499a1fa1..076440624d 100644 --- a/plugins/modules/cloud/google/gce.py +++ b/plugins/modules/cloud/google/gce.py @@ -153,7 +153,7 @@ EXAMPLES = ''' # Create multiple instances by specifying multiple names, separated by # commas in the instance_names field # (e.g. my-test-instance1,my-test-instance2) - - gce: + - community.general.gce: instance_names: my-test-instance1 zone: us-central1-a machine_type: n1-standard-1 @@ -167,7 +167,7 @@ EXAMPLES = ''' # Create a single instance of an image from the "my-base-image" image family # in the us-central1-a Zone of the n1-standard-1 machine type. # This image family is in the "my-other-project" GCP project. - - gce: + - community.general.gce: instance_names: my-test-instance1 zone: us-central1-a machine_type: n1-standard-1 @@ -183,7 +183,7 @@ EXAMPLES = ''' # Create a single Debian 8 instance in the us-central1-a Zone # Use existing disks, custom network/subnetwork, set service account permissions # add tags and metadata. - - gce: + - community.general.gce: instance_names: my-test-instance zone: us-central1-a machine_type: n1-standard-1 @@ -223,7 +223,7 @@ EXAMPLES = ''' - name: Create multiple instances # Basic provisioning example. Create multiple Debian 8 instances in the # us-central1-a Zone of n1-standard-1 machine type. - gce: + community.general.gce: instance_names: test1,test2,test3 zone: us-central1-a machine_type: n1-standard-1 @@ -262,7 +262,7 @@ EXAMPLES = ''' - name: Delete test-instances # Basic termination of instance. - gce: + community.general.gce: service_account_email: "{{ service_account_email }}" credentials_file: "{{ credentials_file }}" project_id: "{{ project_id }}" @@ -354,7 +354,7 @@ def create_instances(module, gce, instance_names, number, lc_zone): up from 'module' module : AnsibleModule object - gce: authenticated GCE libcloud driver + community.general.gce: authenticated GCE libcloud driver instance_names: python list of instance names to create number: number of instances to create lc_zone: GCEZone object @@ -550,7 +550,7 @@ def change_instance_state(module, gce, instance_names, number, zone, state): change from started to stopped, or started to absent. module: Ansible module object - gce: authenticated GCE connection object + community.general.gce: authenticated GCE connection object instance_names: a list of instance names to terminate zone: GCEZone object where the instances reside prior to termination state: 'state' parameter passed into module as argument diff --git a/plugins/modules/cloud/google/gce_eip.py b/plugins/modules/cloud/google/gce_eip.py index 3ea54651d0..447e4401b9 100644 --- a/plugins/modules/cloud/google/gce_eip.py +++ b/plugins/modules/cloud/google/gce_eip.py @@ -37,7 +37,7 @@ options: EXAMPLES = ''' - name: Create a Global external IP address - gce_eip: + community.general.gce_eip: service_account_email: "{{ service_account_email }}" credentials_file: "{{ credentials_file }}" project_id: "{{ project_id }}" @@ -46,7 +46,7 @@ EXAMPLES = ''' state: present - name: Create a Regional external IP address - gce_eip: + community.general.gce_eip: service_account_email: "{{ service_account_email }}" credentials_file: "{{ credentials_file }}" project_id: "{{ project_id }}" diff --git a/plugins/modules/cloud/google/gce_img.py b/plugins/modules/cloud/google/gce_img.py index 94c342acd0..9eff582079 100644 --- a/plugins/modules/cloud/google/gce_img.py +++ b/plugins/modules/cloud/google/gce_img.py @@ -60,24 +60,24 @@ author: "Tom Melendez (@supertom)" EXAMPLES = ''' - name: Create an image named test-image from the disk 'test-disk' in zone us-central1-a - gce_img: + community.general.gce_img: name: test-image source: test-disk zone: us-central1-a state: present - name: Create an image named test-image from a tarball in Google Cloud Storage - gce_img: + community.general.gce_img: name: test-image source: https://storage.googleapis.com/bucket/path/to/image.tgz - name: Alternatively use the gs scheme - gce_img: + community.general.gce_img: name: test-image source: gs://bucket/path/to/image.tgz - name: Delete an image named test-image - gce_img: + community.general.gce_img: name: test-image state: absent ''' diff --git a/plugins/modules/cloud/google/gce_instance_template.py b/plugins/modules/cloud/google/gce_instance_template.py index 147587ce1b..0ef3f375dd 100644 --- a/plugins/modules/cloud/google/gce_instance_template.py +++ b/plugins/modules/cloud/google/gce_instance_template.py @@ -148,7 +148,7 @@ author: "Gwenael Pellen (@GwenaelPellenArkeup) " EXAMPLES = ''' # Usage - name: Create instance template named foo - gce_instance_template: + community.general.gce_instance_template: name: foo size: n1-standard-1 image_family: ubuntu-1604-lts @@ -166,7 +166,7 @@ EXAMPLES = ''' project_id: "your-project-name" tasks: - name: Create instance template - gce_instance_template: + community.general.gce_instance_template: name: my-test-instance-template size: n1-standard-1 image_family: ubuntu-1604-lts @@ -175,7 +175,7 @@ EXAMPLES = ''' credentials_file: "{{ credentials_file }}" service_account_email: "{{ service_account_email }}" - name: Delete instance template - gce_instance_template: + community.general.gce_instance_template: name: my-test-instance-template size: n1-standard-1 image_family: ubuntu-1604-lts @@ -193,7 +193,7 @@ EXAMPLES = ''' project_id: "your-project-name" tasks: - name: Create instance template - gce_instance_template: + community.general.gce_instance_template: name: foo size: n1-standard-1 state: present diff --git a/plugins/modules/cloud/google/gce_labels.py b/plugins/modules/cloud/google/gce_labels.py index c06cc7ed9f..920ab0ee9d 100644 --- a/plugins/modules/cloud/google/gce_labels.py +++ b/plugins/modules/cloud/google/gce_labels.py @@ -56,7 +56,7 @@ options: EXAMPLES = ''' - name: Add labels on an existing instance (using resource_url) - gce_labels: + community.general.gce_labels: service_account_email: "{{ service_account_email }}" credentials_file: "{{ credentials_file }}" project_id: "{{ project_id }}" @@ -67,7 +67,7 @@ EXAMPLES = ''' resource_url: https://www.googleapis.com/compute/beta/projects/myproject/zones/us-central1-f/instances/example-instance state: present - name: Add labels on an image (using resource params) - gce_labels: + community.general.gce_labels: service_account_email: "{{ service_account_email }}" credentials_file: "{{ credentials_file }}" project_id: "{{ project_id }}" @@ -80,7 +80,7 @@ EXAMPLES = ''' resource_name: my-custom-image state: present - name: Remove specified labels from the GCE instance - gce_labels: + community.general.gce_labels: service_account_email: "{{ service_account_email }}" credentials_file: "{{ credentials_file }}" project_id: "{{ project_id }}" diff --git a/plugins/modules/cloud/google/gce_mig.py b/plugins/modules/cloud/google/gce_mig.py index bc5a631046..728b62af2b 100644 --- a/plugins/modules/cloud/google/gce_mig.py +++ b/plugins/modules/cloud/google/gce_mig.py @@ -80,7 +80,7 @@ EXAMPLES = ''' gather_facts: False tasks: - name: Create MIG - gce_mig: + community.general.gce_mig: name: ansible-mig-example zone: us-central1-c state: present @@ -97,7 +97,7 @@ EXAMPLES = ''' seconds: 30 - name: Recreate MIG Instances with Instance Template change. - gce_mig: + community.general.gce_mig: name: ansible-mig-example zone: us-central1-c state: present @@ -109,14 +109,14 @@ EXAMPLES = ''' seconds: 30 - name: Resize MIG - gce_mig: + community.general.gce_mig: name: ansible-mig-example zone: us-central1-c state: present size: 3 - name: Update MIG with Autoscaler - gce_mig: + community.general.gce_mig: name: ansible-mig-example zone: us-central1-c state: present @@ -140,7 +140,7 @@ EXAMPLES = ''' seconds: 30 - name: Delete MIG - gce_mig: + community.general.gce_mig: name: ansible-mig-example zone: us-central1-c state: absent diff --git a/plugins/modules/cloud/google/gce_net.py b/plugins/modules/cloud/google/gce_net.py index 680f733ba3..c398686acc 100644 --- a/plugins/modules/cloud/google/gce_net.py +++ b/plugins/modules/cloud/google/gce_net.py @@ -96,7 +96,7 @@ author: "Eric Johnson (@erjohnso) , Tom Melendez (@supertom EXAMPLES = ''' # Create a 'legacy' Network - name: Create Legacy Network - gce_net: + community.general.gce_net: name: legacynet ipv4_range: '10.24.17.0/24' mode: legacy @@ -104,14 +104,14 @@ EXAMPLES = ''' # Create an 'auto' Network - name: Create Auto Network - gce_net: + community.general.gce_net: name: autonet mode: auto state: present # Create a 'custom' Network - name: Create Custom Network - gce_net: + community.general.gce_net: name: customnet mode: custom subnet_name: "customsubnet" @@ -121,7 +121,7 @@ EXAMPLES = ''' # Create Firewall Rule with Source Tags - name: Create Firewall Rule w/Source Tags - gce_net: + community.general.gce_net: name: default fwname: "my-firewall-rule" allowed: tcp:80 @@ -130,7 +130,7 @@ EXAMPLES = ''' # Create Firewall Rule with Source Range - name: Create Firewall Rule w/Source Range - gce_net: + community.general.gce_net: name: default fwname: "my-firewall-rule" allowed: tcp:80 @@ -139,7 +139,7 @@ EXAMPLES = ''' # Create Custom Subnetwork - name: Create Custom Subnetwork - gce_net: + community.general.gce_net: name: privatenet mode: custom subnet_name: subnet_example diff --git a/plugins/modules/cloud/google/gce_snapshot.py b/plugins/modules/cloud/google/gce_snapshot.py index b1f0078a6c..1fe0d064bc 100644 --- a/plugins/modules/cloud/google/gce_snapshot.py +++ b/plugins/modules/cloud/google/gce_snapshot.py @@ -56,7 +56,7 @@ author: Rob Wagner (@robwagner33) EXAMPLES = ''' - name: Create gce snapshot - gce_snapshot: + community.general.gce_snapshot: instance_name: example-instance snapshot_name: example-snapshot state: present @@ -66,7 +66,7 @@ EXAMPLES = ''' delegate_to: localhost - name: Delete gce snapshot - gce_snapshot: + community.general.gce_snapshot: instance_name: example-instance snapshot_name: example-snapshot state: absent @@ -78,7 +78,7 @@ EXAMPLES = ''' # This example creates snapshots for only two of the available disks as # disk0-example-snapshot and disk1-example-snapshot - name: Create snapshots of specific disks - gce_snapshot: + community.general.gce_snapshot: instance_name: example-instance snapshot_name: example-snapshot state: present diff --git a/plugins/modules/cloud/google/gce_tag.py b/plugins/modules/cloud/google/gce_tag.py index 8e5e35b7af..732d404bf9 100644 --- a/plugins/modules/cloud/google/gce_tag.py +++ b/plugins/modules/cloud/google/gce_tag.py @@ -58,20 +58,20 @@ author: EXAMPLES = ''' - name: Add tags to instance - gce_tag: + community.general.gce_tag: instance_name: staging-server tags: http-server,https-server,staging zone: us-central1-a state: present - name: Remove tags from instance in default zone (us-central1-a) - gce_tag: + community.general.gce_tag: instance_name: test-server tags: foo,bar state: absent - name: Add tags to instances in zone that match pattern - gce_tag: + community.general.gce_tag: instance_pattern: test-server-* tags: foo,bar zone: us-central1-a diff --git a/plugins/modules/cloud/google/gcp_target_proxy.py b/plugins/modules/cloud/google/gcp_target_proxy.py index 8c475f6057..61e0527ffc 100644 --- a/plugins/modules/cloud/google/gcp_target_proxy.py +++ b/plugins/modules/cloud/google/gcp_target_proxy.py @@ -45,7 +45,7 @@ options: EXAMPLES = ''' - name: Create Minimum HTTP Target_Proxy - gcp_target_proxy: + community.general.gcp_target_proxy: service_account_email: "{{ service_account_email }}" credentials_file: "{{ credentials_file }}" project_id: "{{ project_id }}" diff --git a/plugins/modules/cloud/google/gcp_url_map.py b/plugins/modules/cloud/google/gcp_url_map.py index 58458dab03..8c96a1eaa7 100644 --- a/plugins/modules/cloud/google/gcp_url_map.py +++ b/plugins/modules/cloud/google/gcp_url_map.py @@ -70,7 +70,7 @@ options: EXAMPLES = ''' - name: Create Minimal Url_Map - gcp_url_map: + community.general.gcp_url_map: service_account_email: "{{ service_account_email }}" credentials_file: "{{ credentials_file }}" project_id: "{{ project_id }}" @@ -78,7 +78,7 @@ EXAMPLES = ''' default_service: my-backend-service state: present - name: Create UrlMap with pathmatcher - gcp_url_map: + community.general.gcp_url_map: service_account_email: "{{ service_account_email }}" credentials_file: "{{ credentials_file }}" project_id: "{{ project_id }}" diff --git a/plugins/modules/cloud/google/gcspanner.py b/plugins/modules/cloud/google/gcspanner.py index 288519c158..f153716670 100644 --- a/plugins/modules/cloud/google/gcspanner.py +++ b/plugins/modules/cloud/google/gcspanner.py @@ -63,21 +63,21 @@ options: EXAMPLES = ''' - name: Create instance - gcspanner: + community.general.gcspanner: instance_id: '{{ instance_id }}' configuration: '{{ configuration }}' state: present node_count: 1 - name: Create database - gcspanner: + community.general.gcspanner: instance_id: '{{ instance_id }}' configuration: '{{ configuration }}' database_name: '{{ database_name }}' state: present - name: Delete instance (and all databases) -- gcspanner: +- community.general.gcspanner: instance_id: '{{ instance_id }}' configuration: '{{ configuration }}' state: absent diff --git a/plugins/modules/cloud/heroku/heroku_collaborator.py b/plugins/modules/cloud/heroku/heroku_collaborator.py index 4a2990d419..b2f4e007e9 100644 --- a/plugins/modules/cloud/heroku/heroku_collaborator.py +++ b/plugins/modules/cloud/heroku/heroku_collaborator.py @@ -48,14 +48,14 @@ notes: EXAMPLES = ''' - name: Create a heroku collaborator - heroku_collaborator: + community.general.heroku_collaborator: api_key: YOUR_API_KEY user: max.mustermann@example.com apps: heroku-example-app state: present - name: An example of using the module in loop - heroku_collaborator: + community.general.heroku_collaborator: api_key: YOUR_API_KEY user: '{{ item.user }}' apps: '{{ item.apps | default(apps) }}' diff --git a/plugins/modules/cloud/huawei/hwc_ecs_instance.py b/plugins/modules/cloud/huawei/hwc_ecs_instance.py index 2722d1929f..7c41489f10 100644 --- a/plugins/modules/cloud/huawei/hwc_ecs_instance.py +++ b/plugins/modules/cloud/huawei/hwc_ecs_instance.py @@ -256,7 +256,7 @@ EXAMPLES = ''' size: 10 register: disk - name: Create an instance - hwc_ecs_instance: + community.general.hwc_ecs_instance: data_volumes: - volume_id: "{{ disk.id }}" enable_auto_recovery: false diff --git a/plugins/modules/cloud/huawei/hwc_evs_disk.py b/plugins/modules/cloud/huawei/hwc_evs_disk.py index e17f0d8218..4aec1b94db 100644 --- a/plugins/modules/cloud/huawei/hwc_evs_disk.py +++ b/plugins/modules/cloud/huawei/hwc_evs_disk.py @@ -156,7 +156,7 @@ extends_documentation_fragment: EXAMPLES = ''' # test create disk - name: Create a disk - hwc_evs_disk: + community.general.hwc_evs_disk: availability_zone: "cn-north-1a" name: "ansible_evs_disk_test" volume_type: "SATA" diff --git a/plugins/modules/cloud/huawei/hwc_network_vpc.py b/plugins/modules/cloud/huawei/hwc_network_vpc.py index 809a4b192b..f53369adcd 100644 --- a/plugins/modules/cloud/huawei/hwc_network_vpc.py +++ b/plugins/modules/cloud/huawei/hwc_network_vpc.py @@ -66,7 +66,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Create a vpc - hwc_network_vpc: + community.general.hwc_network_vpc: identity_endpoint: "{{ identity_endpoint }}" user: "{{ user }}" password: "{{ password }}" diff --git a/plugins/modules/cloud/huawei/hwc_smn_topic.py b/plugins/modules/cloud/huawei/hwc_smn_topic.py index 5ec828b66c..f7fb4faea4 100644 --- a/plugins/modules/cloud/huawei/hwc_smn_topic.py +++ b/plugins/modules/cloud/huawei/hwc_smn_topic.py @@ -51,7 +51,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Create a smn topic - hwc_smn_topic: + community.general.hwc_smn_topic: identity_endpoint: "{{ identity_endpoint }}" user_name: "{{ user_name }}" password: "{{ password }}" diff --git a/plugins/modules/cloud/huawei/hwc_vpc_eip.py b/plugins/modules/cloud/huawei/hwc_vpc_eip.py index 18e05dc523..b53395f87a 100644 --- a/plugins/modules/cloud/huawei/hwc_vpc_eip.py +++ b/plugins/modules/cloud/huawei/hwc_vpc_eip.py @@ -145,7 +145,7 @@ EXAMPLES = ''' ip_address: "192.168.100.33" register: port - name: Create an eip and bind it to a port - hwc_vpc_eip: + community.general.hwc_vpc_eip: type: "5_bgp" dedicated_bandwidth: charge_mode: "traffic" diff --git a/plugins/modules/cloud/huawei/hwc_vpc_peering_connect.py b/plugins/modules/cloud/huawei/hwc_vpc_peering_connect.py index abb1013e6f..a4d5921b77 100644 --- a/plugins/modules/cloud/huawei/hwc_vpc_peering_connect.py +++ b/plugins/modules/cloud/huawei/hwc_vpc_peering_connect.py @@ -91,7 +91,7 @@ EXAMPLES = ''' name: "ansible_network_vpc_test_peering" register: vpc2 - name: Create a peering connect - hwc_vpc_peering_connect: + community.general.hwc_vpc_peering_connect: local_vpc_id: "{{ vpc1.id }}" name: "ansible_network_peering_test" peering_vpc: diff --git a/plugins/modules/cloud/huawei/hwc_vpc_port.py b/plugins/modules/cloud/huawei/hwc_vpc_port.py index f631c8478a..6704958dcf 100644 --- a/plugins/modules/cloud/huawei/hwc_vpc_port.py +++ b/plugins/modules/cloud/huawei/hwc_vpc_port.py @@ -121,7 +121,7 @@ EXAMPLES = ''' cidr: "192.168.100.0/26" register: subnet - name: Create a port - hwc_vpc_port: + community.general.hwc_vpc_port: subnet_id: "{{ subnet.id }}" ip_address: "192.168.100.33" ''' diff --git a/plugins/modules/cloud/huawei/hwc_vpc_private_ip.py b/plugins/modules/cloud/huawei/hwc_vpc_private_ip.py index fe13476934..901755f362 100644 --- a/plugins/modules/cloud/huawei/hwc_vpc_private_ip.py +++ b/plugins/modules/cloud/huawei/hwc_vpc_private_ip.py @@ -68,7 +68,7 @@ EXAMPLES = ''' cidr: "192.168.100.0/26" register: subnet - name: Create a private ip - hwc_vpc_private_ip: + community.general.hwc_vpc_private_ip: subnet_id: "{{ subnet.id }}" ip_address: "192.168.100.33" ''' diff --git a/plugins/modules/cloud/huawei/hwc_vpc_route.py b/plugins/modules/cloud/huawei/hwc_vpc_route.py index 6982f5ad78..31829dc601 100644 --- a/plugins/modules/cloud/huawei/hwc_vpc_route.py +++ b/plugins/modules/cloud/huawei/hwc_vpc_route.py @@ -81,7 +81,7 @@ EXAMPLES = ''' vpc_id: "{{ vpc2.id }}" register: connect - name: Create a route - hwc_vpc_route: + community.general.hwc_vpc_route: vpc_id: "{{ vpc1.id }}" destination: "192.168.0.0/16" next_hop: "{{ connect.id }}" diff --git a/plugins/modules/cloud/huawei/hwc_vpc_security_group.py b/plugins/modules/cloud/huawei/hwc_vpc_security_group.py index 7c07949998..603518159b 100644 --- a/plugins/modules/cloud/huawei/hwc_vpc_security_group.py +++ b/plugins/modules/cloud/huawei/hwc_vpc_security_group.py @@ -66,7 +66,7 @@ extends_documentation_fragment: EXAMPLES = ''' # create a security group - name: Create a security group - hwc_vpc_security_group: + community.general.hwc_vpc_security_group: name: "ansible_network_security_group_test" ''' diff --git a/plugins/modules/cloud/huawei/hwc_vpc_security_group_rule.py b/plugins/modules/cloud/huawei/hwc_vpc_security_group_rule.py index edfaf47161..f92c82764e 100644 --- a/plugins/modules/cloud/huawei/hwc_vpc_security_group_rule.py +++ b/plugins/modules/cloud/huawei/hwc_vpc_security_group_rule.py @@ -111,7 +111,7 @@ EXAMPLES = ''' name: "ansible_network_security_group_test" register: sg - name: Create a security group rule - hwc_vpc_security_group_rule: + community.general.hwc_vpc_security_group_rule: direction: "ingress" protocol: "tcp" ethertype: "IPv4" diff --git a/plugins/modules/cloud/huawei/hwc_vpc_subnet.py b/plugins/modules/cloud/huawei/hwc_vpc_subnet.py index ba2e5fd790..c7a05f5b77 100644 --- a/plugins/modules/cloud/huawei/hwc_vpc_subnet.py +++ b/plugins/modules/cloud/huawei/hwc_vpc_subnet.py @@ -104,7 +104,7 @@ EXAMPLES = ''' name: "ansible_network_vpc_test" register: vpc - name: Create subnet - hwc_vpc_subnet: + community.general.hwc_vpc_subnet: vpc_id: "{{ vpc.id }}" cidr: "192.168.100.0/26" gateway_ip: "192.168.100.32" diff --git a/plugins/modules/cloud/kubevirt/kubevirt_cdi_upload.py b/plugins/modules/cloud/kubevirt/kubevirt_cdi_upload.py index caa1d2c6ba..f25d7d7033 100644 --- a/plugins/modules/cloud/kubevirt/kubevirt_cdi_upload.py +++ b/plugins/modules/cloud/kubevirt/kubevirt_cdi_upload.py @@ -64,7 +64,7 @@ requirements: EXAMPLES = ''' - name: Upload local image to pvc-vm1 - kubevirt_cdi_upload: + community.general.kubevirt_cdi_upload: pvc_namespace: default pvc_name: pvc-vm1 upload_host: https://localhost:8443 diff --git a/plugins/modules/cloud/kubevirt/kubevirt_preset.py b/plugins/modules/cloud/kubevirt/kubevirt_preset.py index 15d41e7df6..7e0776c788 100644 --- a/plugins/modules/cloud/kubevirt/kubevirt_preset.py +++ b/plugins/modules/cloud/kubevirt/kubevirt_preset.py @@ -57,7 +57,7 @@ requirements: EXAMPLES = ''' - name: Create virtual machine preset 'vmi-preset-small' - kubevirt_preset: + community.general.kubevirt_preset: state: present name: vmi-preset-small namespace: vms @@ -67,7 +67,7 @@ EXAMPLES = ''' kubevirt.io/vmPreset: vmi-preset-small - name: Remove virtual machine preset 'vmi-preset-small' - kubevirt_preset: + community.general.kubevirt_preset: state: absent name: vmi-preset-small namespace: vms diff --git a/plugins/modules/cloud/kubevirt/kubevirt_pvc.py b/plugins/modules/cloud/kubevirt/kubevirt_pvc.py index 44980f076d..5687c23db4 100644 --- a/plugins/modules/cloud/kubevirt/kubevirt_pvc.py +++ b/plugins/modules/cloud/kubevirt/kubevirt_pvc.py @@ -148,7 +148,7 @@ requirements: EXAMPLES = ''' - name: Create a PVC and import data from an external source - kubevirt_pvc: + community.general.kubevirt_pvc: name: pvc1 namespace: default size: 100Mi @@ -161,7 +161,7 @@ EXAMPLES = ''' #content_type: archive - name: Create a PVC as a clone from a different PVC - kubevirt_pvc: + community.general.kubevirt_pvc: name: pvc2 namespace: default size: 100Mi @@ -173,7 +173,7 @@ EXAMPLES = ''' name: source-pvc - name: Create a PVC ready for data upload - kubevirt_pvc: + community.general.kubevirt_pvc: name: pvc3 namespace: default size: 100Mi @@ -184,7 +184,7 @@ EXAMPLES = ''' # You need the kubevirt_cdi_upload module to actually upload something - name: Create a PVC with a blank raw image - kubevirt_pvc: + community.general.kubevirt_pvc: name: pvc4 namespace: default size: 100Mi @@ -194,7 +194,7 @@ EXAMPLES = ''' blank: yes - name: Create a PVC and fill it with data from a container - kubevirt_pvc: + community.general.kubevirt_pvc: name: pvc5 namespace: default size: 100Mi diff --git a/plugins/modules/cloud/kubevirt/kubevirt_rs.py b/plugins/modules/cloud/kubevirt/kubevirt_rs.py index 2a917b95b3..d1fdc3949a 100644 --- a/plugins/modules/cloud/kubevirt/kubevirt_rs.py +++ b/plugins/modules/cloud/kubevirt/kubevirt_rs.py @@ -63,7 +63,7 @@ requirements: EXAMPLES = ''' - name: Create virtual machine replica set 'myvmir' - kubevirt_rs: + community.general.kubevirt_rs: state: present name: myvmir namespace: vms @@ -85,7 +85,7 @@ EXAMPLES = ''' bus: virtio - name: Remove virtual machine replica set 'myvmir' - kubevirt_rs: + community.general.kubevirt_rs: state: absent name: myvmir namespace: vms diff --git a/plugins/modules/cloud/kubevirt/kubevirt_template.py b/plugins/modules/cloud/kubevirt/kubevirt_template.py index 0f9c75a546..3054b1a77b 100644 --- a/plugins/modules/cloud/kubevirt/kubevirt_template.py +++ b/plugins/modules/cloud/kubevirt/kubevirt_template.py @@ -144,7 +144,7 @@ requirements: EXAMPLES = ''' - name: Create template 'mytemplate' - kubevirt_template: + community.general.kubevirt_template: state: present name: myvmtemplate namespace: templates @@ -182,7 +182,7 @@ EXAMPLES = ''' value: 1Gi - name: Remove template 'myvmtemplate' - kubevirt_template: + community.general.kubevirt_template: state: absent name: myvmtemplate namespace: templates diff --git a/plugins/modules/cloud/kubevirt/kubevirt_vm.py b/plugins/modules/cloud/kubevirt/kubevirt_vm.py index bfcba2ad4e..4466bee25b 100644 --- a/plugins/modules/cloud/kubevirt/kubevirt_vm.py +++ b/plugins/modules/cloud/kubevirt/kubevirt_vm.py @@ -79,13 +79,13 @@ requirements: EXAMPLES = ''' - name: Start virtual machine 'myvm' - kubevirt_vm: + community.general.kubevirt_vm: state: running name: myvm namespace: vms - name: Create virtual machine 'myvm' and start it - kubevirt_vm: + community.general.kubevirt_vm: state: running name: myvm namespace: vms @@ -111,7 +111,7 @@ EXAMPLES = ''' bus: virtio - name: Create virtual machine 'myvm' with multus network interface - kubevirt_vm: + community.general.kubevirt_vm: name: myvm namespace: vms memory: 512M @@ -127,7 +127,7 @@ EXAMPLES = ''' networkName: mynetconf - name: Combine inline definition with Ansible parameters - kubevirt_vm: + community.general.kubevirt_vm: # Kubernetes specification: definition: metadata: @@ -151,7 +151,7 @@ EXAMPLES = ''' bus: virtio - name: Start ephemeral virtual machine 'myvm' and wait to be running - kubevirt_vm: + community.general.kubevirt_vm: ephemeral: true state: running wait: true @@ -171,7 +171,7 @@ EXAMPLES = ''' bus: virtio - name: Start fedora vm with cloud init - kubevirt_vm: + community.general.kubevirt_vm: state: running wait: true name: myvm @@ -201,7 +201,7 @@ EXAMPLES = ''' - S2 - name: Create virtual machine with datavolume and specify node affinity - kubevirt_vm: + community.general.kubevirt_vm: name: myvm namespace: default memory: 1024Mi @@ -224,7 +224,7 @@ EXAMPLES = ''' - S1 - name: Remove virtual machine 'myvm' - kubevirt_vm: + community.general.kubevirt_vm: state: absent name: myvm namespace: vms diff --git a/plugins/modules/cloud/linode/linode.py b/plugins/modules/cloud/linode/linode.py index dd267f2cac..fd40bb297e 100644 --- a/plugins/modules/cloud/linode/linode.py +++ b/plugins/modules/cloud/linode/linode.py @@ -139,7 +139,7 @@ notes: EXAMPLES = ''' - name: Create a new Linode - linode: + community.general.linode: name: linode-test1 plan: 1 datacenter: 7 @@ -148,7 +148,7 @@ EXAMPLES = ''' register: linode_creation - name: Create a server with a private IP Address - linode: + community.general.linode: module: linode api_key: 'longStringFromLinodeApi' name: linode-test1 @@ -166,7 +166,7 @@ EXAMPLES = ''' register: linode_creation - name: Fully configure new server - linode: + community.general.linode: api_key: 'longStringFromLinodeApi' name: linode-test1 plan: 4 @@ -201,7 +201,7 @@ EXAMPLES = ''' register: linode_creation - name: Ensure a running server (create if missing) - linode: + community.general.linode: api_key: 'longStringFromLinodeApi' name: linode-test1 plan: 1 @@ -217,7 +217,7 @@ EXAMPLES = ''' register: linode_creation - name: Delete a server - linode: + community.general.linode: api_key: 'longStringFromLinodeApi' name: linode-test1 linode_id: "{{ linode_creation.instance.id }}" @@ -225,7 +225,7 @@ EXAMPLES = ''' delegate_to: localhost - name: Stop a server - linode: + community.general.linode: api_key: 'longStringFromLinodeApi' name: linode-test1 linode_id: "{{ linode_creation.instance.id }}" @@ -233,7 +233,7 @@ EXAMPLES = ''' delegate_to: localhost - name: Reboot a server - linode: + community.general.linode: api_key: 'longStringFromLinodeApi' name: linode-test1 linode_id: "{{ linode_creation.instance.id }}" diff --git a/plugins/modules/cloud/linode/linode_v4.py b/plugins/modules/cloud/linode/linode_v4.py index 46e8799741..7990cb34ae 100644 --- a/plugins/modules/cloud/linode/linode_v4.py +++ b/plugins/modules/cloud/linode/linode_v4.py @@ -93,7 +93,7 @@ options: EXAMPLES = """ - name: Create a new Linode. - linode_v4: + community.general.linode_v4: label: new-linode type: g6-nanode-1 region: eu-west @@ -104,7 +104,7 @@ EXAMPLES = """ state: present - name: Delete that new Linode. - linode_v4: + community.general.linode_v4: label: new-linode state: absent """ diff --git a/plugins/modules/cloud/lxc/lxc_container.py b/plugins/modules/cloud/lxc/lxc_container.py index 303a269810..743b6c4813 100644 --- a/plugins/modules/cloud/lxc/lxc_container.py +++ b/plugins/modules/cloud/lxc/lxc_container.py @@ -172,7 +172,7 @@ notes: EXAMPLES = """ - name: Create a started container - lxc_container: + community.general.lxc_container: name: test-container-started container_log: true template: ubuntu @@ -180,7 +180,7 @@ EXAMPLES = """ template_options: --release trusty - name: Create a stopped container - lxc_container: + community.general.lxc_container: name: test-container-stopped container_log: true template: ubuntu @@ -188,7 +188,7 @@ EXAMPLES = """ template_options: --release trusty - name: Create a frozen container - lxc_container: + community.general.lxc_container: name: test-container-frozen container_log: true template: ubuntu @@ -199,7 +199,7 @@ EXAMPLES = """ # Create filesystem container, configure it, and archive it, and start it. - name: Create filesystem container - lxc_container: + community.general.lxc_container: name: test-container-config backing_store: dir container_log: true @@ -216,7 +216,7 @@ EXAMPLES = """ # configuration to it, create an archive of it, and finally leave the container # in a frozen state. The container archive will be compressed using bzip2 - name: Create a frozen lvm container - lxc_container: + community.general.lxc_container: name: test-container-lvm container_log: true template: ubuntu @@ -242,33 +242,33 @@ EXAMPLES = """ var: lvm_container_info - name: Run a command in a container and ensure its in a "stopped" state. - lxc_container: + community.general.lxc_container: name: test-container-started state: stopped container_command: | echo 'hello world.' | tee /opt/stopped - name: Run a command in a container and ensure its it in a "frozen" state. - lxc_container: + community.general.lxc_container: name: test-container-stopped state: frozen container_command: | echo 'hello world.' | tee /opt/frozen - name: Start a container - lxc_container: + community.general.lxc_container: name: test-container-stopped state: started - name: Run a command in a container and then restart it - lxc_container: + community.general.lxc_container: name: test-container-started state: restarted container_command: | echo 'hello world.' | tee /opt/restarted - name: Run a complex command within a "running" container - lxc_container: + community.general.lxc_container: name: test-container-started container_command: | apt-get update @@ -281,7 +281,7 @@ EXAMPLES = """ # Create an archive of an existing container, save the archive to a defined # path and then destroy it. - name: Archive container - lxc_container: + community.general.lxc_container: name: test-container-started state: absent archive: true @@ -291,7 +291,7 @@ EXAMPLES = """ # snapshot clone of the container and and finally leave the container # in a frozen state. The container archive will be compressed using gzip. - name: Create an overlayfs container archive and clone it - lxc_container: + community.general.lxc_container: name: test-container-overlayfs container_log: true template: ubuntu @@ -309,20 +309,20 @@ EXAMPLES = """ var: clone_container_info - name: Clone a container using snapshot - lxc_container: + community.general.lxc_container: name: test-container-overlayfs-clone-snapshot backing_store: overlayfs clone_name: test-container-overlayfs-clone-snapshot2 clone_snapshot: true - name: Create a new container and clone it - lxc_container: + community.general.lxc_container: name: test-container-new-archive backing_store: dir clone_name: test-container-new-archive-clone - name: Archive and clone a container then destroy it - lxc_container: + community.general.lxc_container: name: test-container-new-archive state: absent clone_name: test-container-new-archive-destroyed-clone @@ -330,12 +330,12 @@ EXAMPLES = """ archive_compression: gzip - name: Start a cloned container. - lxc_container: + community.general.lxc_container: name: test-container-new-archive-destroyed-clone state: started - name: Destroy a container - lxc_container: + community.general.lxc_container: name: '{{ item }}' state: absent with_items: diff --git a/plugins/modules/cloud/lxd/lxd_container.py b/plugins/modules/cloud/lxd/lxd_container.py index 6ef97fd889..e1b4da2733 100644 --- a/plugins/modules/cloud/lxd/lxd_container.py +++ b/plugins/modules/cloud/lxd/lxd_container.py @@ -149,7 +149,7 @@ EXAMPLES = ''' connection: local tasks: - name: Create a started container - lxd_container: + community.general.lxd_container: name: mycontainer state: started source: @@ -182,7 +182,7 @@ EXAMPLES = ''' connection: local tasks: - name: Create a started container - lxd_container: + community.general.lxd_container: name: mycontainer state: started source: @@ -203,7 +203,7 @@ EXAMPLES = ''' connection: local tasks: - name: Delete a container - lxd_container: + community.general.lxd_container: name: mycontainer state: absent @@ -212,7 +212,7 @@ EXAMPLES = ''' connection: local tasks: - name: Restart a container - lxd_container: + community.general.lxd_container: name: mycontainer state: restarted @@ -221,7 +221,7 @@ EXAMPLES = ''' connection: local tasks: - name: Restart a container - lxd_container: + community.general.lxd_container: url: https://127.0.0.1:8443 # These client_cert and client_key values are equal to the default values. #client_cert: "{{ lookup('env', 'HOME') }}/.config/lxc/client.crt" diff --git a/plugins/modules/cloud/lxd/lxd_profile.py b/plugins/modules/cloud/lxd/lxd_profile.py index 8b16b3797c..0dcdf9f597 100644 --- a/plugins/modules/cloud/lxd/lxd_profile.py +++ b/plugins/modules/cloud/lxd/lxd_profile.py @@ -99,7 +99,7 @@ EXAMPLES = ''' connection: local tasks: - name: Create a profile - lxd_profile: + community.general.lxd_profile: name: macvlan state: present config: {} @@ -115,7 +115,7 @@ EXAMPLES = ''' connection: local tasks: - name: Create macvlan profile - lxd_profile: + community.general.lxd_profile: url: https://127.0.0.1:8443 # These client_cert and client_key values are equal to the default values. #client_cert: "{{ lookup('env', 'HOME') }}/.config/lxc/client.crt" @@ -136,7 +136,7 @@ EXAMPLES = ''' connection: local tasks: - name: Delete a profile - lxd_profile: + community.general.lxd_profile: name: macvlan state: absent @@ -145,7 +145,7 @@ EXAMPLES = ''' connection: local tasks: - name: Rename a profile - lxd_profile: + community.general.lxd_profile: name: macvlan new_name: macvlan2 state: present diff --git a/plugins/modules/cloud/memset/memset_dns_reload.py b/plugins/modules/cloud/memset/memset_dns_reload.py index 93aa9fdd8b..90fb912bdb 100644 --- a/plugins/modules/cloud/memset/memset_dns_reload.py +++ b/plugins/modules/cloud/memset/memset_dns_reload.py @@ -38,7 +38,7 @@ options: EXAMPLES = ''' - name: Submit DNS reload and poll - memset_dns_reload: + community.general.memset_dns_reload: api_key: 5eb86c9196ab03919abcf03857163741 poll: True delegate_to: localhost diff --git a/plugins/modules/cloud/memset/memset_memstore_info.py b/plugins/modules/cloud/memset/memset_memstore_info.py index 760a1c0901..90cd8cb1fa 100644 --- a/plugins/modules/cloud/memset/memset_memstore_info.py +++ b/plugins/modules/cloud/memset/memset_memstore_info.py @@ -31,7 +31,7 @@ options: EXAMPLES = ''' - name: Get usage for mstestyaa1 - memset_memstore_info: + community.general.memset_memstore_info: name: mstestyaa1 api_key: 5eb86c9896ab03919abcf03857163741 delegate_to: localhost diff --git a/plugins/modules/cloud/memset/memset_server_info.py b/plugins/modules/cloud/memset/memset_server_info.py index 5dfa35ad8a..cf01401fba 100644 --- a/plugins/modules/cloud/memset/memset_server_info.py +++ b/plugins/modules/cloud/memset/memset_server_info.py @@ -31,7 +31,7 @@ options: EXAMPLES = ''' - name: Get details for testyaa1 - memset_server_info: + community.general.memset_server_info: name: testyaa1 api_key: 5eb86c9896ab03919abcf03857163741 delegate_to: localhost diff --git a/plugins/modules/cloud/memset/memset_zone.py b/plugins/modules/cloud/memset/memset_zone.py index 78372a4b4b..1fb19684fe 100644 --- a/plugins/modules/cloud/memset/memset_zone.py +++ b/plugins/modules/cloud/memset/memset_zone.py @@ -51,7 +51,7 @@ options: EXAMPLES = ''' # Create the zone 'test' - name: Create zone - memset_zone: + community.general.memset_zone: name: test state: present api_key: 5eb86c9196ab03919abcf03857163741 @@ -60,7 +60,7 @@ EXAMPLES = ''' # Force zone deletion - name: Force delete zone - memset_zone: + community.general.memset_zone: name: test state: absent api_key: 5eb86c9196ab03919abcf03857163741 diff --git a/plugins/modules/cloud/memset/memset_zone_domain.py b/plugins/modules/cloud/memset/memset_zone_domain.py index 86d069fae0..0047648bb1 100644 --- a/plugins/modules/cloud/memset/memset_zone_domain.py +++ b/plugins/modules/cloud/memset/memset_zone_domain.py @@ -45,7 +45,7 @@ options: EXAMPLES = ''' # Create the zone domain 'test.com' - name: Create zone domain - memset_zone_domain: + community.general.memset_zone_domain: domain: test.com zone: testzone state: present diff --git a/plugins/modules/cloud/memset/memset_zone_record.py b/plugins/modules/cloud/memset/memset_zone_record.py index f65d8055e6..2dafc83557 100644 --- a/plugins/modules/cloud/memset/memset_zone_record.py +++ b/plugins/modules/cloud/memset/memset_zone_record.py @@ -67,7 +67,7 @@ options: EXAMPLES = ''' # Create DNS record for www.domain.com - name: Create DNS record - memset_zone_record: + community.general.memset_zone_record: api_key: dcf089a2896940da9ffefb307ef49ccd state: present zone: domain.com @@ -80,7 +80,7 @@ EXAMPLES = ''' # create an SPF record for domain.com - name: Create SPF record for domain.com - memset_zone_record: + community.general.memset_zone_record: api_key: dcf089a2896940da9ffefb307ef49ccd state: present zone: domain.com @@ -90,7 +90,7 @@ EXAMPLES = ''' # create multiple DNS records - name: Create multiple DNS records - memset_zone_record: + community.general.memset_zone_record: api_key: dcf089a2896940da9ffefb307ef49ccd zone: "{{ item.zone }}" type: "{{ item.type }}" diff --git a/plugins/modules/cloud/misc/cloud_init_data_facts.py b/plugins/modules/cloud/misc/cloud_init_data_facts.py index b4219446b1..c8127e5548 100644 --- a/plugins/modules/cloud/misc/cloud_init_data_facts.py +++ b/plugins/modules/cloud/misc/cloud_init_data_facts.py @@ -26,14 +26,14 @@ notes: EXAMPLES = ''' - name: Gather all facts of cloud init - cloud_init_data_facts: + community.general.cloud_init_data_facts: register: result - debug: var: result - name: Wait for cloud init to finish - cloud_init_data_facts: + community.general.cloud_init_data_facts: filter: status register: res until: "res.cloud_init_data_facts.status.v1.stage is defined and not res.cloud_init_data_facts.status.v1.stage" diff --git a/plugins/modules/cloud/misc/helm.py b/plugins/modules/cloud/misc/helm.py index fbf0580fe6..afa6da810b 100644 --- a/plugins/modules/cloud/misc/helm.py +++ b/plugins/modules/cloud/misc/helm.py @@ -61,7 +61,7 @@ RETURN = ''' # ''' EXAMPLES = ''' - name: Install helm chart - helm: + community.general.helm: host: localhost chart: name: memcached @@ -74,13 +74,13 @@ EXAMPLES = ''' namespace: default - name: Uninstall helm chart - helm: + community.general.helm: host: localhost state: absent name: my-memcached - name: Install helm chart from a git repo - helm: + community.general.helm: host: localhost chart: source: @@ -93,7 +93,7 @@ EXAMPLES = ''' foo: "bar" - name: Install helm chart from a git repo specifying path - helm: + community.general.helm: host: localhost chart: source: diff --git a/plugins/modules/cloud/misc/ovirt.py b/plugins/modules/cloud/misc/ovirt.py index f43f0bdd8e..1692935fcf 100644 --- a/plugins/modules/cloud/misc/ovirt.py +++ b/plugins/modules/cloud/misc/ovirt.py @@ -140,7 +140,7 @@ requirements: EXAMPLES = ''' - name: Basic example to provision from image - ovirt: + community.general.ovirt: user: admin@internal url: https://ovirt.example.com instance_name: ansiblevm04 @@ -150,7 +150,7 @@ EXAMPLES = ''' resource_type: template - name: Full example to create new instance from scratch - ovirt: + community.general.ovirt: instance_name: testansible resource_type: new instance_type: server @@ -171,7 +171,7 @@ EXAMPLES = ''' disk_int: virtio - name: Stopping an existing instance - ovirt: + community.general.ovirt: instance_name: testansible state: stopped user: admin@internal @@ -179,7 +179,7 @@ EXAMPLES = ''' url: https://ovirt.example.com - name: Start an existing instance - ovirt: + community.general.ovirt: instance_name: testansible state: started user: admin@internal @@ -187,7 +187,7 @@ EXAMPLES = ''' url: https://ovirt.example.com - name: Start an instance with cloud init information - ovirt: + community.general.ovirt: instance_name: testansible state: started user: admin@internal diff --git a/plugins/modules/cloud/misc/proxmox.py b/plugins/modules/cloud/misc/proxmox.py index 057108397e..2642db1978 100644 --- a/plugins/modules/cloud/misc/proxmox.py +++ b/plugins/modules/cloud/misc/proxmox.py @@ -149,7 +149,7 @@ author: Sergei Antipov (@UnderGreen) EXAMPLES = r''' - name: Create new container with minimal options - proxmox: + community.general.proxmox: vmid: 100 node: uk-mc02 api_user: root@pam @@ -160,7 +160,7 @@ EXAMPLES = r''' ostemplate: 'local:vztmpl/ubuntu-14.04-x86_64.tar.gz' - name: Create new container with hookscript and description - proxmox: + community.general.proxmox: vmid: 100 node: uk-mc02 api_user: root@pam @@ -173,7 +173,7 @@ EXAMPLES = r''' description: created with ansible - name: Create new container automatically selecting the next available vmid. - proxmox: + community.general.proxmox: node: 'uk-mc02' api_user: 'root@pam' api_password: '1q2w3e' @@ -183,7 +183,7 @@ EXAMPLES = r''' ostemplate: 'local:vztmpl/ubuntu-14.04-x86_64.tar.gz' - name: Create new container with minimal options with force(it will rewrite existing container) - proxmox: + community.general.proxmox: vmid: 100 node: uk-mc02 api_user: root@pam @@ -195,7 +195,7 @@ EXAMPLES = r''' force: yes - name: Create new container with minimal options use environment PROXMOX_PASSWORD variable(you should export it before) - proxmox: + community.general.proxmox: vmid: 100 node: uk-mc02 api_user: root@pam @@ -205,7 +205,7 @@ EXAMPLES = r''' ostemplate: 'local:vztmpl/ubuntu-14.04-x86_64.tar.gz' - name: Create new container with minimal options defining network interface with dhcp - proxmox: + community.general.proxmox: vmid: 100 node: uk-mc02 api_user: root@pam @@ -217,7 +217,7 @@ EXAMPLES = r''' netif: '{"net0":"name=eth0,ip=dhcp,ip6=dhcp,bridge=vmbr0"}' - name: Create new container with minimal options defining network interface with static ip - proxmox: + community.general.proxmox: vmid: 100 node: uk-mc02 api_user: root@pam @@ -229,7 +229,7 @@ EXAMPLES = r''' netif: '{"net0":"name=eth0,gw=192.168.0.1,ip=192.168.0.2/24,bridge=vmbr0"}' - name: Create new container with minimal options defining a mount with 8GB - proxmox: + community.general.proxmox: vmid: 100 node: uk-mc02 api_user: root@pam @@ -241,7 +241,7 @@ EXAMPLES = r''' mounts: '{"mp0":"local:8,mp=/mnt/test/"}' - name: Create new container with minimal options defining a cpu core limit - proxmox: + community.general.proxmox: vmid: 100 node: uk-mc02 api_user: root@pam @@ -253,7 +253,7 @@ EXAMPLES = r''' cores: 2 - name: Start container - proxmox: + community.general.proxmox: vmid: 100 api_user: root@pam api_password: 1q2w3e @@ -263,7 +263,7 @@ EXAMPLES = r''' - name: > Start container with mount. You should enter a 90-second timeout because servers with additional disks take longer to boot - proxmox: + community.general.proxmox: vmid: 100 api_user: root@pam api_password: 1q2w3e @@ -272,7 +272,7 @@ EXAMPLES = r''' timeout: 90 - name: Stop container - proxmox: + community.general.proxmox: vmid: 100 api_user: root@pam api_password: 1q2w3e @@ -280,7 +280,7 @@ EXAMPLES = r''' state: stopped - name: Stop container with force - proxmox: + community.general.proxmox: vmid: 100 api_user: root@pam api_password: 1q2w3e @@ -289,7 +289,7 @@ EXAMPLES = r''' state: stopped - name: Restart container(stopped or mounted container you can't restart) - proxmox: + community.general.proxmox: vmid: 100 api_user: root@pam api_password: 1q2w3e @@ -297,7 +297,7 @@ EXAMPLES = r''' state: restarted - name: Remove container - proxmox: + community.general.proxmox: vmid: 100 api_user: root@pam api_password: 1q2w3e diff --git a/plugins/modules/cloud/misc/proxmox_kvm.py b/plugins/modules/cloud/misc/proxmox_kvm.py index ca7de51301..9c573e50bc 100644 --- a/plugins/modules/cloud/misc/proxmox_kvm.py +++ b/plugins/modules/cloud/misc/proxmox_kvm.py @@ -363,7 +363,7 @@ requirements: [ "proxmoxer", "requests" ] EXAMPLES = ''' - name: Create new VM with minimal options - proxmox_kvm: + community.general.proxmox_kvm: api_user: root@pam api_password: secret api_host: helldorado @@ -371,7 +371,7 @@ EXAMPLES = ''' node: sabrewulf - name: Create new VM with minimal options and given vmid - proxmox_kvm: + community.general.proxmox_kvm: api_user: root@pam api_password: secret api_host: helldorado @@ -380,7 +380,7 @@ EXAMPLES = ''' vmid: 100 - name: Create new VM with two network interface options - proxmox_kvm: + community.general.proxmox_kvm: api_user: root@pam api_password: secret api_host: helldorado @@ -389,7 +389,7 @@ EXAMPLES = ''' net: '{"net0":"virtio,bridge=vmbr1,rate=200", "net1":"e1000,bridge=vmbr2,"}' - name: Create new VM with one network interface, three virto hard disk, 4 cores, and 2 vcpus - proxmox_kvm: + community.general.proxmox_kvm: api_user: root@pam api_password: secret api_host: helldorado @@ -404,7 +404,7 @@ EXAMPLES = ''' Clone VM with only source VM name. The VM source is spynal. The target VM name is zavala - proxmox_kvm: + community.general.proxmox_kvm: api_user: root@pam api_password: secret api_host: helldorado @@ -416,7 +416,7 @@ EXAMPLES = ''' timeout: 500 - name: Clone VM with source vmid and target newid and raw format - proxmox_kvm: + community.general.proxmox_kvm: api_user: root@pam api_password: secret api_host: helldorado @@ -430,7 +430,7 @@ EXAMPLES = ''' timeout: 300 - name: Create new VM and lock it for snapashot - proxmox_kvm: + community.general.proxmox_kvm: api_user: root@pam api_password: secret api_host: helldorado @@ -439,7 +439,7 @@ EXAMPLES = ''' lock: snapshot - name: Create new VM and set protection to disable the remove VM and remove disk operations - proxmox_kvm: + community.general.proxmox_kvm: api_user: root@pam api_password: secret api_host: helldorado @@ -448,7 +448,7 @@ EXAMPLES = ''' protection: yes - name: Start VM - proxmox_kvm: + community.general.proxmox_kvm: api_user: root@pam api_password: secret api_host: helldorado @@ -457,7 +457,7 @@ EXAMPLES = ''' state: started - name: Stop VM - proxmox_kvm: + community.general.proxmox_kvm: api_user: root@pam api_password: secret api_host: helldorado @@ -466,7 +466,7 @@ EXAMPLES = ''' state: stopped - name: Stop VM with force - proxmox_kvm: + community.general.proxmox_kvm: api_user: root@pam api_password: secret api_host: helldorado @@ -476,7 +476,7 @@ EXAMPLES = ''' force: yes - name: Restart VM - proxmox_kvm: + community.general.proxmox_kvm: api_user: root@pam api_password: secret api_host: helldorado @@ -485,7 +485,7 @@ EXAMPLES = ''' state: restarted - name: Remove VM - proxmox_kvm: + community.general.proxmox_kvm: api_user: root@pam api_password: secret api_host: helldorado @@ -494,7 +494,7 @@ EXAMPLES = ''' state: absent - name: Get VM current state - proxmox_kvm: + community.general.proxmox_kvm: api_user: root@pam api_password: secret api_host: helldorado @@ -503,7 +503,7 @@ EXAMPLES = ''' state: current - name: Update VM configuration - proxmox_kvm: + community.general.proxmox_kvm: api_user: root@pam api_password: secret api_host: helldorado @@ -514,7 +514,7 @@ EXAMPLES = ''' update: yes - name: Delete QEMU parameters - proxmox_kvm: + community.general.proxmox_kvm: api_user: root@pam api_password: secret api_host: helldorado @@ -523,7 +523,7 @@ EXAMPLES = ''' delete: 'args,template,cpulimit' - name: Revert a pending change - proxmox_kvm: + community.general.proxmox_kvm: api_user: root@pam api_password: secret api_host: helldorado diff --git a/plugins/modules/cloud/misc/proxmox_template.py b/plugins/modules/cloud/misc/proxmox_template.py index f47222765c..7ffda09b64 100644 --- a/plugins/modules/cloud/misc/proxmox_template.py +++ b/plugins/modules/cloud/misc/proxmox_template.py @@ -77,7 +77,7 @@ author: Sergei Antipov (@UnderGreen) EXAMPLES = ''' - name: Upload new openvz template with minimal options - proxmox_template: + community.general.proxmox_template: node: uk-mc02 api_user: root@pam api_password: 1q2w3e @@ -87,14 +87,14 @@ EXAMPLES = ''' - name: > Upload new openvz template with minimal options use environment PROXMOX_PASSWORD variable(you should export it before) - proxmox_template: + community.general.proxmox_template: node: uk-mc02 api_user: root@pam api_host: node1 src: ~/ubuntu-14.04-x86_64.tar.gz - name: Upload new openvz template with all options and force overwrite - proxmox_template: + community.general.proxmox_template: node: uk-mc02 api_user: root@pam api_password: 1q2w3e @@ -105,7 +105,7 @@ EXAMPLES = ''' force: yes - name: Delete template with minimal options - proxmox_template: + community.general.proxmox_template: node: uk-mc02 api_user: root@pam api_password: 1q2w3e diff --git a/plugins/modules/cloud/misc/rhevm.py b/plugins/modules/cloud/misc/rhevm.py index 7bbc1dffac..5afed5baf7 100644 --- a/plugins/modules/cloud/misc/rhevm.py +++ b/plugins/modules/cloud/misc/rhevm.py @@ -207,7 +207,7 @@ vm: EXAMPLES = r''' - name: Basic get info from VM - rhevm: + community.general.rhevm: server: rhevm01 user: '{{ rhev.admin.name }}' password: '{{ rhev.admin.pass }}' @@ -215,7 +215,7 @@ EXAMPLES = r''' state: info - name: Basic create example from image - rhevm: + community.general.rhevm: server: rhevm01 user: '{{ rhev.admin.name }}' password: '{{ rhev.admin.pass }}' @@ -225,7 +225,7 @@ EXAMPLES = r''' state: present - name: Power management - rhevm: + community.general.rhevm: server: rhevm01 user: '{{ rhev.admin.name }}' password: '{{ rhev.admin.pass }}' @@ -235,7 +235,7 @@ EXAMPLES = r''' state: down - name: Multi disk, multi nic create example - rhevm: + community.general.rhevm: server: rhevm01 user: '{{ rhev.admin.name }}' password: '{{ rhev.admin.pass }}' @@ -275,7 +275,7 @@ EXAMPLES = r''' state: present - name: Add a CD to the disk cd_drive - rhevm: + community.general.rhevm: user: '{{ rhev.admin.name }}' password: '{{ rhev.admin.pass }}' name: server007 @@ -283,7 +283,7 @@ EXAMPLES = r''' state: cd - name: New host deployment + host network configuration - rhevm: + community.general.rhevm: password: '{{ rhevm.admin.pass }}' name: ovirt_node007 type: host diff --git a/plugins/modules/cloud/misc/serverless.py b/plugins/modules/cloud/misc/serverless.py index 6393560177..07257561de 100644 --- a/plugins/modules/cloud/misc/serverless.py +++ b/plugins/modules/cloud/misc/serverless.py @@ -74,19 +74,19 @@ author: EXAMPLES = r''' - name: Basic deploy of a service - serverless: + community.general.serverless: service_path: '{{ project_dir }}' state: present - name: Deploy specific functions - serverless: + community.general.serverless: service_path: '{{ project_dir }}' functions: - my_func_one - my_func_two - name: Deploy a project, then pull its resource list back into Ansible - serverless: + community.general.serverless: stage: dev region: us-east-1 service_path: '{{ project_dir }}' @@ -101,7 +101,7 @@ EXAMPLES = r''' stack_resources: true - name: Deploy a project using a locally installed serverless binary - serverless: + community.general.serverless: stage: dev region: us-east-1 service_path: '{{ project_dir }}' diff --git a/plugins/modules/cloud/misc/terraform.py b/plugins/modules/cloud/misc/terraform.py index fde538ad24..eb41a40c90 100644 --- a/plugins/modules/cloud/misc/terraform.py +++ b/plugins/modules/cloud/misc/terraform.py @@ -101,12 +101,12 @@ author: "Ryan Scott Brown (@ryansb)" EXAMPLES = """ - name: Basic deploy of a service - terraform: + community.general.terraform: project_path: '{{ project_dir }}' state: present - name: Define the backend configuration at init - terraform: + community.general.terraform: project_path: 'project/' state: "{{ state }}" force_init: true @@ -116,7 +116,7 @@ EXAMPLES = """ key: "random.tfstate" - name: Define the backend configuration with one or more files at init - terraform: + community.general.terraform: project_path: 'project/' state: "{{ state }}" force_init: true diff --git a/plugins/modules/cloud/misc/xenserver_facts.py b/plugins/modules/cloud/misc/xenserver_facts.py index f4c77776d4..6687eef937 100644 --- a/plugins/modules/cloud/misc/xenserver_facts.py +++ b/plugins/modules/cloud/misc/xenserver_facts.py @@ -22,7 +22,7 @@ options: {} EXAMPLES = ''' - name: Gather facts from xenserver - xenserver_facts: + community.general.xenserver_facts: - name: Print running VMs debug: diff --git a/plugins/modules/cloud/oneandone/oneandone_firewall_policy.py b/plugins/modules/cloud/oneandone/oneandone_firewall_policy.py index 98c9f24a67..b37c2c7c5b 100644 --- a/plugins/modules/cloud/oneandone/oneandone_firewall_policy.py +++ b/plugins/modules/cloud/oneandone/oneandone_firewall_policy.py @@ -102,7 +102,7 @@ author: EXAMPLES = ''' - name: Create a firewall policy - oneandone_firewall_policy: + community.general.oneandone_firewall_policy: auth_token: oneandone_private_api_key name: ansible-firewall-policy description: Testing creation of firewall policies with ansible @@ -116,13 +116,13 @@ EXAMPLES = ''' wait_timeout: 500 - name: Destroy a firewall policy - oneandone_firewall_policy: + community.general.oneandone_firewall_policy: auth_token: oneandone_private_api_key state: absent name: ansible-firewall-policy - name: Update a firewall policy - oneandone_firewall_policy: + community.general.oneandone_firewall_policy: auth_token: oneandone_private_api_key state: update firewall_policy: ansible-firewall-policy @@ -130,7 +130,7 @@ EXAMPLES = ''' description: Testing creation of firewall policies with ansible - updated - name: Add server to a firewall policy - oneandone_firewall_policy: + community.general.oneandone_firewall_policy: auth_token: oneandone_private_api_key firewall_policy: ansible-firewall-policy-updated add_server_ips: @@ -141,7 +141,7 @@ EXAMPLES = ''' state: update - name: Remove server from a firewall policy - oneandone_firewall_policy: + community.general.oneandone_firewall_policy: auth_token: oneandone_private_api_key firewall_policy: ansible-firewall-policy-updated remove_server_ips: @@ -151,7 +151,7 @@ EXAMPLES = ''' state: update - name: Add rules to a firewall policy - oneandone_firewall_policy: + community.general.oneandone_firewall_policy: auth_token: oneandone_private_api_key firewall_policy: ansible-firewall-policy-updated description: Adding rules to an existing firewall policy @@ -171,7 +171,7 @@ EXAMPLES = ''' state: update - name: Remove rules from a firewall policy - oneandone_firewall_policy: + community.general.oneandone_firewall_policy: auth_token: oneandone_private_api_key firewall_policy: ansible-firewall-policy-updated remove_rules: diff --git a/plugins/modules/cloud/oneandone/oneandone_load_balancer.py b/plugins/modules/cloud/oneandone/oneandone_load_balancer.py index 09506c3136..c345c16dc2 100644 --- a/plugins/modules/cloud/oneandone/oneandone_load_balancer.py +++ b/plugins/modules/cloud/oneandone/oneandone_load_balancer.py @@ -139,7 +139,7 @@ author: EXAMPLES = ''' - name: Create a load balancer - oneandone_load_balancer: + community.general.oneandone_load_balancer: auth_token: oneandone_private_api_key name: ansible load balancer description: Testing creation of load balancer with ansible @@ -159,7 +159,7 @@ EXAMPLES = ''' wait_timeout: 500 - name: Destroy a load balancer - oneandone_load_balancer: + community.general.oneandone_load_balancer: auth_token: oneandone_private_api_key name: ansible load balancer wait: true @@ -167,7 +167,7 @@ EXAMPLES = ''' state: absent - name: Update a load balancer - oneandone_load_balancer: + community.general.oneandone_load_balancer: auth_token: oneandone_private_api_key load_balancer: ansible load balancer name: ansible load balancer updated @@ -177,7 +177,7 @@ EXAMPLES = ''' state: update - name: Add server to a load balancer - oneandone_load_balancer: + community.general.oneandone_load_balancer: auth_token: oneandone_private_api_key load_balancer: ansible load balancer updated description: Adding server to a load balancer with ansible @@ -188,7 +188,7 @@ EXAMPLES = ''' state: update - name: Remove server from a load balancer - oneandone_load_balancer: + community.general.oneandone_load_balancer: auth_token: oneandone_private_api_key load_balancer: ansible load balancer updated description: Removing server from a load balancer with ansible @@ -199,7 +199,7 @@ EXAMPLES = ''' state: update - name: Add rules to a load balancer - oneandone_load_balancer: + community.general.oneandone_load_balancer: auth_token: oneandone_private_api_key load_balancer: ansible load balancer updated description: Adding rules to a load balancer with ansible @@ -219,7 +219,7 @@ EXAMPLES = ''' state: update - name: Remove rules from a load balancer - oneandone_load_balancer: + community.general.oneandone_load_balancer: auth_token: oneandone_private_api_key load_balancer: ansible load balancer updated description: Adding rules to a load balancer with ansible diff --git a/plugins/modules/cloud/oneandone/oneandone_private_network.py b/plugins/modules/cloud/oneandone/oneandone_private_network.py index 071c59e119..d8a989e4cc 100644 --- a/plugins/modules/cloud/oneandone/oneandone_private_network.py +++ b/plugins/modules/cloud/oneandone/oneandone_private_network.py @@ -92,7 +92,7 @@ author: EXAMPLES = ''' - name: Create a private network - oneandone_private_network: + community.general.oneandone_private_network: auth_token: oneandone_private_api_key name: backup_network description: Testing creation of a private network with ansible @@ -101,13 +101,13 @@ EXAMPLES = ''' datacenter: US - name: Destroy a private network - oneandone_private_network: + community.general.oneandone_private_network: auth_token: oneandone_private_api_key state: absent name: backup_network - name: Modify the private network - oneandone_private_network: + community.general.oneandone_private_network: auth_token: oneandone_private_api_key state: update private_network: backup_network @@ -115,7 +115,7 @@ EXAMPLES = ''' subnet_mask: 255.255.255.0 - name: Add members to the private network - oneandone_private_network: + community.general.oneandone_private_network: auth_token: oneandone_private_api_key state: update private_network: backup_network @@ -123,7 +123,7 @@ EXAMPLES = ''' - server identifier (id or name) - name: Remove members from the private network - oneandone_private_network: + community.general.oneandone_private_network: auth_token: oneandone_private_api_key state: update private_network: backup_network diff --git a/plugins/modules/cloud/oneandone/oneandone_public_ip.py b/plugins/modules/cloud/oneandone/oneandone_public_ip.py index d8cbfc451c..45bd3fae5f 100644 --- a/plugins/modules/cloud/oneandone/oneandone_public_ip.py +++ b/plugins/modules/cloud/oneandone/oneandone_public_ip.py @@ -84,21 +84,21 @@ author: EXAMPLES = ''' - name: Create a public IP - oneandone_public_ip: + community.general.oneandone_public_ip: auth_token: oneandone_private_api_key reverse_dns: example.com datacenter: US type: IPV4 - name: Update a public IP - oneandone_public_ip: + community.general.oneandone_public_ip: auth_token: oneandone_private_api_key public_ip_id: public ip id reverse_dns: secondexample.com state: update - name: Delete a public IP - oneandone_public_ip: + community.general.oneandone_public_ip: auth_token: oneandone_private_api_key public_ip_id: public ip id state: absent diff --git a/plugins/modules/cloud/oneandone/oneandone_server.py b/plugins/modules/cloud/oneandone/oneandone_server.py index e44487e898..58b7e7ce3a 100644 --- a/plugins/modules/cloud/oneandone/oneandone_server.py +++ b/plugins/modules/cloud/oneandone/oneandone_server.py @@ -140,7 +140,7 @@ author: EXAMPLES = ''' - name: Create three servers and enumerate their names - oneandone_server: + community.general.oneandone_server: auth_token: oneandone_private_api_key hostname: node%02d fixed_instance_size: XL @@ -150,7 +150,7 @@ EXAMPLES = ''' count: 3 - name: Create three servers, passing in an ssh_key - oneandone_server: + community.general.oneandone_server: auth_token: oneandone_private_api_key hostname: node%02d vcore: 2 @@ -168,19 +168,19 @@ EXAMPLES = ''' ssh_key: SSH_PUBLIC_KEY - name: Removing server - oneandone_server: + community.general.oneandone_server: auth_token: oneandone_private_api_key state: absent server: 'node01' - name: Starting server - oneandone_server: + community.general.oneandone_server: auth_token: oneandone_private_api_key state: running server: 'node01' - name: Stopping server - oneandone_server: + community.general.oneandone_server: auth_token: oneandone_private_api_key state: stopped server: 'node01' diff --git a/plugins/modules/cloud/online/online_server_facts.py b/plugins/modules/cloud/online/online_server_facts.py index a54b972076..f1e74aa6f0 100644 --- a/plugins/modules/cloud/online/online_server_facts.py +++ b/plugins/modules/cloud/online/online_server_facts.py @@ -27,7 +27,7 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Gather Online server facts - online_server_facts: + community.general.online_server_facts: api_token: '0d1627e8-bbf0-44c5-a46f-5c4d3aef033f' ''' diff --git a/plugins/modules/cloud/online/online_server_info.py b/plugins/modules/cloud/online/online_server_info.py index 53908c1aa8..0bd8fffbce 100644 --- a/plugins/modules/cloud/online/online_server_info.py +++ b/plugins/modules/cloud/online/online_server_info.py @@ -23,7 +23,7 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Gather Online server information - online_server_info: + community.general.online_server_info: api_token: '0d1627e8-bbf0-44c5-a46f-5c4d3aef033f' register: result diff --git a/plugins/modules/cloud/online/online_user_facts.py b/plugins/modules/cloud/online/online_user_facts.py index 5892450190..7b78924e92 100644 --- a/plugins/modules/cloud/online/online_user_facts.py +++ b/plugins/modules/cloud/online/online_user_facts.py @@ -25,7 +25,7 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Gather Online user facts - online_user_facts: + community.general.online_user_facts: ''' RETURN = r''' diff --git a/plugins/modules/cloud/online/online_user_info.py b/plugins/modules/cloud/online/online_user_info.py index bcf1e2f1c7..9455287542 100644 --- a/plugins/modules/cloud/online/online_user_info.py +++ b/plugins/modules/cloud/online/online_user_info.py @@ -21,7 +21,7 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Gather Online user info - online_user_info: + community.general.online_user_info: register: result - debug: diff --git a/plugins/modules/cloud/opennebula/one_host.py b/plugins/modules/cloud/opennebula/one_host.py index d67d7ffd56..8d7a4c49b9 100644 --- a/plugins/modules/cloud/opennebula/one_host.py +++ b/plugins/modules/cloud/opennebula/one_host.py @@ -75,13 +75,13 @@ author: EXAMPLES = ''' - name: Create a new host in OpenNebula - one_host: + community.general.one_host: name: host1 cluster_id: 1 api_url: http://127.0.0.1:2633/RPC2 - name: Create a host and adjust its template - one_host: + community.general.one_host: name: host2 cluster_name: default template: diff --git a/plugins/modules/cloud/opennebula/one_image.py b/plugins/modules/cloud/opennebula/one_image.py index db8d17ebef..cb96476ba6 100644 --- a/plugins/modules/cloud/opennebula/one_image.py +++ b/plugins/modules/cloud/opennebula/one_image.py @@ -75,7 +75,7 @@ author: EXAMPLES = ''' - name: Fetch the IMAGE by id - one_image: + community.general.one_image: id: 45 register: result @@ -84,30 +84,30 @@ EXAMPLES = ''' msg: result - name: Rename existing IMAGE - one_image: + community.general.one_image: id: 34 state: renamed new_name: bar-image - name: Disable the IMAGE by id - one_image: + community.general.one_image: id: 37 enabled: no - name: Enable the IMAGE by name - one_image: + community.general.one_image: name: bar-image enabled: yes - name: Clone the IMAGE by name - one_image: + community.general.one_image: name: bar-image state: cloned new_name: bar-image-clone register: result - name: Delete the IMAGE by id - one_image: + community.general.one_image: id: '{{ result.id }}' state: absent ''' diff --git a/plugins/modules/cloud/opennebula/one_image_info.py b/plugins/modules/cloud/opennebula/one_image_info.py index 91a695cd5d..3243f49141 100644 --- a/plugins/modules/cloud/opennebula/one_image_info.py +++ b/plugins/modules/cloud/opennebula/one_image_info.py @@ -66,7 +66,7 @@ author: EXAMPLES = ''' - name: Gather facts about all images - one_image_info: + community.general.one_image_info: register: result - name: Print all images facts @@ -74,22 +74,22 @@ EXAMPLES = ''' msg: result - name: Gather facts about an image using ID - one_image_info: + community.general.one_image_info: ids: - 123 - name: Gather facts about an image using the name - one_image_info: + community.general.one_image_info: name: 'foo-image' register: foo_image - name: Gather facts about all IMAGEs whose name matches regex 'app-image-.*' - one_image_info: + community.general.one_image_info: name: '~app-image-.*' register: app_images - name: Gather facts about all IMAGEs whose name matches regex 'foo-image-.*' ignoring cases - one_image_info: + community.general.one_image_info: name: '~*foo-image-.*' register: foo_images ''' diff --git a/plugins/modules/cloud/opennebula/one_service.py b/plugins/modules/cloud/opennebula/one_service.py index 50ff375355..4f0f2b4c99 100644 --- a/plugins/modules/cloud/opennebula/one_service.py +++ b/plugins/modules/cloud/opennebula/one_service.py @@ -105,7 +105,7 @@ author: EXAMPLES = ''' - name: Instantiate a new service - one_service: + community.general.one_service: template_id: 90 register: result @@ -114,60 +114,60 @@ EXAMPLES = ''' msg: result - name: Instantiate a new service with specified service_name, service group and mode - one_service: + community.general.one_service: template_name: 'app1_template' service_name: 'app1' group_id: 1 mode: '660' - name: Instantiate a new service with template_id and pass custom_attrs dict - one_service: + community.general.one_service: template_id: 90 custom_attrs: public_network_id: 21 private_network_id: 26 - name: Instantiate a new service 'foo' if the service doesn't already exist, otherwise do nothing - one_service: + community.general.one_service: template_id: 53 service_name: 'foo' unique: yes - name: Delete a service by ID - one_service: + community.general.one_service: service_id: 153 state: absent - name: Get service info - one_service: + community.general.one_service: service_id: 153 register: service_info - name: Change service owner, group and mode - one_service: + community.general.one_service: service_name: 'app2' owner_id: 34 group_id: 113 mode: '600' - name: Instantiate service and wait for it to become RUNNING - one_service: + community.general.one_service: template_id: 43 service_name: 'foo1' - name: Wait service to become RUNNING - one_service: + community.general.one_service: service_id: 112 wait: yes - name: Change role cardinality - one_service: + community.general.one_service: service_id: 153 role: bar cardinality: 5 - name: Change role cardinality and wait for it to be applied - one_service: + community.general.one_service: service_id: 112 role: foo cardinality: 7 diff --git a/plugins/modules/cloud/opennebula/one_vm.py b/plugins/modules/cloud/opennebula/one_vm.py index ccf00cb974..5facbac60a 100644 --- a/plugins/modules/cloud/opennebula/one_vm.py +++ b/plugins/modules/cloud/opennebula/one_vm.py @@ -189,7 +189,7 @@ author: EXAMPLES = ''' - name: Create a new instance - one_vm: + community.general.one_vm: template_id: 90 register: result @@ -198,34 +198,34 @@ EXAMPLES = ''' msg: result - name: Deploy a new VM on hold - one_vm: + community.general.one_vm: template_name: 'app1_template' vm_start_on_hold: 'True' - name: Deploy a new VM and set its name to 'foo' - one_vm: + community.general.one_vm: template_name: 'app1_template' attributes: name: foo - name: Deploy a new VM and set its group_id and mode - one_vm: + community.general.one_vm: template_id: 90 group_id: 16 mode: 660 - name: Deploy a new VM as persistent - one_vm: + community.general.one_vm: template_id: 90 persistent: yes - name: Change VM's permissions to 640 - one_vm: + community.general.one_vm: instance_ids: 5 mode: 640 - name: Deploy 2 new instances and set memory, vcpu, disk_size and 3 networks - one_vm: + community.general.one_vm: template_id: 15 disk_size: 35.2 GB memory: 4 GB @@ -240,7 +240,7 @@ EXAMPLES = ''' SECURITY_GROUPS: "10" - name: Deploy a new instance which uses a Template with two Disks - one_vm: + community.general.one_vm: template_id: 42 disk_size: - 35.2 GB @@ -252,14 +252,14 @@ EXAMPLES = ''' - NETWORK_ID: 27 - name: "Deploy an new instance with attribute 'bar: bar1' and set its name to 'foo'" - one_vm: + community.general.one_vm: template_id: 53 attributes: name: foo bar: bar1 - name: "Enforce that 2 instances with attributes 'foo1: app1' and 'foo2: app2' are deployed" - one_vm: + community.general.one_vm: template_id: 53 attributes: foo1: app1 @@ -270,7 +270,7 @@ EXAMPLES = ''' foo2: app2 - name: Enforce that 4 instances with an attribute 'bar' are deployed - one_vm: + community.general.one_vm: template_id: 53 attributes: name: app @@ -282,7 +282,7 @@ EXAMPLES = ''' # Deploy 2 new instances with attribute 'foo: bar' and labels 'app1' and 'app2' and names in format 'fooapp-##' # Names will be: fooapp-00 and fooapp-01 - name: Deploy 2 new instances - one_vm: + community.general.one_vm: template_id: 53 attributes: name: fooapp-## @@ -295,7 +295,7 @@ EXAMPLES = ''' # Deploy 2 new instances with attribute 'app: app1' and names in format 'fooapp-###' # Names will be: fooapp-002 and fooapp-003 - name: Deploy 2 new instances - one_vm: + community.general.one_vm: template_id: 53 attributes: name: fooapp-### @@ -305,7 +305,7 @@ EXAMPLES = ''' # Reboot all instances with name in format 'fooapp-#' # Instances 'fooapp-00', 'fooapp-01', 'fooapp-002' and 'fooapp-003' will be rebooted - name: Reboot all instances with names in a certain format - one_vm: + community.general.one_vm: attributes: name: fooapp-# state: rebooted @@ -313,14 +313,14 @@ EXAMPLES = ''' # Enforce that only 1 instance with name in format 'fooapp-#' is deployed # The task will delete oldest instances, so only the 'fooapp-003' will remain - name: Enforce that only 1 instance with name in a certain format is deployed - one_vm: + community.general.one_vm: template_id: 53 exact_count: 1 count_attributes: name: fooapp-# - name: Deploy an new instance with a network - one_vm: + community.general.one_vm: template_id: 53 networks: - NETWORK_ID: 27 @@ -331,28 +331,28 @@ EXAMPLES = ''' delegate_to: '{{ vm.instances[0].networks[0].ip }}' - name: Terminate VMs by ids - one_vm: + community.general.one_vm: instance_ids: - 153 - 160 state: absent - name: Reboot all VMs that have labels 'foo' and 'app1' - one_vm: + community.general.one_vm: labels: - foo - app1 state: rebooted - name: "Fetch all VMs that have name 'foo' and attribute 'app: bar'" - one_vm: + community.general.one_vm: attributes: name: foo app: bar register: results - name: Deploy 2 new instances with labels 'foo1' and 'foo2' - one_vm: + community.general.one_vm: template_name: app_template labels: - foo1 @@ -360,7 +360,7 @@ EXAMPLES = ''' count: 2 - name: Enforce that only 1 instance with label 'foo1' will be running - one_vm: + community.general.one_vm: template_name: app_template labels: - foo1 @@ -369,21 +369,21 @@ EXAMPLES = ''' - foo1 - name: Terminate all instances that have attribute foo - one_vm: + community.general.one_vm: template_id: 53 exact_count: 0 count_attributes: foo: - name: "Power-off the VM and save VM's disk with id=0 to the image with name 'foo-image'" - one_vm: + community.general.one_vm: instance_ids: 351 state: poweredoff disk_saveas: name: foo-image - name: "Save VM's disk with id=1 to the image with name 'bar-image'" - one_vm: + community.general.one_vm: instance_ids: 351 disk_saveas: name: bar-image diff --git a/plugins/modules/cloud/oracle/oci_vcn.py b/plugins/modules/cloud/oracle/oci_vcn.py index b0e51e7dae..223c9bd72e 100644 --- a/plugins/modules/cloud/oracle/oci_vcn.py +++ b/plugins/modules/cloud/oracle/oci_vcn.py @@ -54,19 +54,19 @@ extends_documentation_fragment: EXAMPLES = """ - name: Create a VCN - oci_vcn: + community.general.oci_vcn: cidr_block: '10.0.0.0/16' compartment_id: 'ocid1.compartment.oc1..xxxxxEXAMPLExxxxx' display_name: my_vcn dns_label: ansiblevcn - name: Updates the specified VCN's display name - oci_vcn: + community.general.oci_vcn: vcn_id: ocid1.vcn.oc1.phx.xxxxxEXAMPLExxxxx display_name: ansible_vcn - name: Delete the specified VCN - oci_vcn: + community.general.oci_vcn: vcn_id: ocid1.vcn.oc1.phx.xxxxxEXAMPLExxxxx state: absent """ diff --git a/plugins/modules/cloud/ovh/ovh_ip_failover.py b/plugins/modules/cloud/ovh/ovh_ip_failover.py index f2cfe41bf6..3eb4911e2e 100644 --- a/plugins/modules/cloud/ovh/ovh_ip_failover.py +++ b/plugins/modules/cloud/ovh/ovh_ip_failover.py @@ -75,14 +75,14 @@ options: EXAMPLES = ''' # Route an IP address 1.1.1.1 to the service ns666.ovh.net -- ovh_ip_failover: +- community.general.ovh_ip_failover: name: 1.1.1.1 service: ns666.ovh.net endpoint: ovh-eu application_key: yourkey application_secret: yoursecret consumer_key: yourconsumerkey -- ovh_ip_failover: +- community.general.ovh_ip_failover: name: 1.1.1.1 service: ns666.ovh.net endpoint: ovh-eu @@ -91,7 +91,7 @@ EXAMPLES = ''' application_secret: yoursecret consumer_key: yourconsumerkey register: moved -- ovh_ip_failover: +- community.general.ovh_ip_failover: name: 1.1.1.1 service: ns666.ovh.net endpoint: ovh-eu diff --git a/plugins/modules/cloud/ovh/ovh_monthly_billing.py b/plugins/modules/cloud/ovh/ovh_monthly_billing.py index 0e5c6c0945..75c70a79ec 100644 --- a/plugins/modules/cloud/ovh/ovh_monthly_billing.py +++ b/plugins/modules/cloud/ovh/ovh_monthly_billing.py @@ -48,7 +48,7 @@ options: EXAMPLES = ''' - name: Basic usage, using auth from /etc/ovh.conf - ovh_monthly_billing: + community.general.ovh_monthly_billing: project_id: 0c727a20aa144485b70c44dee9123b46 instance_id: 8fa89ad2-8f08-4220-9fa4-9695ea23e948 @@ -61,7 +61,7 @@ EXAMPLES = ''' register: openstack_servers - name: Use IDs - ovh_monthly_billing: + community.general.ovh_monthly_billing: project_id: "{{ openstack_servers.0.tenant_id }}" instance_id: "{{ openstack_servers.0.id }}" application_key: yourkey diff --git a/plugins/modules/cloud/packet/packet_device.py b/plugins/modules/cloud/packet/packet_device.py index b91778f71b..0a596dfe7b 100644 --- a/plugins/modules/cloud/packet/packet_device.py +++ b/plugins/modules/cloud/packet/packet_device.py @@ -142,7 +142,7 @@ EXAMPLES = ''' - name: Create 1 device hosts: localhost tasks: - - packet_device: + - community.general.packet_device: project_id: 89b497ee-5afc-420a-8fb5-56984898f4df hostnames: myserver tags: ci-xyz @@ -157,7 +157,7 @@ EXAMPLES = ''' - name: Create device and wait up to 10 minutes for active state hosts: localhost tasks: - - packet_device: + - community.general.packet_device: project_id: 89b497ee-5afc-420a-8fb5-56984898f4df hostnames: myserver operating_system: ubuntu_16_04 @@ -169,7 +169,7 @@ EXAMPLES = ''' - name: Create 3 ubuntu devices called server-01, server-02 and server-03 hosts: localhost tasks: - - packet_device: + - community.general.packet_device: project_id: 89b497ee-5afc-420a-8fb5-56984898f4df hostnames: server-%02d count: 3 @@ -181,7 +181,7 @@ EXAMPLES = ''' hosts: localhost tasks: - name: Create 3 devices and register their facts - packet_device: + community.general.packet_device: hostnames: [coreos-one, coreos-two, coreos-three] operating_system: coreos_stable plan: baremetal_0 @@ -222,7 +222,7 @@ EXAMPLES = ''' - name: Remove 3 devices by uuid hosts: localhost tasks: - - packet_device: + - community.general.packet_device: project_id: 89b497ee-5afc-420a-8fb5-56984898f4df state: absent device_ids: diff --git a/plugins/modules/cloud/packet/packet_ip_subnet.py b/plugins/modules/cloud/packet/packet_ip_subnet.py index 584aa193ad..b29aa060cb 100644 --- a/plugins/modules/cloud/packet/packet_ip_subnet.py +++ b/plugins/modules/cloud/packet/packet_ip_subnet.py @@ -97,7 +97,7 @@ EXAMPLES = ''' # Pick an IPv4 address from a block allocated to your project. - - packet_ip_subnet: + - community.general.packet_ip_subnet: project_id: 89b497ee-5afc-420a-8fb5-56984898f4df hostname: myserver cidr: "147.75.201.78/32" @@ -107,7 +107,7 @@ EXAMPLES = ''' - name: Unassign IP address from any device in your project hosts: localhost tasks: - - packet_ip_subnet: + - community.general.packet_ip_subnet: project_id: 89b497ee-5afc-420a-8fb5-56984898f4df cidr: "147.75.201.78/32" state: absent diff --git a/plugins/modules/cloud/packet/packet_project.py b/plugins/modules/cloud/packet/packet_project.py index 1ea702ae16..38d7ca7640 100644 --- a/plugins/modules/cloud/packet/packet_project.py +++ b/plugins/modules/cloud/packet/packet_project.py @@ -78,27 +78,27 @@ EXAMPLES = ''' - name: Create new project hosts: localhost tasks: - packet_project: + community.general.packet_project: name: "new project" - name: Create new project within non-default organization hosts: localhost tasks: - packet_project: + community.general.packet_project: name: "my org project" org_id: a4cc87f9-e00f-48c2-9460-74aa60beb6b0 - name: Remove project by id hosts: localhost tasks: - packet_project: + community.general.packet_project: state: absent id: eef49903-7a09-4ca1-af67-4087c29ab5b6 - name: Create new project with non-default billing method hosts: localhost tasks: - packet_project: + community.general.packet_project: name: "newer project" payment_method: "the other visa" ''' diff --git a/plugins/modules/cloud/packet/packet_sshkey.py b/plugins/modules/cloud/packet/packet_sshkey.py index 699a069e39..73233d8933 100644 --- a/plugins/modules/cloud/packet/packet_sshkey.py +++ b/plugins/modules/cloud/packet/packet_sshkey.py @@ -52,20 +52,20 @@ EXAMPLES = ''' - name: Create sshkey from string hosts: localhost tasks: - packet_sshkey: + community.general.packet_sshkey: key: "{{ lookup('file', 'my_packet_sshkey.pub') }}" - name: Create sshkey from file hosts: localhost tasks: - packet_sshkey: + community.general.packet_sshkey: label: key from file key_file: ~/ff.pub - name: Remove sshkey by id hosts: localhost tasks: - packet_sshkey: + community.general.packet_sshkey: state: absent id: eef49903-7a09-4ca1-af67-4087c29ab5b6 ''' diff --git a/plugins/modules/cloud/packet/packet_volume.py b/plugins/modules/cloud/packet/packet_volume.py index 3abca4b845..2966139a43 100644 --- a/plugins/modules/cloud/packet/packet_volume.py +++ b/plugins/modules/cloud/packet/packet_volume.py @@ -128,7 +128,7 @@ EXAMPLES = ''' tasks: - name: Create volume - packet_volume: + community.general.packet_volume: description: "{{ volname }}" project_id: "{{ project_id }}" facility: 'ewr1' @@ -141,7 +141,7 @@ EXAMPLES = ''' register: result_create - name: Delete volume - packet_volume: + community.general.packet_volume: id: "{{ result_create.id }}" project_id: "{{ project_id }}" state: absent diff --git a/plugins/modules/cloud/packet/packet_volume_attachment.py b/plugins/modules/cloud/packet/packet_volume_attachment.py index 6fc79979b4..80fd49d34d 100644 --- a/plugins/modules/cloud/packet/packet_volume_attachment.py +++ b/plugins/modules/cloud/packet/packet_volume_attachment.py @@ -100,13 +100,13 @@ EXAMPLES = ''' state: present - name: Attach testvol to testdev - packet_volume_attachment: + community.general.packet_volume_attachment: project_id: "{{ project_id }}" volume: "{{ volname }}" device: "{{ devname }}" - name: Detach testvol from testdev - packet_volume_attachment: + community.general.packet_volume_attachment: project_id: "{{ project_id }}" volume: "{{ volname }}" device: "{{ devname }}" diff --git a/plugins/modules/cloud/profitbricks/profitbricks.py b/plugins/modules/cloud/profitbricks/profitbricks.py index 090fe233a7..17b0aeb0f6 100644 --- a/plugins/modules/cloud/profitbricks/profitbricks.py +++ b/plugins/modules/cloud/profitbricks/profitbricks.py @@ -117,7 +117,7 @@ EXAMPLES = ''' # Provisioning example - name: Create three servers and enumerate their names - profitbricks: + community.general.profitbricks: datacenter: Tardis One name: web%02d.stackpointcloud.com cores: 4 @@ -130,7 +130,7 @@ EXAMPLES = ''' assign_public_ip: true - name: Remove virtual machines - profitbricks: + community.general.profitbricks: datacenter: Tardis One instance_ids: - 'web001.stackpointcloud.com' @@ -140,7 +140,7 @@ EXAMPLES = ''' state: absent - name: Start virtual machines - profitbricks: + community.general.profitbricks: datacenter: Tardis One instance_ids: - 'web001.stackpointcloud.com' @@ -150,7 +150,7 @@ EXAMPLES = ''' state: running - name: Stop virtual machines - profitbricks: + community.general.profitbricks: datacenter: Tardis One instance_ids: - 'web001.stackpointcloud.com' @@ -326,7 +326,7 @@ def create_virtual_machine(module, profitbricks): Create new virtual machine module : AnsibleModule object - profitbricks: authenticated profitbricks object + community.general.profitbricks: authenticated profitbricks object Returns: True if a new virtual machine was created, false otherwise @@ -413,7 +413,7 @@ def remove_virtual_machine(module, profitbricks): This will remove the virtual machine along with the bootVolume. module : AnsibleModule object - profitbricks: authenticated profitbricks object. + community.general.profitbricks: authenticated profitbricks object. Not yet supported: handle deletion of attached data disks. @@ -472,7 +472,7 @@ def startstop_machine(module, profitbricks, state): Starts or Stops a virtual machine. module : AnsibleModule object - profitbricks: authenticated profitbricks object. + community.general.profitbricks: authenticated profitbricks object. Returns: True when the servers process the action successfully, false otherwise. diff --git a/plugins/modules/cloud/profitbricks/profitbricks_datacenter.py b/plugins/modules/cloud/profitbricks/profitbricks_datacenter.py index cc8ae6efec..c40cfd95d9 100644 --- a/plugins/modules/cloud/profitbricks/profitbricks_datacenter.py +++ b/plugins/modules/cloud/profitbricks/profitbricks_datacenter.py @@ -59,12 +59,12 @@ author: Matt Baldwin (@baldwinSPC) EXAMPLES = ''' - name: Create a datacenter - profitbricks_datacenter: + community.general.profitbricks_datacenter: datacenter: Tardis One wait_timeout: 500 - name: Destroy a datacenter (remove all servers, volumes, and other objects in the datacenter) - profitbricks_datacenter: + community.general.profitbricks_datacenter: datacenter: Tardis One wait_timeout: 500 state: absent diff --git a/plugins/modules/cloud/profitbricks/profitbricks_nic.py b/plugins/modules/cloud/profitbricks/profitbricks_nic.py index 205730fa14..02f70b9549 100644 --- a/plugins/modules/cloud/profitbricks/profitbricks_nic.py +++ b/plugins/modules/cloud/profitbricks/profitbricks_nic.py @@ -60,7 +60,7 @@ author: Matt Baldwin (@baldwinSPC) EXAMPLES = ''' - name: Create a NIC - profitbricks_nic: + community.general.profitbricks_nic: datacenter: Tardis One server: node002 lan: 2 @@ -68,7 +68,7 @@ EXAMPLES = ''' state: present - name: Remove a NIC - profitbricks_nic: + community.general.profitbricks_nic: datacenter: Tardis One server: node002 name: 7341c2454f diff --git a/plugins/modules/cloud/profitbricks/profitbricks_volume.py b/plugins/modules/cloud/profitbricks/profitbricks_volume.py index fb5bb4df99..5db0941aba 100644 --- a/plugins/modules/cloud/profitbricks/profitbricks_volume.py +++ b/plugins/modules/cloud/profitbricks/profitbricks_volume.py @@ -101,7 +101,7 @@ author: Matt Baldwin (@baldwinSPC) EXAMPLES = ''' - name: Create multiple volumes - profitbricks_volume: + community.general.profitbricks_volume: datacenter: Tardis One name: vol%02d count: 5 @@ -110,7 +110,7 @@ EXAMPLES = ''' state: present - name: Remove Volumes - profitbricks_volume: + community.general.profitbricks_volume: datacenter: Tardis One instance_ids: - 'vol01' diff --git a/plugins/modules/cloud/profitbricks/profitbricks_volume_attachments.py b/plugins/modules/cloud/profitbricks/profitbricks_volume_attachments.py index 8c851142ba..fea2d802d9 100644 --- a/plugins/modules/cloud/profitbricks/profitbricks_volume_attachments.py +++ b/plugins/modules/cloud/profitbricks/profitbricks_volume_attachments.py @@ -56,7 +56,7 @@ author: Matt Baldwin (@baldwinSPC) EXAMPLES = ''' - name: Attach a volume - profitbricks_volume_attachments: + community.general.profitbricks_volume_attachments: datacenter: Tardis One server: node002 volume: vol01 @@ -64,7 +64,7 @@ EXAMPLES = ''' state: present - name: Detach a volume - profitbricks_volume_attachments: + community.general.profitbricks_volume_attachments: datacenter: Tardis One server: node002 volume: vol01 diff --git a/plugins/modules/cloud/pubnub/pubnub_blocks.py b/plugins/modules/cloud/pubnub/pubnub_blocks.py index adec4676ce..5f1872262c 100644 --- a/plugins/modules/cloud/pubnub/pubnub_blocks.py +++ b/plugins/modules/cloud/pubnub/pubnub_blocks.py @@ -123,7 +123,7 @@ options: EXAMPLES = ''' # Event handler create example. - name: Create single event handler - pubnub_blocks: + community.general.pubnub_blocks: email: '{{ email }}' password: '{{ password }}' application: '{{ app_name }}' @@ -138,7 +138,7 @@ EXAMPLES = ''' # Change event handler trigger event type. - name: Change event handler 'event' - pubnub_blocks: + community.general.pubnub_blocks: email: '{{ email }}' password: '{{ password }}' application: '{{ app_name }}' @@ -151,7 +151,7 @@ EXAMPLES = ''' # Stop block and event handlers. - name: Stopping block - pubnub_blocks: + community.general.pubnub_blocks: email: '{{ email }}' password: '{{ password }}' application: '{{ app_name }}' @@ -162,7 +162,7 @@ EXAMPLES = ''' # Multiple module calls with cached result passing - name: Create '{{ block_name }}' block register: module_cache - pubnub_blocks: + community.general.pubnub_blocks: email: '{{ email }}' password: '{{ password }}' application: '{{ app_name }}' @@ -171,7 +171,7 @@ EXAMPLES = ''' state: present - name: Add '{{ event_handler_1_name }}' handler to '{{ block_name }}' register: module_cache - pubnub_blocks: + community.general.pubnub_blocks: cache: '{{ module_cache }}' application: '{{ app_name }}' keyset: '{{ keyset_name }}' @@ -185,7 +185,7 @@ EXAMPLES = ''' event: 'js-before-publish' - name: Add '{{ event_handler_2_name }}' handler to '{{ block_name }}' register: module_cache - pubnub_blocks: + community.general.pubnub_blocks: cache: '{{ module_cache }}' application: '{{ app_name }}' keyset: '{{ keyset_name }}' @@ -199,7 +199,7 @@ EXAMPLES = ''' event: 'js-before-publish' - name: Start '{{ block_name }}' block register: module_cache - pubnub_blocks: + community.general.pubnub_blocks: cache: '{{ module_cache }}' application: '{{ app_name }}' keyset: '{{ keyset_name }}' diff --git a/plugins/modules/cloud/rackspace/rax_clb_ssl.py b/plugins/modules/cloud/rackspace/rax_clb_ssl.py index 8eff2f4b59..4b369fccb0 100644 --- a/plugins/modules/cloud/rackspace/rax_clb_ssl.py +++ b/plugins/modules/cloud/rackspace/rax_clb_ssl.py @@ -73,7 +73,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Enable SSL termination on a load balancer - rax_clb_ssl: + community.general.rax_clb_ssl: loadbalancer: the_loadbalancer state: present private_key: "{{ lookup('file', 'credentials/server.key' ) }}" @@ -83,7 +83,7 @@ EXAMPLES = ''' wait: true - name: Disable SSL termination - rax_clb_ssl: + community.general.rax_clb_ssl: loadbalancer: "{{ registered_lb.balancer.id }}" state: absent wait: true diff --git a/plugins/modules/cloud/rackspace/rax_files.py b/plugins/modules/cloud/rackspace/rax_files.py index a9fe6c1f1e..67520905a4 100644 --- a/plugins/modules/cloud/rackspace/rax_files.py +++ b/plugins/modules/cloud/rackspace/rax_files.py @@ -76,43 +76,43 @@ EXAMPLES = ''' gather_facts: no tasks: - name: "List all containers" - rax_files: + community.general.rax_files: state: list - name: "Create container called 'mycontainer'" - rax_files: + community.general.rax_files: container: mycontainer - name: "Create container 'mycontainer2' with metadata" - rax_files: + community.general.rax_files: container: mycontainer2 meta: key: value file_for: someuser@example.com - name: "Set a container's web index page" - rax_files: + community.general.rax_files: container: mycontainer web_index: index.html - name: "Set a container's web error page" - rax_files: + community.general.rax_files: container: mycontainer web_error: error.html - name: "Make container public" - rax_files: + community.general.rax_files: container: mycontainer public: yes - name: "Make container public with a 24 hour TTL" - rax_files: + community.general.rax_files: container: mycontainer public: yes ttl: 86400 - name: "Make container private" - rax_files: + community.general.rax_files: container: mycontainer private: yes @@ -121,19 +121,19 @@ EXAMPLES = ''' gather_facts: no tasks: - name: "Get mycontainer2 metadata" - rax_files: + community.general.rax_files: container: mycontainer2 type: meta - name: "Set mycontainer2 metadata" - rax_files: + community.general.rax_files: container: mycontainer2 type: meta meta: uploaded_by: someuser@example.com - name: "Remove mycontainer2 metadata" - rax_files: + community.general.rax_files: container: "mycontainer2" type: meta state: absent diff --git a/plugins/modules/cloud/rackspace/rax_files_objects.py b/plugins/modules/cloud/rackspace/rax_files_objects.py index 03fa0a1860..ff4dd8db68 100644 --- a/plugins/modules/cloud/rackspace/rax_files_objects.py +++ b/plugins/modules/cloud/rackspace/rax_files_objects.py @@ -84,53 +84,53 @@ EXAMPLES = ''' gather_facts: False tasks: - name: "Get objects from test container" - rax_files_objects: + community.general.rax_files_objects: container: testcont dest: ~/Downloads/testcont - name: "Get single object from test container" - rax_files_objects: + community.general.rax_files_objects: container: testcont src: file1 dest: ~/Downloads/testcont - name: "Get several objects from test container" - rax_files_objects: + community.general.rax_files_objects: container: testcont src: file1,file2,file3 dest: ~/Downloads/testcont - name: "Delete one object in test container" - rax_files_objects: + community.general.rax_files_objects: container: testcont method: delete dest: file1 - name: "Delete several objects in test container" - rax_files_objects: + community.general.rax_files_objects: container: testcont method: delete dest: file2,file3,file4 - name: "Delete all objects in test container" - rax_files_objects: + community.general.rax_files_objects: container: testcont method: delete - name: "Upload all files to test container" - rax_files_objects: + community.general.rax_files_objects: container: testcont method: put src: ~/Downloads/onehundred - name: "Upload one file to test container" - rax_files_objects: + community.general.rax_files_objects: container: testcont method: put src: ~/Downloads/testcont/file1 - name: "Upload one file to test container with metadata" - rax_files_objects: + community.general.rax_files_objects: container: testcont src: ~/Downloads/testcont/file2 method: put @@ -139,14 +139,14 @@ EXAMPLES = ''' who_uploaded_this: someuser@example.com - name: "Upload one file to test container with TTL of 60 seconds" - rax_files_objects: + community.general.rax_files_objects: container: testcont method: put src: ~/Downloads/testcont/file3 expires: 60 - name: "Attempt to get remote object that does not exist" - rax_files_objects: + community.general.rax_files_objects: container: testcont method: get src: FileThatDoesNotExist.jpg @@ -154,7 +154,7 @@ EXAMPLES = ''' ignore_errors: yes - name: "Attempt to delete remote object that does not exist" - rax_files_objects: + community.general.rax_files_objects: container: testcont method: delete dest: FileThatDoesNotExist.jpg @@ -165,19 +165,19 @@ EXAMPLES = ''' gather_facts: false tasks: - name: "Get metadata on one object" - rax_files_objects: + community.general.rax_files_objects: container: testcont type: meta dest: file2 - name: "Get metadata on several objects" - rax_files_objects: + community.general.rax_files_objects: container: testcont type: meta src: file2,file1 - name: "Set metadata on an object" - rax_files_objects: + community.general.rax_files_objects: container: testcont type: meta dest: file17 @@ -188,13 +188,13 @@ EXAMPLES = ''' clear_meta: true - name: "Verify metadata is set" - rax_files_objects: + community.general.rax_files_objects: container: testcont type: meta src: file17 - name: "Delete metadata" - rax_files_objects: + community.general.rax_files_objects: container: testcont type: meta dest: file17 @@ -204,7 +204,7 @@ EXAMPLES = ''' key2: '' - name: "Get metadata on all objects" - rax_files_objects: + community.general.rax_files_objects: container: testcont type: meta ''' diff --git a/plugins/modules/cloud/rackspace/rax_mon_alarm.py b/plugins/modules/cloud/rackspace/rax_mon_alarm.py index c30fc03d83..905049a043 100644 --- a/plugins/modules/cloud/rackspace/rax_mon_alarm.py +++ b/plugins/modules/cloud/rackspace/rax_mon_alarm.py @@ -72,7 +72,7 @@ EXAMPLES = ''' connection: local tasks: - name: Ensure that a specific alarm exists. - rax_mon_alarm: + community.general.rax_mon_alarm: credentials: ~/.rax_pub state: present label: uhoh diff --git a/plugins/modules/cloud/rackspace/rax_mon_check.py b/plugins/modules/cloud/rackspace/rax_mon_check.py index 19e48f68c1..32d4088682 100644 --- a/plugins/modules/cloud/rackspace/rax_mon_check.py +++ b/plugins/modules/cloud/rackspace/rax_mon_check.py @@ -108,7 +108,7 @@ EXAMPLES = ''' connection: local tasks: - name: Associate a check with an existing entity. - rax_mon_check: + community.general.rax_mon_check: credentials: ~/.rax_pub state: present entity_id: "{{ the_entity['entity']['id'] }}" diff --git a/plugins/modules/cloud/rackspace/rax_mon_entity.py b/plugins/modules/cloud/rackspace/rax_mon_entity.py index 91e919aada..fe4b65f3ea 100644 --- a/plugins/modules/cloud/rackspace/rax_mon_entity.py +++ b/plugins/modules/cloud/rackspace/rax_mon_entity.py @@ -54,7 +54,7 @@ EXAMPLES = ''' connection: local tasks: - name: Ensure an entity exists - rax_mon_entity: + community.general.rax_mon_entity: credentials: ~/.rax_pub state: present label: my_entity diff --git a/plugins/modules/cloud/rackspace/rax_mon_notification_plan.py b/plugins/modules/cloud/rackspace/rax_mon_notification_plan.py index 4eff49e743..e774869ec8 100644 --- a/plugins/modules/cloud/rackspace/rax_mon_notification_plan.py +++ b/plugins/modules/cloud/rackspace/rax_mon_notification_plan.py @@ -52,7 +52,7 @@ EXAMPLES = ''' connection: local tasks: - name: Establish who gets called when. - rax_mon_notification_plan: + community.general.rax_mon_notification_plan: credentials: ~/.rax_pub state: present label: defcon1 diff --git a/plugins/modules/cloud/rackspace/rax_scaling_group.py b/plugins/modules/cloud/rackspace/rax_scaling_group.py index d869a13fe2..63e620cba2 100644 --- a/plugins/modules/cloud/rackspace/rax_scaling_group.py +++ b/plugins/modules/cloud/rackspace/rax_scaling_group.py @@ -110,7 +110,7 @@ EXAMPLES = ''' gather_facts: false connection: local tasks: - - rax_scaling_group: + - community.general.rax_scaling_group: credentials: ~/.raxpub region: ORD cooldown: 300 diff --git a/plugins/modules/cloud/rackspace/rax_scaling_policy.py b/plugins/modules/cloud/rackspace/rax_scaling_policy.py index 129d8b10f1..694ebecf62 100644 --- a/plugins/modules/cloud/rackspace/rax_scaling_policy.py +++ b/plugins/modules/cloud/rackspace/rax_scaling_policy.py @@ -76,7 +76,7 @@ EXAMPLES = ''' gather_facts: false connection: local tasks: - - rax_scaling_policy: + - community.general.rax_scaling_policy: credentials: ~/.raxpub region: ORD at: '2013-05-19T08:07:08Z' @@ -88,7 +88,7 @@ EXAMPLES = ''' scaling_group: ASG Test register: asps_at - - rax_scaling_policy: + - community.general.rax_scaling_policy: credentials: ~/.raxpub region: ORD cron: '1 0 * * *' @@ -100,7 +100,7 @@ EXAMPLES = ''' scaling_group: ASG Test register: asp_cron - - rax_scaling_policy: + - community.general.rax_scaling_policy: credentials: ~/.raxpub region: ORD cooldown: 300 diff --git a/plugins/modules/cloud/scaleway/scaleway_compute.py b/plugins/modules/cloud/scaleway/scaleway_compute.py index c9523dec79..77d7d93961 100644 --- a/plugins/modules/cloud/scaleway/scaleway_compute.py +++ b/plugins/modules/cloud/scaleway/scaleway_compute.py @@ -111,7 +111,7 @@ options: EXAMPLES = ''' - name: Create a server - scaleway_compute: + community.general.scaleway_compute: name: foobar state: present image: 89ee4018-f8c3-4dc4-a6b5-bca14f985ebe @@ -123,7 +123,7 @@ EXAMPLES = ''' - www - name: Create a server attached to a security group - scaleway_compute: + community.general.scaleway_compute: name: foobar state: present image: 89ee4018-f8c3-4dc4-a6b5-bca14f985ebe @@ -136,7 +136,7 @@ EXAMPLES = ''' - www - name: Destroy it right after - scaleway_compute: + community.general.scaleway_compute: name: foobar state: absent image: 89ee4018-f8c3-4dc4-a6b5-bca14f985ebe diff --git a/plugins/modules/cloud/scaleway/scaleway_image_facts.py b/plugins/modules/cloud/scaleway/scaleway_image_facts.py index 5291290b5b..b259227c0e 100644 --- a/plugins/modules/cloud/scaleway/scaleway_image_facts.py +++ b/plugins/modules/cloud/scaleway/scaleway_image_facts.py @@ -39,7 +39,7 @@ options: EXAMPLES = r''' - name: Gather Scaleway images facts - scaleway_image_facts: + community.general.scaleway_image_facts: region: par1 ''' diff --git a/plugins/modules/cloud/scaleway/scaleway_image_info.py b/plugins/modules/cloud/scaleway/scaleway_image_info.py index b11fd4f48b..a2ba2a74f8 100644 --- a/plugins/modules/cloud/scaleway/scaleway_image_info.py +++ b/plugins/modules/cloud/scaleway/scaleway_image_info.py @@ -35,7 +35,7 @@ options: EXAMPLES = r''' - name: Gather Scaleway images information - scaleway_image_info: + community.general.scaleway_image_info: region: par1 register: result diff --git a/plugins/modules/cloud/scaleway/scaleway_ip.py b/plugins/modules/cloud/scaleway/scaleway_ip.py index 79d535977b..f3f1024f3d 100644 --- a/plugins/modules/cloud/scaleway/scaleway_ip.py +++ b/plugins/modules/cloud/scaleway/scaleway_ip.py @@ -60,14 +60,14 @@ options: EXAMPLES = ''' - name: Create an IP - scaleway_ip: + community.general.scaleway_ip: organization: '{{ scw_org }}' state: present region: par1 register: ip_creation_task - name: Make sure IP deleted - scaleway_ip: + community.general.scaleway_ip: id: '{{ ip_creation_task.scaleway_ip.id }}' state: absent region: par1 diff --git a/plugins/modules/cloud/scaleway/scaleway_ip_facts.py b/plugins/modules/cloud/scaleway/scaleway_ip_facts.py index 8105fc4f0b..a3271316bc 100644 --- a/plugins/modules/cloud/scaleway/scaleway_ip_facts.py +++ b/plugins/modules/cloud/scaleway/scaleway_ip_facts.py @@ -37,7 +37,7 @@ options: EXAMPLES = r''' - name: Gather Scaleway ips facts - scaleway_ip_facts: + community.general.scaleway_ip_facts: region: par1 ''' diff --git a/plugins/modules/cloud/scaleway/scaleway_ip_info.py b/plugins/modules/cloud/scaleway/scaleway_ip_info.py index 58b442c78e..36f15ef001 100644 --- a/plugins/modules/cloud/scaleway/scaleway_ip_info.py +++ b/plugins/modules/cloud/scaleway/scaleway_ip_info.py @@ -33,7 +33,7 @@ options: EXAMPLES = r''' - name: Gather Scaleway ips information - scaleway_ip_info: + community.general.scaleway_ip_info: region: par1 register: result diff --git a/plugins/modules/cloud/scaleway/scaleway_lb.py b/plugins/modules/cloud/scaleway/scaleway_lb.py index b11cc63183..a553bf175e 100644 --- a/plugins/modules/cloud/scaleway/scaleway_lb.py +++ b/plugins/modules/cloud/scaleway/scaleway_lb.py @@ -80,7 +80,7 @@ options: EXAMPLES = ''' - name: Create a load-balancer - scaleway_lb: + community.general.scaleway_lb: name: foobar state: present organization_id: 951df375-e094-4d26-97c1-ba548eeb9c42 @@ -89,7 +89,7 @@ EXAMPLES = ''' - hello - name: Delete a load-balancer - scaleway_lb: + community.general.scaleway_lb: name: foobar state: absent organization_id: 951df375-e094-4d26-97c1-ba548eeb9c42 diff --git a/plugins/modules/cloud/scaleway/scaleway_organization_facts.py b/plugins/modules/cloud/scaleway/scaleway_organization_facts.py index 90db2df955..ee571cdc1f 100644 --- a/plugins/modules/cloud/scaleway/scaleway_organization_facts.py +++ b/plugins/modules/cloud/scaleway/scaleway_organization_facts.py @@ -33,7 +33,7 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Gather Scaleway organizations facts - scaleway_organization_facts: + community.general.scaleway_organization_facts: ''' RETURN = r''' diff --git a/plugins/modules/cloud/scaleway/scaleway_organization_info.py b/plugins/modules/cloud/scaleway/scaleway_organization_info.py index 1756024996..28d60b5c2c 100644 --- a/plugins/modules/cloud/scaleway/scaleway_organization_info.py +++ b/plugins/modules/cloud/scaleway/scaleway_organization_info.py @@ -29,7 +29,7 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Gather Scaleway organizations information - scaleway_organization_info: + community.general.scaleway_organization_info: register: result - debug: diff --git a/plugins/modules/cloud/scaleway/scaleway_security_group.py b/plugins/modules/cloud/scaleway/scaleway_security_group.py index 56eab53dbf..7189d48440 100644 --- a/plugins/modules/cloud/scaleway/scaleway_security_group.py +++ b/plugins/modules/cloud/scaleway/scaleway_security_group.py @@ -84,7 +84,7 @@ options: EXAMPLES = ''' - name: Create a Security Group - scaleway_security_group: + community.general.scaleway_security_group: state: present region: par1 name: security_group diff --git a/plugins/modules/cloud/scaleway/scaleway_security_group_facts.py b/plugins/modules/cloud/scaleway/scaleway_security_group_facts.py index 065dad0a28..c858db9135 100644 --- a/plugins/modules/cloud/scaleway/scaleway_security_group_facts.py +++ b/plugins/modules/cloud/scaleway/scaleway_security_group_facts.py @@ -37,7 +37,7 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Gather Scaleway security groups facts - scaleway_security_group_facts: + community.general.scaleway_security_group_facts: region: par1 ''' diff --git a/plugins/modules/cloud/scaleway/scaleway_security_group_info.py b/plugins/modules/cloud/scaleway/scaleway_security_group_info.py index 65e22e8a68..5bca181ea8 100644 --- a/plugins/modules/cloud/scaleway/scaleway_security_group_info.py +++ b/plugins/modules/cloud/scaleway/scaleway_security_group_info.py @@ -33,7 +33,7 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Gather Scaleway security groups information - scaleway_security_group_info: + community.general.scaleway_security_group_info: region: par1 register: result diff --git a/plugins/modules/cloud/scaleway/scaleway_security_group_rule.py b/plugins/modules/cloud/scaleway/scaleway_security_group_rule.py index 346906ae77..7fda5764c7 100644 --- a/plugins/modules/cloud/scaleway/scaleway_security_group_rule.py +++ b/plugins/modules/cloud/scaleway/scaleway_security_group_rule.py @@ -86,7 +86,7 @@ options: EXAMPLES = ''' - name: Create a Security Group Rule - scaleway_security_group_rule: + community.general.scaleway_security_group_rule: state: present region: par1 protocol: TCP diff --git a/plugins/modules/cloud/scaleway/scaleway_server_facts.py b/plugins/modules/cloud/scaleway/scaleway_server_facts.py index cf9cdf0306..8cb22a5c9f 100644 --- a/plugins/modules/cloud/scaleway/scaleway_server_facts.py +++ b/plugins/modules/cloud/scaleway/scaleway_server_facts.py @@ -37,7 +37,7 @@ options: EXAMPLES = r''' - name: Gather Scaleway servers facts - scaleway_server_facts: + community.general.scaleway_server_facts: region: par1 ''' diff --git a/plugins/modules/cloud/scaleway/scaleway_server_info.py b/plugins/modules/cloud/scaleway/scaleway_server_info.py index b0241ec9b8..c7fd37f977 100644 --- a/plugins/modules/cloud/scaleway/scaleway_server_info.py +++ b/plugins/modules/cloud/scaleway/scaleway_server_info.py @@ -33,7 +33,7 @@ options: EXAMPLES = r''' - name: Gather Scaleway servers information - scaleway_server_info: + community.general.scaleway_server_info: region: par1 register: result diff --git a/plugins/modules/cloud/scaleway/scaleway_snapshot_facts.py b/plugins/modules/cloud/scaleway/scaleway_snapshot_facts.py index a7bf9c0fb9..f07904365b 100644 --- a/plugins/modules/cloud/scaleway/scaleway_snapshot_facts.py +++ b/plugins/modules/cloud/scaleway/scaleway_snapshot_facts.py @@ -37,7 +37,7 @@ options: EXAMPLES = r''' - name: Gather Scaleway snapshots facts - scaleway_snapshot_facts: + community.general.scaleway_snapshot_facts: region: par1 ''' diff --git a/plugins/modules/cloud/scaleway/scaleway_snapshot_info.py b/plugins/modules/cloud/scaleway/scaleway_snapshot_info.py index 90f4752c19..a034329e56 100644 --- a/plugins/modules/cloud/scaleway/scaleway_snapshot_info.py +++ b/plugins/modules/cloud/scaleway/scaleway_snapshot_info.py @@ -33,7 +33,7 @@ options: EXAMPLES = r''' - name: Gather Scaleway snapshots information - scaleway_snapshot_info: + community.general.scaleway_snapshot_info: region: par1 register: result diff --git a/plugins/modules/cloud/scaleway/scaleway_sshkey.py b/plugins/modules/cloud/scaleway/scaleway_sshkey.py index a3aa7611aa..fde8b85691 100644 --- a/plugins/modules/cloud/scaleway/scaleway_sshkey.py +++ b/plugins/modules/cloud/scaleway/scaleway_sshkey.py @@ -44,17 +44,17 @@ options: EXAMPLES = ''' - name: "Add SSH key" - scaleway_sshkey: + community.general.scaleway_sshkey: ssh_pub_key: "ssh-rsa AAAA..." state: "present" - name: "Delete SSH key" - scaleway_sshkey: + community.general.scaleway_sshkey: ssh_pub_key: "ssh-rsa AAAA..." state: "absent" - name: "Add SSH key with explicit token" - scaleway_sshkey: + community.general.scaleway_sshkey: ssh_pub_key: "ssh-rsa AAAA..." state: "present" oauth_token: "6ecd2c9b-6f4f-44d4-a187-61a92078d08c" diff --git a/plugins/modules/cloud/scaleway/scaleway_user_data.py b/plugins/modules/cloud/scaleway/scaleway_user_data.py index 7227101134..c6090ce283 100644 --- a/plugins/modules/cloud/scaleway/scaleway_user_data.py +++ b/plugins/modules/cloud/scaleway/scaleway_user_data.py @@ -49,7 +49,7 @@ options: EXAMPLES = ''' - name: Update the cloud-init - scaleway_user_data: + community.general.scaleway_user_data: server_id: '5a33b4ab-57dd-4eb6-8b0a-d95eb63492ce' region: ams1 user_data: diff --git a/plugins/modules/cloud/scaleway/scaleway_volume.py b/plugins/modules/cloud/scaleway/scaleway_volume.py index 857088b641..ab5061187d 100644 --- a/plugins/modules/cloud/scaleway/scaleway_volume.py +++ b/plugins/modules/cloud/scaleway/scaleway_volume.py @@ -56,7 +56,7 @@ options: EXAMPLES = ''' - name: Create 10GB volume - scaleway_volume: + community.general.scaleway_volume: name: my-volume state: present region: par1 @@ -66,7 +66,7 @@ EXAMPLES = ''' register: server_creation_check_task - name: Make sure volume deleted - scaleway_volume: + community.general.scaleway_volume: name: my-volume state: absent region: par1 diff --git a/plugins/modules/cloud/scaleway/scaleway_volume_facts.py b/plugins/modules/cloud/scaleway/scaleway_volume_facts.py index 3158484771..5c310b7e05 100644 --- a/plugins/modules/cloud/scaleway/scaleway_volume_facts.py +++ b/plugins/modules/cloud/scaleway/scaleway_volume_facts.py @@ -37,7 +37,7 @@ options: EXAMPLES = r''' - name: Gather Scaleway volumes facts - scaleway_volume_facts: + community.general.scaleway_volume_facts: region: par1 ''' diff --git a/plugins/modules/cloud/scaleway/scaleway_volume_info.py b/plugins/modules/cloud/scaleway/scaleway_volume_info.py index 2e43753a20..1abd0b548a 100644 --- a/plugins/modules/cloud/scaleway/scaleway_volume_info.py +++ b/plugins/modules/cloud/scaleway/scaleway_volume_info.py @@ -33,7 +33,7 @@ options: EXAMPLES = r''' - name: Gather Scaleway volumes information - scaleway_volume_info: + community.general.scaleway_volume_info: region: par1 register: result diff --git a/plugins/modules/cloud/smartos/imgadm.py b/plugins/modules/cloud/smartos/imgadm.py index 87cfe8c8ae..57f7584e72 100644 --- a/plugins/modules/cloud/smartos/imgadm.py +++ b/plugins/modules/cloud/smartos/imgadm.py @@ -53,38 +53,38 @@ requirements: EXAMPLES = ''' - name: Import an image - imgadm: + community.general.imgadm: uuid: '70e3ae72-96b6-11e6-9056-9737fd4d0764' state: imported - name: Delete an image - imgadm: + community.general.imgadm: uuid: '70e3ae72-96b6-11e6-9056-9737fd4d0764' state: deleted - name: Update all images - imgadm: + community.general.imgadm: uuid: '*' state: updated - name: Update a single image - imgadm: + community.general.imgadm: uuid: '70e3ae72-96b6-11e6-9056-9737fd4d0764' state: updated - name: Add a source - imgadm: + community.general.imgadm: source: 'https://datasets.project-fifo.net' state: present - name: Add a Docker source - imgadm: + community.general.imgadm: source: 'https://docker.io' type: docker state: present - name: Remove a source - imgadm: + community.general.imgadm: source: 'https://docker.io' state: absent ''' diff --git a/plugins/modules/cloud/smartos/nictagadm.py b/plugins/modules/cloud/smartos/nictagadm.py index 4923242284..7db7c5ea45 100644 --- a/plugins/modules/cloud/smartos/nictagadm.py +++ b/plugins/modules/cloud/smartos/nictagadm.py @@ -52,14 +52,14 @@ options: EXAMPLES = r''' - name: Create 'storage0' on '00:1b:21:a3:f5:4d' - nictagadm: + community.general.nictagadm: name: storage0 mac: 00:1b:21:a3:f5:4d mtu: 9000 state: present - name: Remove 'storage0' nic tag - nictagadm: + community.general.nictagadm: name: storage0 state: absent ''' diff --git a/plugins/modules/cloud/smartos/smartos_image_info.py b/plugins/modules/cloud/smartos/smartos_image_info.py index afc09ab84a..eec3ac0114 100644 --- a/plugins/modules/cloud/smartos/smartos_image_info.py +++ b/plugins/modules/cloud/smartos/smartos_image_info.py @@ -28,16 +28,16 @@ options: EXAMPLES = ''' - name: Return information about all installed images - smartos_image_info: + community.general.smartos_image_info: register: result - name: Return all private active Linux images - smartos_image_info: + community.general.smartos_image_info: filters: "os=linux state=active public=false" register: result - name: Show, how many clones does every image have - smartos_image_info: + community.general.smartos_image_info: register: result - name: Print information diff --git a/plugins/modules/cloud/smartos/vmadm.py b/plugins/modules/cloud/smartos/vmadm.py index fff248dcb5..6839e3937c 100644 --- a/plugins/modules/cloud/smartos/vmadm.py +++ b/plugins/modules/cloud/smartos/vmadm.py @@ -289,7 +289,7 @@ requirements: EXAMPLES = ''' - name: Create SmartOS zone - vmadm: + community.general.vmadm: brand: joyent state: present alias: fw_zone @@ -305,12 +305,12 @@ EXAMPLES = ''' quota: 1 - name: Delete a zone - vmadm: + community.general.vmadm: alias: test_zone state: deleted - name: Stop all zones - vmadm: + community.general.vmadm: uuid: '*' state: stopped ''' diff --git a/plugins/modules/cloud/softlayer/sl_vm.py b/plugins/modules/cloud/softlayer/sl_vm.py index 5c28f16b09..d41a21fd25 100644 --- a/plugins/modules/cloud/softlayer/sl_vm.py +++ b/plugins/modules/cloud/softlayer/sl_vm.py @@ -117,7 +117,7 @@ EXAMPLES = ''' gather_facts: no tasks: - name: Build instance request - sl_vm: + community.general.sl_vm: hostname: instance-1 domain: anydomain.com datacenter: dal09 @@ -137,7 +137,7 @@ EXAMPLES = ''' gather_facts: no tasks: - name: Build instances request - sl_vm: + community.general.sl_vm: hostname: "{{ item.hostname }}" domain: "{{ item.domain }}" datacenter: "{{ item.datacenter }}" @@ -195,7 +195,7 @@ EXAMPLES = ''' gather_facts: no tasks: - name: Cancel by tag - sl_vm: + community.general.sl_vm: state: absent tags: ansible-module-test ''' diff --git a/plugins/modules/cloud/spotinst/spotinst_aws_elastigroup.py b/plugins/modules/cloud/spotinst/spotinst_aws_elastigroup.py index 2cdedeefb5..9d8b6a5b3e 100644 --- a/plugins/modules/cloud/spotinst/spotinst_aws_elastigroup.py +++ b/plugins/modules/cloud/spotinst/spotinst_aws_elastigroup.py @@ -467,7 +467,7 @@ EXAMPLES = ''' - hosts: localhost tasks: - name: Create elastigroup - spotinst_aws_elastigroup: + community.general.spotinst_aws_elastigroup: state: present risk: 100 availability_vs_cost: balanced @@ -501,7 +501,7 @@ EXAMPLES = ''' - hosts: localhost tasks: - name: Create elastigroup - spotinst_aws_elastigroup: + community.general.spotinst_aws_elastigroup: state: present account_id: act-1a9dd2b risk: 100 @@ -548,7 +548,7 @@ EXAMPLES = ''' - hosts: localhost tasks: - name: Create elastigroup - spotinst_aws_elastigroup: + community.general.spotinst_aws_elastigroup: state: present account_id: act-1a9dd2b risk: 100 @@ -598,7 +598,7 @@ EXAMPLES = ''' - hosts: localhost tasks: - name: Create elastigroup - spotinst_aws_elastigroup: + community.general.spotinst_aws_elastigroup: state: present risk: 100 availability_vs_cost: balanced @@ -638,7 +638,7 @@ EXAMPLES = ''' - hosts: localhost tasks: - name: Create elastigroup - spotinst_aws_elastigroup: + community.general.spotinst_aws_elastigroup: state: present risk: 100 availability_vs_cost: balanced @@ -676,7 +676,7 @@ EXAMPLES = ''' - hosts: localhost tasks: - name: Create elastigroup - spotinst_aws_elastigroup: + community.general.spotinst_aws_elastigroup: account_id: act-92d45673 state: present risk: 100 diff --git a/plugins/modules/cloud/univention/udm_dns_record.py b/plugins/modules/cloud/univention/udm_dns_record.py index 238d50d224..109fde8642 100644 --- a/plugins/modules/cloud/univention/udm_dns_record.py +++ b/plugins/modules/cloud/univention/udm_dns_record.py @@ -55,7 +55,7 @@ options: EXAMPLES = ''' - name: Create a DNS record on a UCS - udm_dns_record: + community.general.udm_dns_record: name: www zone: example.com type: host_record diff --git a/plugins/modules/cloud/univention/udm_dns_zone.py b/plugins/modules/cloud/univention/udm_dns_zone.py index e290d27c64..6675b87dcc 100644 --- a/plugins/modules/cloud/univention/udm_dns_zone.py +++ b/plugins/modules/cloud/univention/udm_dns_zone.py @@ -82,7 +82,7 @@ options: EXAMPLES = ''' - name: Create a DNS zone on a UCS - udm_dns_zone: + community.general.udm_dns_zone: zone: example.com type: forward_zone nameserver: diff --git a/plugins/modules/cloud/univention/udm_group.py b/plugins/modules/cloud/univention/udm_group.py index 349ab56ce3..4c84aff354 100644 --- a/plugins/modules/cloud/univention/udm_group.py +++ b/plugins/modules/cloud/univention/udm_group.py @@ -53,20 +53,20 @@ options: EXAMPLES = ''' - name: Create a POSIX group - udm_group: + community.general.udm_group: name: g123m-1A # Create a POSIX group with the exact DN # C(cn=g123m-1A,cn=classes,cn=students,cn=groups,ou=school,dc=school,dc=example,dc=com) - name: Create a POSIX group with a DN - udm_group: + community.general.udm_group: name: g123m-1A subpath: 'cn=classes,cn=students,cn=groups' ou: school # or - name: Create a POSIX group with a DN - udm_group: + community.general.udm_group: name: g123m-1A position: 'cn=classes,cn=students,cn=groups,ou=school,dc=school,dc=example,dc=com' ''' diff --git a/plugins/modules/cloud/univention/udm_share.py b/plugins/modules/cloud/univention/udm_share.py index 166fa59f9f..bcd6918634 100644 --- a/plugins/modules/cloud/univention/udm_share.py +++ b/plugins/modules/cloud/univention/udm_share.py @@ -293,7 +293,7 @@ options: EXAMPLES = ''' - name: Create a share named home on the server ucs.example.com with the path /home - udm_share: + community.general.udm_share: name: home path: /home host: ucs.example.com diff --git a/plugins/modules/cloud/univention/udm_user.py b/plugins/modules/cloud/univention/udm_user.py index 1c2b58b920..c59e4fd053 100644 --- a/plugins/modules/cloud/univention/udm_user.py +++ b/plugins/modules/cloud/univention/udm_user.py @@ -228,14 +228,14 @@ options: EXAMPLES = ''' - name: Create a user on a UCS - udm_user: + community.general.udm_user: name: FooBar password: secure_password firstname: Foo lastname: Bar - name: Create a user with the DN C(uid=foo,cn=teachers,cn=users,ou=school,dc=school,dc=example,dc=com) - udm_user: + community.general.udm_user: name: foo password: secure_password firstname: Foo @@ -245,7 +245,7 @@ EXAMPLES = ''' # or define the position - name: Create a user with the DN C(uid=foo,cn=teachers,cn=users,ou=school,dc=school,dc=example,dc=com) - udm_user: + community.general.udm_user: name: foo password: secure_password firstname: Foo diff --git a/plugins/modules/cloud/webfaction/webfaction_app.py b/plugins/modules/cloud/webfaction/webfaction_app.py index 6db409768a..9a69ce54fc 100644 --- a/plugins/modules/cloud/webfaction/webfaction_app.py +++ b/plugins/modules/cloud/webfaction/webfaction_app.py @@ -82,7 +82,7 @@ options: EXAMPLES = ''' - name: Create a test app - webfaction_app: + community.general.webfaction_app: name: "my_wsgi_app1" state: present type: mod_wsgi35-python27 diff --git a/plugins/modules/cloud/webfaction/webfaction_db.py b/plugins/modules/cloud/webfaction/webfaction_db.py index 43877480b0..19bc6ea212 100644 --- a/plugins/modules/cloud/webfaction/webfaction_db.py +++ b/plugins/modules/cloud/webfaction/webfaction_db.py @@ -69,7 +69,7 @@ EXAMPLES = ''' # name as the database, and the specified password. - name: Create a database - webfaction_db: + community.general.webfaction_db: name: "{{webfaction_user}}_db1" password: mytestsql type: mysql diff --git a/plugins/modules/cloud/webfaction/webfaction_domain.py b/plugins/modules/cloud/webfaction/webfaction_domain.py index 6249069783..a348ef5134 100644 --- a/plugins/modules/cloud/webfaction/webfaction_domain.py +++ b/plugins/modules/cloud/webfaction/webfaction_domain.py @@ -57,7 +57,7 @@ options: EXAMPLES = ''' - name: Create a test domain - webfaction_domain: + community.general.webfaction_domain: name: mydomain.com state: present subdomains: @@ -67,7 +67,7 @@ EXAMPLES = ''' login_password: "{{webfaction_passwd}}" - name: Delete test domain and any subdomains - webfaction_domain: + community.general.webfaction_domain: name: mydomain.com state: absent login_name: "{{webfaction_user}}" diff --git a/plugins/modules/cloud/webfaction/webfaction_mailbox.py b/plugins/modules/cloud/webfaction/webfaction_mailbox.py index 678804d3b3..144fad2983 100644 --- a/plugins/modules/cloud/webfaction/webfaction_mailbox.py +++ b/plugins/modules/cloud/webfaction/webfaction_mailbox.py @@ -54,7 +54,7 @@ options: EXAMPLES = ''' - name: Create a mailbox - webfaction_mailbox: + community.general.webfaction_mailbox: mailbox_name="mybox" mailbox_password="myboxpw" state=present diff --git a/plugins/modules/cloud/webfaction/webfaction_site.py b/plugins/modules/cloud/webfaction/webfaction_site.py index 3c73859caa..8ae982804d 100644 --- a/plugins/modules/cloud/webfaction/webfaction_site.py +++ b/plugins/modules/cloud/webfaction/webfaction_site.py @@ -74,7 +74,7 @@ options: EXAMPLES = ''' - name: Create website - webfaction_site: + community.general.webfaction_site: name: testsite1 state: present host: myhost.webfaction.com diff --git a/plugins/modules/cloud/xenserver/xenserver_guest.py b/plugins/modules/cloud/xenserver/xenserver_guest.py index 7a2083c788..0656c2dd0a 100644 --- a/plugins/modules/cloud/xenserver/xenserver_guest.py +++ b/plugins/modules/cloud/xenserver/xenserver_guest.py @@ -195,7 +195,7 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Create a VM from a template - xenserver_guest: + community.general.xenserver_guest: hostname: "{{ xenserver_hostname }}" username: "{{ xenserver_username }}" password: "{{ xenserver_password }}" @@ -222,7 +222,7 @@ EXAMPLES = r''' register: deploy - name: Create a VM template - xenserver_guest: + community.general.xenserver_guest: hostname: "{{ xenserver_hostname }}" username: "{{ xenserver_username }}" password: "{{ xenserver_password }}" @@ -240,7 +240,7 @@ EXAMPLES = r''' register: deploy - name: Rename a VM (requires the VM's UUID) - xenserver_guest: + community.general.xenserver_guest: hostname: "{{ xenserver_hostname }}" username: "{{ xenserver_username }}" password: "{{ xenserver_password }}" @@ -250,7 +250,7 @@ EXAMPLES = r''' delegate_to: localhost - name: Remove a VM by UUID - xenserver_guest: + community.general.xenserver_guest: hostname: "{{ xenserver_hostname }}" username: "{{ xenserver_username }}" password: "{{ xenserver_password }}" @@ -259,7 +259,7 @@ EXAMPLES = r''' delegate_to: localhost - name: Modify custom params (boot order) - xenserver_guest: + community.general.xenserver_guest: hostname: "{{ xenserver_hostname }}" username: "{{ xenserver_username }}" password: "{{ xenserver_password }}" @@ -271,7 +271,7 @@ EXAMPLES = r''' delegate_to: localhost - name: Customize network parameters - xenserver_guest: + community.general.xenserver_guest: hostname: "{{ xenserver_hostname }}" username: "{{ xenserver_username }}" password: "{{ xenserver_password }}" diff --git a/plugins/modules/cloud/xenserver/xenserver_guest_info.py b/plugins/modules/cloud/xenserver/xenserver_guest_info.py index dede732c15..65c6363b75 100644 --- a/plugins/modules/cloud/xenserver/xenserver_guest_info.py +++ b/plugins/modules/cloud/xenserver/xenserver_guest_info.py @@ -52,7 +52,7 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Gather facts - xenserver_guest_info: + community.general.xenserver_guest_info: hostname: "{{ xenserver_hostname }}" username: "{{ xenserver_username }}" password: "{{ xenserver_password }}" diff --git a/plugins/modules/cloud/xenserver/xenserver_guest_powerstate.py b/plugins/modules/cloud/xenserver/xenserver_guest_powerstate.py index c92575420c..677b423170 100644 --- a/plugins/modules/cloud/xenserver/xenserver_guest_powerstate.py +++ b/plugins/modules/cloud/xenserver/xenserver_guest_powerstate.py @@ -72,7 +72,7 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Power on VM - xenserver_guest_powerstate: + community.general.xenserver_guest_powerstate: hostname: "{{ xenserver_hostname }}" username: "{{ xenserver_username }}" password: "{{ xenserver_password }}" diff --git a/plugins/modules/clustering/consul/consul.py b/plugins/modules/clustering/consul/consul.py index 22d9dc791b..140f0967b5 100644 --- a/plugins/modules/clustering/consul/consul.py +++ b/plugins/modules/clustering/consul/consul.py @@ -140,32 +140,32 @@ options: EXAMPLES = ''' - name: Register nginx service with the local consul agent - consul: + community.general.consul: service_name: nginx service_port: 80 - name: Register nginx service with curl check - consul: + community.general.consul: service_name: nginx service_port: 80 script: curl http://localhost interval: 60s - name: Register nginx with an http check - consul: + community.general.consul: service_name: nginx service_port: 80 interval: 60s http: http://localhost:80/status - name: Register external service nginx available at 10.1.5.23 - consul: + community.general.consul: service_name: nginx service_port: 80 service_address: 10.1.5.23 - name: Register nginx with some service tags - consul: + community.general.consul: service_name: nginx service_port: 80 tags: @@ -173,26 +173,26 @@ EXAMPLES = ''' - webservers - name: Remove nginx service - consul: + community.general.consul: service_name: nginx state: absent - name: Register celery worker service - consul: + community.general.consul: service_name: celery-worker tags: - prod - worker - name: Create a node level check to test disk usage - consul: + community.general.consul: check_name: Disk usage check_id: disk_usage script: /opt/disk_usage.py interval: 5m - name: Register an http check against a service that's already registered - consul: + community.general.consul: check_name: nginx-check2 check_id: nginx-check2 service_id: nginx diff --git a/plugins/modules/clustering/consul/consul_acl.py b/plugins/modules/clustering/consul/consul_acl.py index 2ff648a760..14eeca98bf 100644 --- a/plugins/modules/clustering/consul/consul_acl.py +++ b/plugins/modules/clustering/consul/consul_acl.py @@ -77,7 +77,7 @@ requirements: EXAMPLES = """ - name: Create an ACL with rules - consul_acl: + community.general.consul_acl: host: consul1.example.com mgmt_token: some_management_acl name: Foo access @@ -88,7 +88,7 @@ EXAMPLES = """ policy: deny - name: Create an ACL with a specific token - consul_acl: + community.general.consul_acl: host: consul1.example.com mgmt_token: some_management_acl name: Foo access @@ -98,7 +98,7 @@ EXAMPLES = """ policy: read - name: Update the rules associated to an ACL token - consul_acl: + community.general.consul_acl: host: consul1.example.com mgmt_token: some_management_acl name: Foo access @@ -122,7 +122,7 @@ EXAMPLES = """ policy: write - name: Remove a token - consul_acl: + community.general.consul_acl: host: consul1.example.com mgmt_token: some_management_acl token: 172bd5c8-9fe9-11e4-b1b0-3c15c2c9fd5e diff --git a/plugins/modules/clustering/consul/consul_kv.py b/plugins/modules/clustering/consul/consul_kv.py index 796c5d3cb1..a11ccaf7b7 100644 --- a/plugins/modules/clustering/consul/consul_kv.py +++ b/plugins/modules/clustering/consul/consul_kv.py @@ -110,27 +110,27 @@ EXAMPLES = ''' # If the key does not exist, the value associated to the "data" property in `retrieved_key` will be `None` # If the key value is empty string, `retrieved_key["data"]["Value"]` will be `None` - name: Retrieve a value from the key/value store - consul_kv: + community.general.consul_kv: key: somekey register: retrieved_key - name: Add or update the value associated with a key in the key/value store - consul_kv: + community.general.consul_kv: key: somekey value: somevalue - name: Remove a key from the store - consul_kv: + community.general.consul_kv: key: somekey state: absent - name: Add a node to an arbitrary group via consul inventory (see consul.ini) - consul_kv: + community.general.consul_kv: key: ansible/groups/dc1/somenode value: top_secret - name: Register a key/value pair with an associated session - consul_kv: + community.general.consul_kv: key: stg/node/server_birthday value: 20160509 session: "{{ sessionid }}" diff --git a/plugins/modules/clustering/consul/consul_session.py b/plugins/modules/clustering/consul/consul_session.py index 93990f84c3..f28d3a5eca 100644 --- a/plugins/modules/clustering/consul/consul_session.py +++ b/plugins/modules/clustering/consul/consul_session.py @@ -98,27 +98,27 @@ options: EXAMPLES = ''' - name: Register basic session with consul - consul_session: + community.general.consul_session: name: session1 - name: Register a session with an existing check - consul_session: + community.general.consul_session: name: session_with_check checks: - existing_check_name - name: Register a session with lock_delay - consul_session: + community.general.consul_session: name: session_with_delay delay: 20s - name: Retrieve info about session by id - consul_session: + community.general.consul_session: id: session_id state: info - name: Retrieve active sessions - consul_session: + community.general.consul_session: state: list ''' diff --git a/plugins/modules/clustering/etcd3.py b/plugins/modules/clustering/etcd3.py index b9acfd9d42..14cd19fd46 100644 --- a/plugins/modules/clustering/etcd3.py +++ b/plugins/modules/clustering/etcd3.py @@ -67,7 +67,7 @@ author: EXAMPLES = """ - name: Store a value "bar" under the key "foo" for a cluster located "http://localhost:2379" - etcd3: + community.general.etcd3: key: "foo" value: "baz3" host: "localhost" @@ -75,7 +75,7 @@ EXAMPLES = """ state: "present" - name: Authenticate using user/password combination with a timeout of 10 seconds - etcd3: + community.general.etcd3: key: "foo" value: "baz3" state: "present" @@ -84,7 +84,7 @@ EXAMPLES = """ timeout: 10 - name: Authenticate using TLS certificates - etcd3: + community.general.etcd3: key: "foo" value: "baz3" state: "present" diff --git a/plugins/modules/clustering/pacemaker_cluster.py b/plugins/modules/clustering/pacemaker_cluster.py index 860d92f8b6..3f33c466a8 100644 --- a/plugins/modules/clustering/pacemaker_cluster.py +++ b/plugins/modules/clustering/pacemaker_cluster.py @@ -43,7 +43,7 @@ EXAMPLES = ''' gather_facts: no tasks: - name: Get cluster state - pacemaker_cluster: + community.general.pacemaker_cluster: state: online ''' diff --git a/plugins/modules/clustering/znode.py b/plugins/modules/clustering/znode.py index b9d63df66b..692a1a8eb3 100644 --- a/plugins/modules/clustering/znode.py +++ b/plugins/modules/clustering/znode.py @@ -47,39 +47,39 @@ author: "Trey Perry (@treyperry)" EXAMPLES = """ - name: Creating or updating a znode with a given value - znode: + community.general.znode: hosts: 'localhost:2181' name: /mypath value: myvalue state: present - name: Getting the value and stat structure for a znode - znode: + community.general.znode: hosts: 'localhost:2181' name: /mypath op: get - name: Listing a particular znode's children - znode: + community.general.znode: hosts: 'localhost:2181' name: /zookeeper op: list - name: Waiting 20 seconds for a znode to appear at path /mypath - znode: + community.general.znode: hosts: 'localhost:2181' name: /mypath op: wait timeout: 20 - name: Deleting a znode at path /mypath - znode: + community.general.znode: hosts: 'localhost:2181' name: /mypath state: absent - name: Creating or updating a znode with a given value on a remote Zookeeper - znode: + community.general.znode: hosts: 'my-zookeeper-node:2181' name: /mypath value: myvalue diff --git a/plugins/modules/database/aerospike/aerospike_migrations.py b/plugins/modules/database/aerospike/aerospike_migrations.py index 4e6046857e..9e1a6a0f0c 100644 --- a/plugins/modules/database/aerospike/aerospike_migrations.py +++ b/plugins/modules/database/aerospike/aerospike_migrations.py @@ -106,7 +106,7 @@ options: EXAMPLES = ''' # check for migrations on local node - name: Wait for migrations on local node before proceeding - aerospike_migrations: + community.general.aerospike_migrations: host: "localhost" connect_timeout: 2000 consecutive_good_checks: 5 @@ -138,7 +138,7 @@ EXAMPLES = ''' # Maximum runtime before giving up in this case will be: # Tries Limit * Sleep Between Checks * delay * retries - name: Wait for aerospike migrations - aerospike_migrations: + community.general.aerospike_migrations: local_only: True sleep_between_checks: 1 tries_limit: 5 diff --git a/plugins/modules/database/influxdb/influxdb_database.py b/plugins/modules/database/influxdb/influxdb_database.py index ed7919dc63..d370046de1 100644 --- a/plugins/modules/database/influxdb/influxdb_database.py +++ b/plugins/modules/database/influxdb/influxdb_database.py @@ -38,18 +38,18 @@ extends_documentation_fragment: EXAMPLES = r''' # Example influxdb_database command from Ansible Playbooks - name: Create database - influxdb_database: + community.general.influxdb_database: hostname: "{{influxdb_ip_address}}" database_name: "{{influxdb_database_name}}" - name: Destroy database - influxdb_database: + community.general.influxdb_database: hostname: "{{influxdb_ip_address}}" database_name: "{{influxdb_database_name}}" state: absent - name: Create database using custom credentials - influxdb_database: + community.general.influxdb_database: hostname: "{{influxdb_ip_address}}" username: "{{influxdb_username}}" password: "{{influxdb_password}}" diff --git a/plugins/modules/database/influxdb/influxdb_query.py b/plugins/modules/database/influxdb/influxdb_query.py index b39f77bc90..e05d5a3d55 100644 --- a/plugins/modules/database/influxdb/influxdb_query.py +++ b/plugins/modules/database/influxdb/influxdb_query.py @@ -35,14 +35,14 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Query connections - influxdb_query: + community.general.influxdb_query: hostname: "{{ influxdb_ip_address }}" database_name: "{{ influxdb_database_name }}" query: "select mean(value) from connections" register: connection - name: Query connections with tags filters - influxdb_query: + community.general.influxdb_query: hostname: "{{ influxdb_ip_address }}" database_name: "{{ influxdb_database_name }}" query: "select mean(value) from connections where region='zue01' and host='server01'" diff --git a/plugins/modules/database/influxdb/influxdb_retention_policy.py b/plugins/modules/database/influxdb/influxdb_retention_policy.py index df1582d883..355e4262da 100644 --- a/plugins/modules/database/influxdb/influxdb_retention_policy.py +++ b/plugins/modules/database/influxdb/influxdb_retention_policy.py @@ -50,7 +50,7 @@ extends_documentation_fragment: EXAMPLES = r''' # Example influxdb_retention_policy command from Ansible Playbooks - name: Create 1 hour retention policy - influxdb_retention_policy: + community.general.influxdb_retention_policy: hostname: "{{influxdb_ip_address}}" database_name: "{{influxdb_database_name}}" policy_name: test @@ -60,7 +60,7 @@ EXAMPLES = r''' validate_certs: yes - name: Create 1 day retention policy - influxdb_retention_policy: + community.general.influxdb_retention_policy: hostname: "{{influxdb_ip_address}}" database_name: "{{influxdb_database_name}}" policy_name: test @@ -68,7 +68,7 @@ EXAMPLES = r''' replication: 1 - name: Create 1 week retention policy - influxdb_retention_policy: + community.general.influxdb_retention_policy: hostname: "{{influxdb_ip_address}}" database_name: "{{influxdb_database_name}}" policy_name: test @@ -76,7 +76,7 @@ EXAMPLES = r''' replication: 1 - name: Create infinite retention policy - influxdb_retention_policy: + community.general.influxdb_retention_policy: hostname: "{{influxdb_ip_address}}" database_name: "{{influxdb_database_name}}" policy_name: test diff --git a/plugins/modules/database/influxdb/influxdb_user.py b/plugins/modules/database/influxdb/influxdb_user.py index 3a571c5ee1..e17e3753f2 100644 --- a/plugins/modules/database/influxdb/influxdb_user.py +++ b/plugins/modules/database/influxdb/influxdb_user.py @@ -56,19 +56,19 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Create a user on localhost using default login credentials - influxdb_user: + community.general.influxdb_user: user_name: john user_password: s3cr3t - name: Create a user on localhost using custom login credentials - influxdb_user: + community.general.influxdb_user: user_name: john user_password: s3cr3t login_username: "{{ influxdb_username }}" login_password: "{{ influxdb_password }}" - name: Create an admin user on a remote host using custom login credentials - influxdb_user: + community.general.influxdb_user: user_name: john user_password: s3cr3t admin: yes @@ -77,7 +77,7 @@ EXAMPLES = r''' login_password: "{{ influxdb_password }}" - name: Create a user on localhost with privileges - influxdb_user: + community.general.influxdb_user: user_name: john user_password: s3cr3t login_username: "{{ influxdb_username }}" @@ -89,7 +89,7 @@ EXAMPLES = r''' privilege: 'READ' - name: Destroy a user using custom login credentials - influxdb_user: + community.general.influxdb_user: user_name: john login_username: "{{ influxdb_username }}" login_password: "{{ influxdb_password }}" diff --git a/plugins/modules/database/influxdb/influxdb_write.py b/plugins/modules/database/influxdb/influxdb_write.py index c31c9031b0..0dc063a7b1 100644 --- a/plugins/modules/database/influxdb/influxdb_write.py +++ b/plugins/modules/database/influxdb/influxdb_write.py @@ -36,7 +36,7 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Write points into database - influxdb_write: + community.general.influxdb_write: hostname: "{{influxdb_ip_address}}" database_name: "{{influxdb_database_name}}" data_points: diff --git a/plugins/modules/database/misc/elasticsearch_plugin.py b/plugins/modules/database/misc/elasticsearch_plugin.py index 5301a750ac..27a67406a8 100644 --- a/plugins/modules/database/misc/elasticsearch_plugin.py +++ b/plugins/modules/database/misc/elasticsearch_plugin.py @@ -75,27 +75,27 @@ options: EXAMPLES = ''' - name: Install Elasticsearch Head plugin in Elasticsearch 2.x - elasticsearch_plugin: + community.general.elasticsearch_plugin: name: mobz/elasticsearch-head state: present - name: Install a specific version of Elasticsearch Head in Elasticsearch 2.x - elasticsearch_plugin: + community.general.elasticsearch_plugin: name: mobz/elasticsearch-head version: 2.0.0 - name: Uninstall Elasticsearch head plugin in Elasticsearch 2.x - elasticsearch_plugin: + community.general.elasticsearch_plugin: name: mobz/elasticsearch-head state: absent - name: Install a specific plugin in Elasticsearch >= 5.0 - elasticsearch_plugin: + community.general.elasticsearch_plugin: name: analysis-icu state: present - name: Install the ingest-geoip plugin with a forced installation - elasticsearch_plugin: + community.general.elasticsearch_plugin: name: ingest-geoip state: present force: yes diff --git a/plugins/modules/database/misc/kibana_plugin.py b/plugins/modules/database/misc/kibana_plugin.py index 722ea1d3a7..e84d8a6bf0 100644 --- a/plugins/modules/database/misc/kibana_plugin.py +++ b/plugins/modules/database/misc/kibana_plugin.py @@ -56,18 +56,18 @@ options: EXAMPLES = ''' - name: Install Elasticsearch head plugin - kibana_plugin: + community.general.kibana_plugin: state: present name: elasticsearch/marvel - name: Install specific version of a plugin - kibana_plugin: + community.general.kibana_plugin: state: present name: elasticsearch/marvel version: '2.3.3' - name: Uninstall Elasticsearch head plugin - kibana_plugin: + community.general.kibana_plugin: state: absent name: elasticsearch/marvel ''' diff --git a/plugins/modules/database/misc/redis.py b/plugins/modules/database/misc/redis.py index dbf60c71b8..60ac88a0d5 100644 --- a/plugins/modules/database/misc/redis.py +++ b/plugins/modules/database/misc/redis.py @@ -77,41 +77,41 @@ author: "Xabier Larrakoetxea (@slok)" EXAMPLES = ''' - name: Set local redis instance to be slave of melee.island on port 6377 - redis: + community.general.redis: command: slave master_host: melee.island master_port: 6377 - name: Deactivate slave mode - redis: + community.general.redis: command: slave slave_mode: master - name: Flush all the redis db - redis: + community.general.redis: command: flush flush_mode: all - name: Flush only one db in a redis instance - redis: + community.general.redis: command: flush db: 1 flush_mode: db - name: Configure local redis to have 10000 max clients - redis: + community.general.redis: command: config name: maxclients value: 10000 - name: Configure local redis maxmemory to 4GB - redis: + community.general.redis: command: config name: maxmemory value: 4GB - name: Configure local redis to have lua time limit of 100 ms - redis: + community.general.redis: command: config name: lua-time-limit value: 100 diff --git a/plugins/modules/database/misc/riak.py b/plugins/modules/database/misc/riak.py index 089e37275f..848a5e3f16 100644 --- a/plugins/modules/database/misc/riak.py +++ b/plugins/modules/database/misc/riak.py @@ -55,16 +55,16 @@ options: EXAMPLES = ''' - name: "Join's a Riak node to another node" - riak: + community.general.riak: command: join target_node: riak@10.1.1.1 - name: Wait for handoffs to finish. Use with async and poll. - riak: + community.general.riak: wait_for_handoffs: yes - name: Wait for riak_kv service to startup - riak: + community.general.riak: wait_for_service: kv ''' diff --git a/plugins/modules/database/mssql/mssql_db.py b/plugins/modules/database/mssql/mssql_db.py index 844765f2cd..28b13a7052 100644 --- a/plugins/modules/database/mssql/mssql_db.py +++ b/plugins/modules/database/mssql/mssql_db.py @@ -60,7 +60,7 @@ author: Vedit Firat Arig (@vedit) EXAMPLES = ''' - name: Create a new database with name 'jackdata' - mssql_db: + community.general.mssql_db: name: jackdata state: present @@ -71,7 +71,7 @@ EXAMPLES = ''' dest: /tmp - name: Restore the dump file to database 'my_db' - mssql_db: + community.general.mssql_db: name: my_db state: import target: /tmp/dump.sql diff --git a/plugins/modules/database/vertica/vertica_configuration.py b/plugins/modules/database/vertica/vertica_configuration.py index a4265bea04..e5c421b962 100644 --- a/plugins/modules/database/vertica/vertica_configuration.py +++ b/plugins/modules/database/vertica/vertica_configuration.py @@ -56,7 +56,7 @@ author: "Dariusz Owczarek (@dareko)" EXAMPLES = """ - name: Updating load_balance_policy - vertica_configuration: name=failovertostandbyafter value='8 hours' + community.general.vertica_configuration: name=failovertostandbyafter value='8 hours' """ import traceback diff --git a/plugins/modules/database/vertica/vertica_info.py b/plugins/modules/database/vertica/vertica_info.py index 6cc33866e5..5dd245bc91 100644 --- a/plugins/modules/database/vertica/vertica_info.py +++ b/plugins/modules/database/vertica/vertica_info.py @@ -50,7 +50,7 @@ author: "Dariusz Owczarek (@dareko)" EXAMPLES = """ - name: Gathering vertica facts - vertica_info: db=db_name + community.general.vertica_info: db=db_name register: result - name: Print schemas diff --git a/plugins/modules/database/vertica/vertica_role.py b/plugins/modules/database/vertica/vertica_role.py index 8cbfd04e6f..bba411d03f 100644 --- a/plugins/modules/database/vertica/vertica_role.py +++ b/plugins/modules/database/vertica/vertica_role.py @@ -61,10 +61,10 @@ author: "Dariusz Owczarek (@dareko)" EXAMPLES = """ - name: Creating a new vertica role - vertica_role: name=role_name db=db_name state=present + community.general.vertica_role: name=role_name db=db_name state=present - name: Creating a new vertica role with other role assigned - vertica_role: name=role_name assigned_role=other_role_name state=present + community.general.vertica_role: name=role_name assigned_role=other_role_name state=present """ import traceback diff --git a/plugins/modules/database/vertica/vertica_schema.py b/plugins/modules/database/vertica/vertica_schema.py index 9560cc8493..424de564dc 100644 --- a/plugins/modules/database/vertica/vertica_schema.py +++ b/plugins/modules/database/vertica/vertica_schema.py @@ -73,13 +73,13 @@ author: "Dariusz Owczarek (@dareko)" EXAMPLES = """ - name: Creating a new vertica schema - vertica_schema: name=schema_name db=db_name state=present + community.general.vertica_schema: name=schema_name db=db_name state=present - name: Creating a new schema with specific schema owner - vertica_schema: name=schema_name owner=dbowner db=db_name state=present + community.general.vertica_schema: name=schema_name owner=dbowner db=db_name state=present - name: Creating a new schema with roles - vertica_schema: + community.general.vertica_schema: name=schema_name create_roles=schema_name_all usage_roles=schema_name_ro,schema_name_rw diff --git a/plugins/modules/database/vertica/vertica_user.py b/plugins/modules/database/vertica/vertica_user.py index 967445a38b..f550f190c7 100644 --- a/plugins/modules/database/vertica/vertica_user.py +++ b/plugins/modules/database/vertica/vertica_user.py @@ -84,10 +84,10 @@ author: "Dariusz Owczarek (@dareko)" EXAMPLES = """ - name: Creating a new vertica user with password - vertica_user: name=user_name password=md5 db=db_name state=present + community.general.vertica_user: name=user_name password=md5 db=db_name state=present - name: Creating a new vertica user authenticated via ldap with roles assigned - vertica_user: + community.general.vertica_user: name=user_name ldap=true db=db_name diff --git a/plugins/modules/files/archive.py b/plugins/modules/files/archive.py index 6640563639..a41dae3358 100644 --- a/plugins/modules/files/archive.py +++ b/plugins/modules/files/archive.py @@ -63,22 +63,22 @@ author: EXAMPLES = r''' - name: Compress directory /path/to/foo/ into /path/to/foo.tgz - archive: + community.general.archive: path: /path/to/foo dest: /path/to/foo.tgz - name: Compress regular file /path/to/foo into /path/to/foo.gz and remove it - archive: + community.general.archive: path: /path/to/foo remove: yes - name: Create a zip archive of /path/to/foo - archive: + community.general.archive: path: /path/to/foo format: zip - name: Create a bz2 archive of multiple files, rooted at /path - archive: + community.general.archive: path: - /path/to/foo - /path/wong/foo @@ -86,7 +86,7 @@ EXAMPLES = r''' format: bz2 - name: Create a bz2 archive of a globbed path, while excluding specific dirnames - archive: + community.general.archive: path: - /path/to/foo/* dest: /path/file.tar.bz2 @@ -96,7 +96,7 @@ EXAMPLES = r''' format: bz2 - name: Create a bz2 archive of a globbed path, while excluding a glob of dirnames - archive: + community.general.archive: path: - /path/to/foo/* dest: /path/file.tar.bz2 @@ -105,13 +105,13 @@ EXAMPLES = r''' format: bz2 - name: Use gzip to compress a single archive (i.e don't archive it first with tar) - archive: + community.general.archive: path: /path/to/foo/single.file dest: /path/file.gz format: gz - name: Create a tar.gz archive of a single file. - archive: + community.general.archive: path: /path/to/foo/single.file dest: /path/file.tar.gz format: gz diff --git a/plugins/modules/files/ini_file.py b/plugins/modules/files/ini_file.py index 98bc818d81..0beaca9a6a 100644 --- a/plugins/modules/files/ini_file.py +++ b/plugins/modules/files/ini_file.py @@ -87,7 +87,7 @@ author: EXAMPLES = r''' # Before Ansible 2.3, option 'dest' was used instead of 'path' - name: Ensure "fav=lemonade is in section "[drinks]" in specified file - ini_file: + community.general.ini_file: path: /etc/conf section: drinks option: fav @@ -96,7 +96,7 @@ EXAMPLES = r''' backup: yes - name: Ensure "temperature=cold is in section "[drinks]" in specified file - ini_file: + community.general.ini_file: path: /etc/anotherconf section: drinks option: temperature diff --git a/plugins/modules/files/iso_create.py b/plugins/modules/files/iso_create.py index 0bc469a861..6f8e046804 100644 --- a/plugins/modules/files/iso_create.py +++ b/plugins/modules/files/iso_create.py @@ -73,7 +73,7 @@ options: EXAMPLES = r''' - name: Create an ISO file - iso_create: + community.general.iso_create: src_files: - /root/testfile.yml - /root/testfolder @@ -81,7 +81,7 @@ EXAMPLES = r''' interchange_level: 3 - name: Create an ISO file with Rock Ridge extension - iso_create: + community.general.iso_create: src_files: - /root/testfile.yml - /root/testfolder diff --git a/plugins/modules/files/iso_extract.py b/plugins/modules/files/iso_extract.py index f95b7483ba..0c73ac96ee 100644 --- a/plugins/modules/files/iso_extract.py +++ b/plugins/modules/files/iso_extract.py @@ -71,7 +71,7 @@ notes: EXAMPLES = r''' - name: Extract kernel and ramdisk from a LiveCD - iso_extract: + community.general.iso_extract: image: /tmp/rear-test.iso dest: /tmp/virt-rear/ files: diff --git a/plugins/modules/files/read_csv.py b/plugins/modules/files/read_csv.py index f8d73691d3..c5eaee8b69 100644 --- a/plugins/modules/files/read_csv.py +++ b/plugins/modules/files/read_csv.py @@ -76,7 +76,7 @@ EXAMPLES = r''' # Read a CSV file and access user 'dag' - name: Read users from CSV file and return a dictionary - read_csv: + community.general.read_csv: path: users.csv key: name register: users @@ -87,7 +87,7 @@ EXAMPLES = r''' # Read a CSV file and access the first item - name: Read users from CSV file and return a list - read_csv: + community.general.read_csv: path: users.csv register: users delegate_to: localhost @@ -102,7 +102,7 @@ EXAMPLES = r''' # Read a CSV file without headers - name: Read users from CSV file and return a list - read_csv: + community.general.read_csv: path: users.csv fieldnames: name,uid,gid delimiter: ';' diff --git a/plugins/modules/files/xattr.py b/plugins/modules/files/xattr.py index ab03a929a6..8b1449be07 100644 --- a/plugins/modules/files/xattr.py +++ b/plugins/modules/files/xattr.py @@ -60,30 +60,30 @@ author: EXAMPLES = ''' - name: Obtain the extended attributes of /etc/foo.conf - xattr: + community.general.xattr: path: /etc/foo.conf - name: Set the key 'user.foo' to value 'bar' - xattr: + community.general.xattr: path: /etc/foo.conf key: foo value: bar - name: Set the key 'trusted.glusterfs.volume-id' to value '0x817b94343f164f199e5b573b4ea1f914' - xattr: + community.general.xattr: path: /mnt/bricks/brick1 namespace: trusted key: glusterfs.volume-id value: "0x817b94343f164f199e5b573b4ea1f914" - name: Remove the key 'user.foo' - xattr: + community.general.xattr: path: /etc/foo.conf key: foo state: absent - name: Remove the key 'trusted.glusterfs.volume-id' - xattr: + community.general.xattr: path: /mnt/bricks/brick1 namespace: trusted key: glusterfs.volume-id diff --git a/plugins/modules/files/xml.py b/plugins/modules/files/xml.py index 43845c0fab..450d4cd9cb 100644 --- a/plugins/modules/files/xml.py +++ b/plugins/modules/files/xml.py @@ -176,20 +176,20 @@ EXAMPLES = r''' # - name: Remove the 'subjective' attribute of the 'rating' element - xml: + community.general.xml: path: /foo/bar.xml xpath: /business/rating/@subjective state: absent - name: Set the rating to '11' - xml: + community.general.xml: path: /foo/bar.xml xpath: /business/rating value: 11 # Retrieve and display the number of nodes - name: Get count of 'beers' nodes - xml: + community.general.xml: path: /foo/bar.xml xpath: /business/beers/beer count: yes @@ -200,13 +200,13 @@ EXAMPLES = r''' # Example where parent XML nodes are created automatically - name: Add a 'phonenumber' element to the 'business' element - xml: + community.general.xml: path: /foo/bar.xml xpath: /business/phonenumber value: 555-555-1234 - name: Add several more beers to the 'beers' element - xml: + community.general.xml: path: /foo/bar.xml xpath: /business/beers add_children: @@ -215,7 +215,7 @@ EXAMPLES = r''' - beer: Old Curmudgeon - name: Add several more beers to the 'beers' element and add them before the 'Rochefort 10' element - xml: + community.general.xml: path: /foo/bar.xml xpath: '/business/beers/beer[text()="Rochefort 10"]' insertbefore: yes @@ -226,17 +226,17 @@ EXAMPLES = r''' # NOTE: The 'state' defaults to 'present' and 'value' defaults to 'null' for elements - name: Add a 'validxhtml' element to the 'website' element - xml: + community.general.xml: path: /foo/bar.xml xpath: /business/website/validxhtml - name: Add an empty 'validatedon' attribute to the 'validxhtml' element - xml: + community.general.xml: path: /foo/bar.xml xpath: /business/website/validxhtml/@validatedon - name: Add or modify an attribute, add element if needed - xml: + community.general.xml: path: /foo/bar.xml xpath: /business/website/validxhtml attribute: validatedon @@ -244,7 +244,7 @@ EXAMPLES = r''' # How to read an attribute value and access it in Ansible - name: Read an element's attribute values - xml: + community.general.xml: path: /foo/bar.xml xpath: /business/website/validxhtml content: attribute @@ -255,13 +255,13 @@ EXAMPLES = r''' var: xmlresp.matches[0].validxhtml.validatedon - name: Remove all children from the 'website' element (option 1) - xml: + community.general.xml: path: /foo/bar.xml xpath: /business/website/* state: absent - name: Remove all children from the 'website' element (option 2) - xml: + community.general.xml: path: /foo/bar.xml xpath: /business/website children: [] @@ -276,7 +276,7 @@ EXAMPLES = r''' # NOTE: There is the prefix 'x' in front of the 'bar' element, too. - name: Set namespaced '/x:foo/x:bar/y:baz/@z:my_namespaced_attribute' to 'false' - xml: + community.general.xml: path: foo.xml xpath: /x:foo/x:bar/y:baz namespaces: diff --git a/plugins/modules/identity/ipa/ipa_config.py b/plugins/modules/identity/ipa/ipa_config.py index 1e857ffc3a..756b6cf9d5 100644 --- a/plugins/modules/identity/ipa/ipa_config.py +++ b/plugins/modules/identity/ipa/ipa_config.py @@ -29,14 +29,14 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Ensure the default login shell is bash. - ipa_config: + community.general.ipa_config: ipadefaultloginshell: /bin/bash ipa_host: localhost ipa_user: admin ipa_pass: supersecret - name: Ensure the default e-mail domain is ansible.com. - ipa_config: + community.general.ipa_config: ipadefaultemaildomain: ansible.com ipa_host: localhost ipa_user: admin diff --git a/plugins/modules/identity/ipa/ipa_dnsrecord.py b/plugins/modules/identity/ipa/ipa_dnsrecord.py index 511dc87392..635bf2ff91 100644 --- a/plugins/modules/identity/ipa/ipa_dnsrecord.py +++ b/plugins/modules/identity/ipa/ipa_dnsrecord.py @@ -68,7 +68,7 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Ensure dns record is present - ipa_dnsrecord: + community.general.ipa_dnsrecord: ipa_host: spider.example.com ipa_pass: Passw0rd! state: present @@ -78,7 +78,7 @@ EXAMPLES = r''' record_value: '::1' - name: Ensure that dns record exists with a TTL - ipa_dnsrecord: + community.general.ipa_dnsrecord: name: host02 zone_name: example.com record_type: 'AAAA' @@ -89,7 +89,7 @@ EXAMPLES = r''' state: present - name: Ensure a PTR record is present - ipa_dnsrecord: + community.general.ipa_dnsrecord: ipa_host: spider.example.com ipa_pass: Passw0rd! state: present @@ -99,7 +99,7 @@ EXAMPLES = r''' record_value: 'internal.ipa.example.com' - name: Ensure a TXT record is present - ipa_dnsrecord: + community.general.ipa_dnsrecord: ipa_host: spider.example.com ipa_pass: Passw0rd! state: present @@ -109,7 +109,7 @@ EXAMPLES = r''' record_value: 'EXAMPLE.COM' - name: Ensure an SRV record is present - ipa_dnsrecord: + community.general.ipa_dnsrecord: ipa_host: spider.example.com ipa_pass: Passw0rd! state: present @@ -119,7 +119,7 @@ EXAMPLES = r''' record_value: '10 50 88 ipa.example.com' - name: Ensure an MX record is present - ipa_dnsrecord: + community.general.ipa_dnsrecord: ipa_host: spider.example.com ipa_pass: Passw0rd! state: present @@ -129,7 +129,7 @@ EXAMPLES = r''' record_value: '1 mailserver.example.com' - name: Ensure that dns record is removed - ipa_dnsrecord: + community.general.ipa_dnsrecord: name: host01 zone_name: example.com record_type: 'AAAA' diff --git a/plugins/modules/identity/ipa/ipa_dnszone.py b/plugins/modules/identity/ipa/ipa_dnszone.py index 3bc4854372..1536866c29 100644 --- a/plugins/modules/identity/ipa/ipa_dnszone.py +++ b/plugins/modules/identity/ipa/ipa_dnszone.py @@ -39,14 +39,14 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Ensure dns zone is present - ipa_dnszone: + community.general.ipa_dnszone: ipa_host: spider.example.com ipa_pass: Passw0rd! state: present zone_name: example.com - name: Ensure dns zone is present and is dynamic update - ipa_dnszone: + community.general.ipa_dnszone: ipa_host: spider.example.com ipa_pass: Passw0rd! state: present @@ -54,7 +54,7 @@ EXAMPLES = r''' dynamicupdate: true - name: Ensure that dns zone is removed - ipa_dnszone: + community.general.ipa_dnszone: zone_name: example.com ipa_host: localhost ipa_user: admin diff --git a/plugins/modules/identity/ipa/ipa_group.py b/plugins/modules/identity/ipa/ipa_group.py index 9f592f9958..84ff443a59 100644 --- a/plugins/modules/identity/ipa/ipa_group.py +++ b/plugins/modules/identity/ipa/ipa_group.py @@ -67,7 +67,7 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Ensure group is present - ipa_group: + community.general.ipa_group: name: oinstall gidnumber: '54321' state: present @@ -76,7 +76,7 @@ EXAMPLES = r''' ipa_pass: topsecret - name: Ensure that groups sysops and appops are assigned to ops but no other group - ipa_group: + community.general.ipa_group: name: ops group: - sysops @@ -86,7 +86,7 @@ EXAMPLES = r''' ipa_pass: topsecret - name: Ensure that users linus and larry are assign to the group, but no other user - ipa_group: + community.general.ipa_group: name: sysops user: - linus @@ -96,7 +96,7 @@ EXAMPLES = r''' ipa_pass: topsecret - name: Ensure group is absent - ipa_group: + community.general.ipa_group: name: sysops state: absent ipa_host: ipa.example.com diff --git a/plugins/modules/identity/ipa/ipa_hbacrule.py b/plugins/modules/identity/ipa/ipa_hbacrule.py index 7599ab5d9a..b579d72a3a 100644 --- a/plugins/modules/identity/ipa/ipa_hbacrule.py +++ b/plugins/modules/identity/ipa/ipa_hbacrule.py @@ -108,7 +108,7 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Ensure rule to allow all users to access any host from any host - ipa_hbacrule: + community.general.ipa_hbacrule: name: allow_all description: Allow all users to access any host from any host hostcategory: all @@ -120,7 +120,7 @@ EXAMPLES = r''' ipa_pass: topsecret - name: Ensure rule with certain limitations - ipa_hbacrule: + community.general.ipa_hbacrule: name: allow_all_developers_access_to_db description: Allow all developers to access any database from any host hostgroup: @@ -133,7 +133,7 @@ EXAMPLES = r''' ipa_pass: topsecret - name: Ensure rule is absent - ipa_hbacrule: + community.general.ipa_hbacrule: name: rule_to_be_deleted state: absent ipa_host: ipa.example.com diff --git a/plugins/modules/identity/ipa/ipa_host.py b/plugins/modules/identity/ipa/ipa_host.py index 5163d0c2c6..5d26f01f65 100644 --- a/plugins/modules/identity/ipa/ipa_host.py +++ b/plugins/modules/identity/ipa/ipa_host.py @@ -89,7 +89,7 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Ensure host is present - ipa_host: + community.general.ipa_host: name: host01.example.com description: Example host ip_address: 192.168.0.123 @@ -100,51 +100,51 @@ EXAMPLES = r''' - "08:00:27:E3:B1:2D" - "52:54:00:BD:97:1E" state: present - ipa_host: ipa.example.com + community.general.ipa_host: ipa.example.com ipa_user: admin ipa_pass: topsecret - name: Generate a random password for bulk enrolment - ipa_host: + community.general.ipa_host: name: host01.example.com description: Example host ip_address: 192.168.0.123 state: present - ipa_host: ipa.example.com + community.general.ipa_host: ipa.example.com ipa_user: admin ipa_pass: topsecret validate_certs: False random_password: True - name: Ensure host is disabled - ipa_host: + community.general.ipa_host: name: host01.example.com state: disabled - ipa_host: ipa.example.com + community.general.ipa_host: ipa.example.com ipa_user: admin ipa_pass: topsecret - name: Ensure that all user certificates are removed - ipa_host: + community.general.ipa_host: name: host01.example.com user_certificate: [] - ipa_host: ipa.example.com + community.general.ipa_host: ipa.example.com ipa_user: admin ipa_pass: topsecret - name: Ensure host is absent - ipa_host: + community.general.ipa_host: name: host01.example.com state: absent - ipa_host: ipa.example.com + community.general.ipa_host: ipa.example.com ipa_user: admin ipa_pass: topsecret - name: Ensure host and its DNS record is absent - ipa_host: + community.general.ipa_host: name: host01.example.com state: absent - ipa_host: ipa.example.com + community.general.ipa_host: ipa.example.com ipa_user: admin ipa_pass: topsecret update_dns: True diff --git a/plugins/modules/identity/ipa/ipa_hostgroup.py b/plugins/modules/identity/ipa/ipa_hostgroup.py index 953b0e40ae..ae1f1a6b33 100644 --- a/plugins/modules/identity/ipa/ipa_hostgroup.py +++ b/plugins/modules/identity/ipa/ipa_hostgroup.py @@ -54,7 +54,7 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Ensure host-group databases is present - ipa_hostgroup: + community.general.ipa_hostgroup: name: databases state: present host: @@ -67,7 +67,7 @@ EXAMPLES = r''' ipa_pass: topsecret - name: Ensure host-group databases is absent - ipa_hostgroup: + community.general.ipa_hostgroup: name: databases state: absent ipa_host: ipa.example.com diff --git a/plugins/modules/identity/ipa/ipa_role.py b/plugins/modules/identity/ipa/ipa_role.py index 862cd889f6..589a6d5efe 100644 --- a/plugins/modules/identity/ipa/ipa_role.py +++ b/plugins/modules/identity/ipa/ipa_role.py @@ -84,7 +84,7 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Ensure role is present - ipa_role: + community.general.ipa_role: name: dba description: Database Administrators state: present @@ -96,7 +96,7 @@ EXAMPLES = r''' ipa_pass: topsecret - name: Ensure role with certain details - ipa_role: + community.general.ipa_role: name: another-role description: Just another role group: @@ -112,7 +112,7 @@ EXAMPLES = r''' - service01 - name: Ensure role is absent - ipa_role: + community.general.ipa_role: name: dba state: absent ipa_host: ipa.example.com diff --git a/plugins/modules/identity/ipa/ipa_service.py b/plugins/modules/identity/ipa/ipa_service.py index cb98dec0e8..c13f7ab68f 100644 --- a/plugins/modules/identity/ipa/ipa_service.py +++ b/plugins/modules/identity/ipa/ipa_service.py @@ -45,7 +45,7 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Ensure service is present - ipa_service: + community.general.ipa_service: name: http/host01.example.com state: present ipa_host: ipa.example.com @@ -53,7 +53,7 @@ EXAMPLES = r''' ipa_pass: topsecret - name: Ensure service is absent - ipa_service: + community.general.ipa_service: name: http/host01.example.com state: absent ipa_host: ipa.example.com @@ -61,7 +61,7 @@ EXAMPLES = r''' ipa_pass: topsecret - name: Changing Managing hosts list - ipa_service: + community.general.ipa_service: name: http/host01.example.com host: - host01.example.com diff --git a/plugins/modules/identity/ipa/ipa_subca.py b/plugins/modules/identity/ipa/ipa_subca.py index 849cc75754..218951a071 100644 --- a/plugins/modules/identity/ipa/ipa_subca.py +++ b/plugins/modules/identity/ipa/ipa_subca.py @@ -44,7 +44,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Ensure IPA Sub CA is present - ipa_subca: + community.general.ipa_subca: ipa_host: spider.example.com ipa_pass: Passw0rd! state: present @@ -53,14 +53,14 @@ EXAMPLES = ''' subca_desc: Ansible Sub CA - name: Ensure that IPA Sub CA is removed - ipa_subca: + community.general.ipa_subca: ipa_host: spider.example.com ipa_pass: Passw0rd! state: absent subca_name: AnsibleSubCA1 - name: Ensure that IPA Sub CA is disabled - ipa_subca: + community.general.ipa_subca: ipa_host: spider.example.com ipa_pass: Passw0rd! state: disable diff --git a/plugins/modules/identity/ipa/ipa_sudocmd.py b/plugins/modules/identity/ipa/ipa_sudocmd.py index c093cbf3cd..aa09e0e44b 100644 --- a/plugins/modules/identity/ipa/ipa_sudocmd.py +++ b/plugins/modules/identity/ipa/ipa_sudocmd.py @@ -36,7 +36,7 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Ensure sudo command exists - ipa_sudocmd: + community.general.ipa_sudocmd: name: su description: Allow to run su via sudo ipa_host: ipa.example.com @@ -44,7 +44,7 @@ EXAMPLES = r''' ipa_pass: topsecret - name: Ensure sudo command does not exist - ipa_sudocmd: + community.general.ipa_sudocmd: name: su state: absent ipa_host: ipa.example.com diff --git a/plugins/modules/identity/ipa/ipa_sudocmdgroup.py b/plugins/modules/identity/ipa/ipa_sudocmdgroup.py index 5d3123c500..96eb655930 100644 --- a/plugins/modules/identity/ipa/ipa_sudocmdgroup.py +++ b/plugins/modules/identity/ipa/ipa_sudocmdgroup.py @@ -43,7 +43,7 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Ensure sudo command group exists - ipa_sudocmdgroup: + community.general.ipa_sudocmdgroup: name: group01 description: Group of important commands sudocmd: @@ -53,7 +53,7 @@ EXAMPLES = r''' ipa_pass: topsecret - name: Ensure sudo command group does not exist - ipa_sudocmdgroup: + community.general.ipa_sudocmdgroup: name: group01 state: absent ipa_host: ipa.example.com diff --git a/plugins/modules/identity/ipa/ipa_sudorule.py b/plugins/modules/identity/ipa/ipa_sudorule.py index cb4c94b26d..9a0259bbe9 100644 --- a/plugins/modules/identity/ipa/ipa_sudorule.py +++ b/plugins/modules/identity/ipa/ipa_sudorule.py @@ -106,7 +106,7 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Ensure sudo rule is present that's allows all every body to execute any command on any host without being asked for a password. - ipa_sudorule: + community.general.ipa_sudorule: name: sudo_all_nopasswd cmdcategory: all description: Allow to run every command with sudo without password @@ -119,7 +119,7 @@ EXAMPLES = r''' ipa_pass: topsecret - name: Ensure user group developers can run every command on host group db-server as well as on host db01.example.com. - ipa_sudorule: + community.general.ipa_sudorule: name: sudo_dev_dbserver description: Allow developers to run every command with sudo on all database server cmdcategory: all diff --git a/plugins/modules/identity/ipa/ipa_user.py b/plugins/modules/identity/ipa/ipa_user.py index 3b7048337d..32b4bd0b6f 100644 --- a/plugins/modules/identity/ipa/ipa_user.py +++ b/plugins/modules/identity/ipa/ipa_user.py @@ -100,7 +100,7 @@ requirements: EXAMPLES = r''' - name: Ensure pinky is present and always reset password - ipa_user: + community.general.ipa_user: name: pinky state: present krbpasswordexpiration: 20200119235959 @@ -121,7 +121,7 @@ EXAMPLES = r''' ipa_pass: topsecret - name: Ensure brain is absent - ipa_user: + community.general.ipa_user: name: brain state: absent ipa_host: ipa.example.com @@ -129,7 +129,7 @@ EXAMPLES = r''' ipa_pass: topsecret - name: Ensure pinky is present but don't reset password if already exists - ipa_user: + community.general.ipa_user: name: pinky state: present givenname: Pinky diff --git a/plugins/modules/identity/ipa/ipa_vault.py b/plugins/modules/identity/ipa/ipa_vault.py index 655acb124f..3376b8c4e7 100644 --- a/plugins/modules/identity/ipa/ipa_vault.py +++ b/plugins/modules/identity/ipa/ipa_vault.py @@ -79,7 +79,7 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Ensure vault is present - ipa_vault: + community.general.ipa_vault: name: vault01 vault_type: standard user: user01 @@ -89,7 +89,7 @@ EXAMPLES = r''' validate_certs: false - name: Ensure vault is present for Admin user - ipa_vault: + community.general.ipa_vault: name: vault01 vault_type: standard ipa_host: ipa.example.com @@ -97,7 +97,7 @@ EXAMPLES = r''' ipa_pass: topsecret - name: Ensure vault is absent - ipa_vault: + community.general.ipa_vault: name: vault01 vault_type: standard user: user01 @@ -107,7 +107,7 @@ EXAMPLES = r''' ipa_pass: topsecret - name: Modify vault if already exists - ipa_vault: + community.general.ipa_vault: name: vault01 vault_type: standard description: "Vault for test" @@ -117,7 +117,7 @@ EXAMPLES = r''' replace: True - name: Get vault info if already exists - ipa_vault: + community.general.ipa_vault: name: vault01 ipa_host: ipa.example.com ipa_user: admin diff --git a/plugins/modules/identity/keycloak/keycloak_group.py b/plugins/modules/identity/keycloak/keycloak_group.py index 02b2c69de3..45b5c2905b 100644 --- a/plugins/modules/identity/keycloak/keycloak_group.py +++ b/plugins/modules/identity/keycloak/keycloak_group.py @@ -82,7 +82,7 @@ author: EXAMPLES = ''' - name: Create a Keycloak group - keycloak_group: + community.general.keycloak_group: name: my-new-kc-group realm: MyCustomRealm state: present @@ -94,7 +94,7 @@ EXAMPLES = ''' delegate_to: localhost - name: Delete a keycloak group - keycloak_group: + community.general.keycloak_group: id: '9d59aa76-2755-48c6-b1af-beb70a82c3cd' state: absent realm: MyCustomRealm @@ -106,7 +106,7 @@ EXAMPLES = ''' delegate_to: localhost - name: Delete a Keycloak group based on name - keycloak_group: + community.general.keycloak_group: name: my-group-for-deletion state: absent auth_client_id: admin-cli @@ -117,7 +117,7 @@ EXAMPLES = ''' delegate_to: localhost - name: Update the name of a Keycloak group - keycloak_group: + community.general.keycloak_group: id: '9d59aa76-2755-48c6-b1af-beb70a82c3cd' name: an-updated-kc-group-name state: present @@ -129,7 +129,7 @@ EXAMPLES = ''' delegate_to: localhost - name: Create a keycloak group with some custom attributes - keycloak_group: + community.general.keycloak_group: auth_client_id: admin-cli auth_keycloak_url: https://auth.example.com/auth auth_realm: master diff --git a/plugins/modules/identity/onepassword_info.py b/plugins/modules/identity/onepassword_info.py index dfaef92607..96c07dd044 100644 --- a/plugins/modules/identity/onepassword_info.py +++ b/plugins/modules/identity/onepassword_info.py @@ -99,7 +99,7 @@ options: EXAMPLES = ''' # Gather secrets from 1Password, assuming there is a 'password' field: - name: Get a password - onepassword_info: + community.general.onepassword_info: search_terms: My 1Password item delegate_to: localhost register: my_1password_item @@ -107,7 +107,7 @@ EXAMPLES = ''' # Gather secrets from 1Password, with more advanced search terms: - name: Get a password - onepassword_info: + community.general.onepassword_info: search_terms: - name: My 1Password item field: Custom field name # optional, defaults to 'password' @@ -121,7 +121,7 @@ EXAMPLES = ''' # fields. In the first 'password' is fetched, as a field name is not specified (default behaviour) and in the # second, 'Custom field name' is fetched, as that is specified explicitly. - name: Get a password - onepassword_info: + community.general.onepassword_info: search_terms: - My 1Password item # 'name' is optional when passing a simple string... - name: My Other 1Password item # ...but it can also be set for consistency diff --git a/plugins/modules/monitoring/airbrake_deployment.py b/plugins/modules/monitoring/airbrake_deployment.py index 83649d88b8..3e7938bfba 100644 --- a/plugins/modules/monitoring/airbrake_deployment.py +++ b/plugins/modules/monitoring/airbrake_deployment.py @@ -81,7 +81,7 @@ requirements: [] EXAMPLES = ''' - name: Notify airbrake about an app deployment - airbrake_deployment: + community.general.airbrake_deployment: project_id: '12345' project_key: 'AAAAAA' environment: staging @@ -89,7 +89,7 @@ EXAMPLES = ''' revision: '4.2' - name: Notify airbrake about an app deployment, using git hash as revision - airbrake_deployment: + community.general.airbrake_deployment: project_id: '12345' project_key: 'AAAAAA' environment: staging diff --git a/plugins/modules/monitoring/bigpanda.py b/plugins/modules/monitoring/bigpanda.py index 3df6bfb22e..2cb9ed1b12 100644 --- a/plugins/modules/monitoring/bigpanda.py +++ b/plugins/modules/monitoring/bigpanda.py @@ -76,14 +76,14 @@ requirements: [ ] EXAMPLES = ''' - name: Notify BigPanda about a deployment - bigpanda: + community.general.bigpanda: component: myapp version: '1.3' token: '{{ bigpanda_token }}' state: started - name: Notify BigPanda about a deployment - bigpanda: + community.general.bigpanda: component: myapp version: '1.3' token: '{{ bigpanda_token }}' @@ -91,7 +91,7 @@ EXAMPLES = ''' # If outside servers aren't reachable from your machine, use delegate_to and override hosts: - name: Notify BigPanda about a deployment - bigpanda: + community.general.bigpanda: component: myapp version: '1.3' token: '{{ bigpanda_token }}' @@ -101,7 +101,7 @@ EXAMPLES = ''' register: deployment - name: Notify BigPanda about a deployment - bigpanda: + community.general.bigpanda: component: '{{ deployment.component }}' version: '{{ deployment.version }}' token: '{{ deployment.token }}' diff --git a/plugins/modules/monitoring/circonus_annotation.py b/plugins/modules/monitoring/circonus_annotation.py index c6319cbe43..5963f5d200 100644 --- a/plugins/modules/monitoring/circonus_annotation.py +++ b/plugins/modules/monitoring/circonus_annotation.py @@ -51,14 +51,14 @@ options: ''' EXAMPLES = ''' - name: Create a simple annotation event with a source, defaults to start and end time of now - circonus_annotation: + community.general.circonus_annotation: api_key: XXXXXXXXXXXXXXXXX title: App Config Change description: This is a detailed description of the config change category: This category groups like annotations - name: Create an annotation with a duration of 5 minutes and a default start time of now - circonus_annotation: + community.general.circonus_annotation: api_key: XXXXXXXXXXXXXXXXX title: App Config Change description: This is a detailed description of the config change @@ -66,7 +66,7 @@ EXAMPLES = ''' duration: 300 - name: Create an annotation with a start_time and end_time - circonus_annotation: + community.general.circonus_annotation: api_key: XXXXXXXXXXXXXXXXX title: App Config Change description: This is a detailed description of the config change diff --git a/plugins/modules/monitoring/datadog/datadog_event.py b/plugins/modules/monitoring/datadog/datadog_event.py index 037bed887e..0e0de754f1 100644 --- a/plugins/modules/monitoring/datadog/datadog_event.py +++ b/plugins/modules/monitoring/datadog/datadog_event.py @@ -65,7 +65,7 @@ options: EXAMPLES = ''' - name: Post an event with low priority - datadog_event: + community.general.datadog_event: title: Testing from ansible text: Test priority: low @@ -73,7 +73,7 @@ EXAMPLES = ''' app_key: j4JyCYfefWHhgFgiZUqRm63AXHNZQyPGBfJtAzmN - name: Post an event with several tags - datadog_event: + community.general.datadog_event: title: Testing from ansible text: Test api_key: 9775a026f1ca7d1c6c5af9d94d9595a4 diff --git a/plugins/modules/monitoring/datadog/datadog_monitor.py b/plugins/modules/monitoring/datadog/datadog_monitor.py index a0e95292be..008b305f88 100644 --- a/plugins/modules/monitoring/datadog/datadog_monitor.py +++ b/plugins/modules/monitoring/datadog/datadog_monitor.py @@ -139,7 +139,7 @@ options: EXAMPLES = ''' - name: Create a metric monitor - datadog_monitor: + community.general.datadog_monitor: type: "metric alert" name: "Test monitor" state: "present" @@ -149,14 +149,14 @@ EXAMPLES = ''' app_key: "87ce4a24b5553d2e482ea8a8500e71b8ad4554ff" - name: Deletes a monitor - datadog_monitor: + community.general.datadog_monitor: name: "Test monitor" state: "absent" api_key: "9775a026f1ca7d1c6c5af9d94d9595a4" app_key: "87ce4a24b5553d2e482ea8a8500e71b8ad4554ff" - name: Mutes a monitor - datadog_monitor: + community.general.datadog_monitor: name: "Test monitor" state: "mute" silenced: '{"*":None}' @@ -164,14 +164,14 @@ EXAMPLES = ''' app_key: "87ce4a24b5553d2e482ea8a8500e71b8ad4554ff" - name: Unmutes a monitor - datadog_monitor: + community.general.datadog_monitor: name: "Test monitor" state: "unmute" api_key: "9775a026f1ca7d1c6c5af9d94d9595a4" app_key: "87ce4a24b5553d2e482ea8a8500e71b8ad4554ff" - name: Use datadoghq.eu platform instead of datadoghq.com - datadog_monitor: + community.general.datadog_monitor: name: "Test monitor" state: "absent" api_host: https://api.datadoghq.eu diff --git a/plugins/modules/monitoring/honeybadger_deployment.py b/plugins/modules/monitoring/honeybadger_deployment.py index 1075095ea5..e926fb17d4 100644 --- a/plugins/modules/monitoring/honeybadger_deployment.py +++ b/plugins/modules/monitoring/honeybadger_deployment.py @@ -47,7 +47,7 @@ options: EXAMPLES = ''' - name: Notify Honeybadger.io about an app deployment - honeybadger_deployment: + community.general.honeybadger_deployment: token: AAAAAA environment: staging user: ansible diff --git a/plugins/modules/monitoring/icinga2_feature.py b/plugins/modules/monitoring/icinga2_feature.py index 24a9874794..f1d1e18a8a 100644 --- a/plugins/modules/monitoring/icinga2_feature.py +++ b/plugins/modules/monitoring/icinga2_feature.py @@ -37,12 +37,12 @@ options: EXAMPLES = ''' - name: Enable ido-pgsql feature - icinga2_feature: + community.general.icinga2_feature: name: ido-pgsql state: present - name: Disable api feature - icinga2_feature: + community.general.icinga2_feature: name: api state: absent ''' diff --git a/plugins/modules/monitoring/icinga2_host.py b/plugins/modules/monitoring/icinga2_host.py index 5d3bb69659..6de1fe897b 100644 --- a/plugins/modules/monitoring/icinga2_host.py +++ b/plugins/modules/monitoring/icinga2_host.py @@ -95,7 +95,7 @@ options: EXAMPLES = ''' - name: Add host to icinga - icinga2_host: + community.general.icinga2_host: url: "https://icinga2.example.com" url_username: "ansible" url_password: "a_secret" diff --git a/plugins/modules/monitoring/librato_annotation.py b/plugins/modules/monitoring/librato_annotation.py index aae4b4268b..f3958ca88e 100644 --- a/plugins/modules/monitoring/librato_annotation.py +++ b/plugins/modules/monitoring/librato_annotation.py @@ -61,7 +61,7 @@ options: EXAMPLES = ''' - name: Create a simple annotation event with a source - librato_annotation: + community.general.librato_annotation: user: user@example.com api_key: XXXXXXXXXXXXXXXXX title: App Config Change @@ -69,7 +69,7 @@ EXAMPLES = ''' description: This is a detailed description of the config change - name: Create an annotation that includes a link - librato_annotation: + community.general.librato_annotation: user: user@example.com api_key: XXXXXXXXXXXXXXXXXX name: code.deploy @@ -80,7 +80,7 @@ EXAMPLES = ''' href: http://www.example.com/deploy - name: Create an annotation with a start_time and end_time - librato_annotation: + community.general.librato_annotation: user: user@example.com api_key: XXXXXXXXXXXXXXXXXX name: maintenance diff --git a/plugins/modules/monitoring/logentries.py b/plugins/modules/monitoring/logentries.py index 12627780b1..35f27810e5 100644 --- a/plugins/modules/monitoring/logentries.py +++ b/plugins/modules/monitoring/logentries.py @@ -40,13 +40,13 @@ notes: ''' EXAMPLES = ''' - name: Track nginx logs - logentries: + community.general.logentries: path: /var/log/nginx/access.log state: present name: nginx-access-log - name: Stop tracking nginx logs - logentries: + community.general.logentries: path: /var/log/nginx/error.log state: absent ''' diff --git a/plugins/modules/monitoring/logstash_plugin.py b/plugins/modules/monitoring/logstash_plugin.py index d2e8a3c787..1eb424ee4b 100644 --- a/plugins/modules/monitoring/logstash_plugin.py +++ b/plugins/modules/monitoring/logstash_plugin.py @@ -42,23 +42,23 @@ options: EXAMPLES = ''' - name: Install Logstash beats input plugin - logstash_plugin: + community.general.logstash_plugin: state: present name: logstash-input-beats - name: Install specific version of a plugin - logstash_plugin: + community.general.logstash_plugin: state: present name: logstash-input-syslog version: '3.2.0' - name: Uninstall Logstash plugin - logstash_plugin: + community.general.logstash_plugin: state: absent name: logstash-filter-multiline - name: Install Logstash plugin with alternate heap size - logstash_plugin: + community.general.logstash_plugin: state: present name: logstash-input-beats environment: diff --git a/plugins/modules/monitoring/monit.py b/plugins/modules/monitoring/monit.py index 13c0abc6b7..a7add43b1f 100644 --- a/plugins/modules/monitoring/monit.py +++ b/plugins/modules/monitoring/monit.py @@ -35,7 +35,7 @@ author: "Darryl Stoflet (@dstoflet)" EXAMPLES = ''' - name: Manage the state of program httpd to be in started state - monit: + community.general.monit: name: httpd state: started ''' diff --git a/plugins/modules/monitoring/nagios.py b/plugins/modules/monitoring/nagios.py index 01f0024f82..af1a086673 100644 --- a/plugins/modules/monitoring/nagios.py +++ b/plugins/modules/monitoring/nagios.py @@ -87,21 +87,21 @@ author: "Tim Bielawa (@tbielawa)" EXAMPLES = ''' - name: Set 30 minutes of apache downtime - nagios: + community.general.nagios: action: downtime minutes: 30 service: httpd host: '{{ inventory_hostname }}' - name: Schedule an hour of HOST downtime - nagios: + community.general.nagios: action: downtime minutes: 60 service: host host: '{{ inventory_hostname }}' - name: Schedule an hour of HOST downtime starting at 2019-04-23T02:00:00+00:00 - nagios: + community.general.nagios: action: downtime start: 1555984800 minutes: 60 @@ -109,7 +109,7 @@ EXAMPLES = ''' host: '{{ inventory_hostname }}' - name: Schedule an hour of HOST downtime, with a comment describing the reason - nagios: + community.general.nagios: action: downtime minutes: 60 service: host @@ -117,83 +117,83 @@ EXAMPLES = ''' comment: Rebuilding machine - name: Schedule downtime for ALL services on HOST - nagios: + community.general.nagios: action: downtime minutes: 45 service: all host: '{{ inventory_hostname }}' - name: Schedule downtime for a few services - nagios: + community.general.nagios: action: downtime services: frob,foobar,qeuz host: '{{ inventory_hostname }}' - name: Set 30 minutes downtime for all services in servicegroup foo - nagios: + community.general.nagios: action: servicegroup_service_downtime minutes: 30 servicegroup: foo host: '{{ inventory_hostname }}' - name: Set 30 minutes downtime for all host in servicegroup foo - nagios: + community.general.nagios: action: servicegroup_host_downtime minutes: 30 servicegroup: foo host: '{{ inventory_hostname }}' - name: Delete all downtime for a given host - nagios: + community.general.nagios: action: delete_downtime host: '{{ inventory_hostname }}' service: all - name: Delete all downtime for HOST with a particular comment - nagios: + community.general.nagios: action: delete_downtime host: '{{ inventory_hostname }}' service: host comment: Planned maintenance - name: Enable SMART disk alerts - nagios: + community.general.nagios: action: enable_alerts service: smart host: '{{ inventory_hostname }}' - name: Disable httpd and nfs alerts - nagios: + community.general.nagios: action: disable_alerts service: httpd,nfs host: '{{ inventory_hostname }}' - name: Disable HOST alerts - nagios: + community.general.nagios: action: disable_alerts service: host host: '{{ inventory_hostname }}' - name: Silence ALL alerts - nagios: + community.general.nagios: action: silence host: '{{ inventory_hostname }}' - name: Unsilence all alerts - nagios: + community.general.nagios: action: unsilence host: '{{ inventory_hostname }}' - name: Shut up nagios - nagios: + community.general.nagios: action: silence_nagios - name: Annoy me negios - nagios: + community.general.nagios: action: unsilence_nagios - name: Command something - nagios: + community.general.nagios: action: command command: DISABLE_FAILURE_PREDICTION ''' diff --git a/plugins/modules/monitoring/newrelic_deployment.py b/plugins/modules/monitoring/newrelic_deployment.py index fb608be80c..f3ba456a09 100644 --- a/plugins/modules/monitoring/newrelic_deployment.py +++ b/plugins/modules/monitoring/newrelic_deployment.py @@ -65,7 +65,7 @@ requirements: [] EXAMPLES = ''' - name: Notify newrelic about an app deployment - newrelic_deployment: + community.general.newrelic_deployment: token: AAAAAA app_name: myapp user: ansible deployment diff --git a/plugins/modules/monitoring/pagerduty.py b/plugins/modules/monitoring/pagerduty.py index 3725f3f6fd..4cb3d0ee50 100644 --- a/plugins/modules/monitoring/pagerduty.py +++ b/plugins/modules/monitoring/pagerduty.py @@ -69,13 +69,13 @@ options: EXAMPLES = ''' - name: List ongoing maintenance windows using a token - pagerduty: + community.general.pagerduty: name: companyabc token: xxxxxxxxxxxxxx state: ongoing - name: Create a 1 hour maintenance window for service FOO123 - pagerduty: + community.general.pagerduty: name: companyabc user: example@example.com token: yourtoken @@ -83,7 +83,7 @@ EXAMPLES = ''' service: FOO123 - name: Create a 5 minute maintenance window for service FOO123 - pagerduty: + community.general.pagerduty: name: companyabc token: xxxxxxxxxxxxxx hours: 0 @@ -93,7 +93,7 @@ EXAMPLES = ''' - name: Create a 4 hour maintenance window for service FOO123 with the description "deployment" - pagerduty: + community.general.pagerduty: name: companyabc user: example@example.com state: running @@ -103,7 +103,7 @@ EXAMPLES = ''' register: pd_window - name: Delete the previous maintenance window - pagerduty: + community.general.pagerduty: name: companyabc user: example@example.com state: absent @@ -112,14 +112,14 @@ EXAMPLES = ''' # Delete a maintenance window from a separate playbook than its creation, # and if it is the only existing maintenance window - name: Check - pagerduty: + community.general.pagerduty: requester_id: XXXXXXX token: yourtoken state: ongoing register: pd_window - name: Delete - pagerduty: + community.general.pagerduty: requester_id: XXXXXXX token: yourtoken state: absent diff --git a/plugins/modules/monitoring/pagerduty_alert.py b/plugins/modules/monitoring/pagerduty_alert.py index c09c372fd8..49b205c814 100644 --- a/plugins/modules/monitoring/pagerduty_alert.py +++ b/plugins/modules/monitoring/pagerduty_alert.py @@ -74,7 +74,7 @@ options: EXAMPLES = ''' - name: Trigger an incident with just the basic options - pagerduty_alert: + community.general.pagerduty_alert: name: companyabc integration_key: xxx api_key: yourapikey @@ -83,7 +83,7 @@ EXAMPLES = ''' desc: problem that led to this trigger - name: Trigger an incident with more options - pagerduty_alert: + community.general.pagerduty_alert: integration_key: xxx api_key: yourapikey service_id: PDservice @@ -94,7 +94,7 @@ EXAMPLES = ''' client_url: http://service.example.com - name: Acknowledge an incident based on incident_key - pagerduty_alert: + community.general.pagerduty_alert: integration_key: xxx api_key: yourapikey service_id: PDservice @@ -103,7 +103,7 @@ EXAMPLES = ''' desc: "some text for incident's log" - name: Resolve an incident based on incident_key - pagerduty_alert: + community.general.pagerduty_alert: integration_key: xxx api_key: yourapikey service_id: PDservice diff --git a/plugins/modules/monitoring/pingdom.py b/plugins/modules/monitoring/pingdom.py index 556045f839..594a2eda0d 100644 --- a/plugins/modules/monitoring/pingdom.py +++ b/plugins/modules/monitoring/pingdom.py @@ -46,7 +46,7 @@ notes: EXAMPLES = ''' - name: Pause the check with the ID of 12345 - pingdom: + community.general.pingdom: uid: example@example.com passwd: password123 key: apipassword123 @@ -54,7 +54,7 @@ EXAMPLES = ''' state: paused - name: Unpause the check with the ID of 12345 - pingdom: + community.general.pingdom: uid: example@example.com passwd: password123 key: apipassword123 diff --git a/plugins/modules/monitoring/rollbar_deployment.py b/plugins/modules/monitoring/rollbar_deployment.py index 2b99e7c30a..f0996a8eb7 100644 --- a/plugins/modules/monitoring/rollbar_deployment.py +++ b/plugins/modules/monitoring/rollbar_deployment.py @@ -58,7 +58,7 @@ options: EXAMPLES = ''' - name: Rollbar deployment notification - rollbar_deployment: + community.general.rollbar_deployment: token: AAAAAA environment: staging user: ansible @@ -67,7 +67,7 @@ EXAMPLES = ''' comment: Test Deploy - name: Notify rollbar about current git revision deployment by current user - rollbar_deployment: + community.general.rollbar_deployment: token: "{{ rollbar_access_token }}" environment: production revision: "{{ lookup('pipe', 'git rev-parse HEAD') }}" diff --git a/plugins/modules/monitoring/sensu/sensu_check.py b/plugins/modules/monitoring/sensu/sensu_check.py index 97f67aa6c8..47051231c1 100644 --- a/plugins/modules/monitoring/sensu/sensu_check.py +++ b/plugins/modules/monitoring/sensu/sensu_check.py @@ -130,7 +130,7 @@ EXAMPLES = ''' # Fetch metrics about the CPU load every 60 seconds, # the sensu server has a handler called 'relay' which forwards stats to graphite - name: Get cpu metrics - sensu_check: + community.general.sensu_check: name: cpu_load command: /etc/sensu/plugins/system/cpu-mpstat-metrics.rb metric: yes @@ -140,7 +140,7 @@ EXAMPLES = ''' # Check whether nginx is running - name: Check nginx process - sensu_check: + community.general.sensu_check: name: nginx_running command: /etc/sensu/plugins/processes/check-procs.rb -f /var/run/nginx.pid handlers: default @@ -151,7 +151,7 @@ EXAMPLES = ''' # Note that the check will still show up in the sensu dashboard, # to remove it completely you need to issue a DELETE request to the sensu api. - name: Check disk - sensu_check: + community.general.sensu_check: name: check_disk_capacity state: absent ''' diff --git a/plugins/modules/monitoring/sensu/sensu_client.py b/plugins/modules/monitoring/sensu/sensu_client.py index 5756344cd4..196331f494 100644 --- a/plugins/modules/monitoring/sensu/sensu_client.py +++ b/plugins/modules/monitoring/sensu/sensu_client.py @@ -83,13 +83,13 @@ notes: EXAMPLES = ''' # Minimum possible configuration - name: Configure Sensu client - sensu_client: + community.general.sensu_client: subscriptions: - default # With customization - name: Configure Sensu client - sensu_client: + community.general.sensu_client: name: "{{ ansible_fqdn }}" address: "{{ ansible_default_ipv4['address'] }}" subscriptions: @@ -121,7 +121,7 @@ EXAMPLES = ''' mode: "0600" - name: Delete the Sensu client configuration - sensu_client: + community.general.sensu_client: state: "absent" ''' diff --git a/plugins/modules/monitoring/sensu/sensu_handler.py b/plugins/modules/monitoring/sensu/sensu_handler.py index 1997681312..d1df3909fb 100644 --- a/plugins/modules/monitoring/sensu/sensu_handler.py +++ b/plugins/modules/monitoring/sensu/sensu_handler.py @@ -84,7 +84,7 @@ notes: EXAMPLES = ''' # Configure a handler that sends event data as STDIN (pipe) - name: Configure IRC Sensu handler - sensu_handler: + community.general.sensu_handler: name: "irc_handler" type: "pipe" command: "/usr/local/bin/notify-irc.sh" @@ -100,13 +100,13 @@ EXAMPLES = ''' # Delete a handler - name: Delete IRC Sensu handler - sensu_handler: + community.general.sensu_handler: name: "irc_handler" state: "absent" # Example of a TCP handler - name: Configure TCP Sensu handler - sensu_handler: + community.general.sensu_handler: name: "tcp_handler" type: "tcp" timeout: 30 diff --git a/plugins/modules/monitoring/sensu/sensu_silence.py b/plugins/modules/monitoring/sensu/sensu_silence.py index 116e87f8e7..2178a7990f 100644 --- a/plugins/modules/monitoring/sensu/sensu_silence.py +++ b/plugins/modules/monitoring/sensu/sensu_silence.py @@ -59,14 +59,14 @@ options: EXAMPLES = ''' # Silence ALL checks for a given client - name: Silence server1.example.dev - sensu_silence: + community.general.sensu_silence: subscription: client:server1.example.dev creator: "{{ ansible_user_id }}" reason: Performing maintenance # Silence specific check for a client - name: Silence CPU_Usage check for server1.example.dev - sensu_silence: + community.general.sensu_silence: subscription: client:server1.example.dev check: CPU_Usage creator: "{{ ansible_user_id }}" @@ -80,7 +80,7 @@ EXAMPLES = ''' reason: 'Deployment in progress' - name: Silence several clients from a dict - sensu_silence: + community.general.sensu_silence: subscription: "client:{{ item.key }}" reason: "{{ item.value.reason }}" creator: "{{ ansible_user_id }}" diff --git a/plugins/modules/monitoring/sensu/sensu_subscription.py b/plugins/modules/monitoring/sensu/sensu_subscription.py index 21182c9290..9ae407c87f 100644 --- a/plugins/modules/monitoring/sensu/sensu_subscription.py +++ b/plugins/modules/monitoring/sensu/sensu_subscription.py @@ -52,11 +52,11 @@ reasons: EXAMPLES = ''' # Subscribe to the nginx channel - name: Subscribe to nginx checks - sensu_subscription: name=nginx + community.general.sensu_subscription: name=nginx # Unsubscribe from the common checks channel - name: Unsubscribe from common checks - sensu_subscription: name=common state=absent + community.general.sensu_subscription: name=common state=absent ''' import json diff --git a/plugins/modules/monitoring/stackdriver.py b/plugins/modules/monitoring/stackdriver.py index d9fbcf961f..ddb7751f56 100644 --- a/plugins/modules/monitoring/stackdriver.py +++ b/plugins/modules/monitoring/stackdriver.py @@ -58,7 +58,7 @@ options: EXAMPLES = ''' - name: Send a code deploy event to stackdriver - stackdriver: + community.general.stackdriver: key: AAAAAA event: deploy deployed_to: production @@ -67,7 +67,7 @@ EXAMPLES = ''' revision_id: abcd123 - name: Send an annotation event to stackdriver - stackdriver: + community.general.stackdriver: key: AAAAAA event: annotation msg: Greetings from Ansible diff --git a/plugins/modules/monitoring/statusio_maintenance.py b/plugins/modules/monitoring/statusio_maintenance.py index b027d44d0a..7a8401da2c 100644 --- a/plugins/modules/monitoring/statusio_maintenance.py +++ b/plugins/modules/monitoring/statusio_maintenance.py @@ -108,7 +108,7 @@ options: EXAMPLES = ''' - name: Create a maintenance window for 10 minutes on server1, with automation to stop the maintenance - statusio_maintenance: + community.general.statusio_maintenance: title: Router Upgrade from ansible desc: Performing a Router Upgrade components: server1.example.com @@ -119,7 +119,7 @@ EXAMPLES = ''' automation: True - name: Create a maintenance window for 60 minutes on server1 and server2 - statusio_maintenance: + community.general.statusio_maintenance: title: Routine maintenance desc: Some security updates components: @@ -134,7 +134,7 @@ EXAMPLES = ''' delegate_to: localhost - name: Create a future maintenance window for 24 hours to all hosts inside the Primary Data Center - statusio_maintenance: + community.general.statusio_maintenance: title: Data center downtime desc: Performing a Upgrade to our data center components: Primary Data Center @@ -146,7 +146,7 @@ EXAMPLES = ''' minutes: 1440 - name: Delete a maintenance window - statusio_maintenance: + community.general.statusio_maintenance: title: Remove a maintenance window maintenance_id: 561f90faf74bc94a4700087b statuspage: statuspage_id diff --git a/plugins/modules/monitoring/uptimerobot.py b/plugins/modules/monitoring/uptimerobot.py index c28dd358f8..7d7ec61903 100644 --- a/plugins/modules/monitoring/uptimerobot.py +++ b/plugins/modules/monitoring/uptimerobot.py @@ -36,13 +36,13 @@ notes: EXAMPLES = ''' - name: Pause the monitor with an ID of 12345 - uptimerobot: + community.general.uptimerobot: monitorid: 12345 apikey: 12345-1234512345 state: paused - name: Start the monitor with an ID of 12345 - uptimerobot: + community.general.uptimerobot: monitorid: 12345 apikey: 12345-1234512345 state: started diff --git a/plugins/modules/net_tools/cloudflare_dns.py b/plugins/modules/net_tools/cloudflare_dns.py index 7634557129..fad9edcca5 100644 --- a/plugins/modules/net_tools/cloudflare_dns.py +++ b/plugins/modules/net_tools/cloudflare_dns.py @@ -152,7 +152,7 @@ options: EXAMPLES = r''' - name: Create a test.example.net A record to point to 127.0.0.1 - cloudflare_dns: + community.general.cloudflare_dns: zone: example.net record: test type: A @@ -162,7 +162,7 @@ EXAMPLES = r''' register: record - name: Create a record using api token - cloudflare_dns: + community.general.cloudflare_dns: zone: example.net record: test type: A @@ -170,7 +170,7 @@ EXAMPLES = r''' api_token: dummyapitoken - name: Create a example.net CNAME record to example.com - cloudflare_dns: + community.general.cloudflare_dns: zone: example.net type: CNAME value: example.com @@ -179,7 +179,7 @@ EXAMPLES = r''' state: present - name: Change its TTL - cloudflare_dns: + community.general.cloudflare_dns: zone: example.net type: CNAME value: example.com @@ -189,7 +189,7 @@ EXAMPLES = r''' state: present - name: Delete the record - cloudflare_dns: + community.general.cloudflare_dns: zone: example.net type: CNAME value: example.com @@ -198,7 +198,7 @@ EXAMPLES = r''' state: absent - name: Create a example.net CNAME record to example.com and proxy through Cloudflare's network - cloudflare_dns: + community.general.cloudflare_dns: zone: example.net type: CNAME value: example.com @@ -209,7 +209,7 @@ EXAMPLES = r''' # This deletes all other TXT records named "test.example.net" - name: Create TXT record "test.example.net" with value "unique value" - cloudflare_dns: + community.general.cloudflare_dns: domain: example.net record: test type: TXT @@ -220,7 +220,7 @@ EXAMPLES = r''' state: present - name: Create an SRV record _foo._tcp.example.net - cloudflare_dns: + community.general.cloudflare_dns: domain: example.net service: foo proto: tcp @@ -231,7 +231,7 @@ EXAMPLES = r''' value: fooserver.example.net - name: Create a SSHFP record login.example.com - cloudflare_dns: + community.general.cloudflare_dns: zone: example.com record: login type: SSHFP @@ -240,7 +240,7 @@ EXAMPLES = r''' value: 9dc1d6742696d2f51ca1f1a78b3d16a840f7d111eb9454239e70db31363f33e1 - name: Create a TLSA record _25._tcp.mail.example.com - cloudflare_dns: + community.general.cloudflare_dns: zone: example.com record: mail port: 25 @@ -252,7 +252,7 @@ EXAMPLES = r''' value: 6b76d034492b493e15a7376fccd08e63befdad0edab8e442562f532338364bf3 - name: Create a DS record for subdomain.example.com - cloudflare_dns: + community.general.cloudflare_dns: zone: example.com record: subdomain type: DS diff --git a/plugins/modules/net_tools/dnsimple.py b/plugins/modules/net_tools/dnsimple.py index 20791d93f8..1c814a9b66 100644 --- a/plugins/modules/net_tools/dnsimple.py +++ b/plugins/modules/net_tools/dnsimple.py @@ -78,26 +78,26 @@ author: "Alex Coomans (@drcapulet)" EXAMPLES = ''' - name: Authenticate using email and API token and fetch all domains - dnsimple: + community.general.dnsimple: account_email: test@example.com account_api_token: dummyapitoken delegate_to: localhost - name: Fetch my.com domain records - dnsimple: + community.general.dnsimple: domain: my.com state: present delegate_to: localhost register: records - name: Delete a domain - dnsimple: + community.general.dnsimple: domain: my.com state: absent delegate_to: localhost - name: Create a test.my.com A record to point to 127.0.0.1 - dnsimple: + community.general.dnsimple: domain: my.com record: test type: A @@ -106,14 +106,14 @@ EXAMPLES = ''' register: record - name: Delete record using record_ids - dnsimple: + community.general.dnsimple: domain: my.com record_ids: '{{ record["id"] }}' state: absent delegate_to: localhost - name: Create a my.com CNAME record to example.com - dnsimple: + community.general.dnsimple: domain: my.com record: '' type: CNAME @@ -122,7 +122,7 @@ EXAMPLES = ''' delegate_to: localhost - name: Change TTL value for a record - dnsimple: + community.general.dnsimple: domain: my.com record: '' type: CNAME @@ -132,7 +132,7 @@ EXAMPLES = ''' delegate_to: localhost - name: Delete the record - dnsimple: + community.general.dnsimple: domain: my.com record: '' type: CNAME diff --git a/plugins/modules/net_tools/dnsmadeeasy.py b/plugins/modules/net_tools/dnsmadeeasy.py index 7e8e992690..0b748f79be 100644 --- a/plugins/modules/net_tools/dnsmadeeasy.py +++ b/plugins/modules/net_tools/dnsmadeeasy.py @@ -184,7 +184,7 @@ author: "Brice Burgess (@briceburg)" EXAMPLES = ''' - name: Fetch my.com domain records - dnsmadeeasy: + community.general.dnsmadeeasy: account_key: key account_secret: secret domain: my.com @@ -192,7 +192,7 @@ EXAMPLES = ''' register: response - name: Create a record - dnsmadeeasy: + community.general.dnsmadeeasy: account_key: key account_secret: secret domain: my.com @@ -202,7 +202,7 @@ EXAMPLES = ''' record_value: 127.0.0.1 - name: Update the previously created record - dnsmadeeasy: + community.general.dnsmadeeasy: account_key: key account_secret: secret domain: my.com @@ -211,7 +211,7 @@ EXAMPLES = ''' record_value: 192.0.2.23 - name: Fetch a specific record - dnsmadeeasy: + community.general.dnsmadeeasy: account_key: key account_secret: secret domain: my.com @@ -220,7 +220,7 @@ EXAMPLES = ''' register: response - name: Delete a record - dnsmadeeasy: + community.general.dnsmadeeasy: account_key: key account_secret: secret domain: my.com @@ -229,7 +229,7 @@ EXAMPLES = ''' record_name: test - name: Add a failover - dnsmadeeasy: + community.general.dnsmadeeasy: account_key: key account_secret: secret domain: my.com @@ -242,7 +242,7 @@ EXAMPLES = ''' ip2: 127.0.0.3 - name: Add a failover - dnsmadeeasy: + community.general.dnsmadeeasy: account_key: key account_secret: secret domain: my.com @@ -258,7 +258,7 @@ EXAMPLES = ''' ip5: 127.0.0.6 - name: Add a monitor - dnsmadeeasy: + community.general.dnsmadeeasy: account_key: key account_secret: secret domain: my.com @@ -275,7 +275,7 @@ EXAMPLES = ''' contactList: my contact list - name: Add a monitor with http options - dnsmadeeasy: + community.general.dnsmadeeasy: account_key: key account_secret: secret domain: my.com @@ -295,7 +295,7 @@ EXAMPLES = ''' httpQueryString: some string - name: Add a monitor and a failover - dnsmadeeasy: + community.general.dnsmadeeasy: account_key: key account_secret: secret domain: my.com @@ -314,7 +314,7 @@ EXAMPLES = ''' contactList: emergencycontacts - name: Remove a failover - dnsmadeeasy: + community.general.dnsmadeeasy: account_key: key account_secret: secret domain: my.com @@ -325,7 +325,7 @@ EXAMPLES = ''' failover: no - name: Remove a monitor - dnsmadeeasy: + community.general.dnsmadeeasy: account_key: key account_secret: secret domain: my.com diff --git a/plugins/modules/net_tools/haproxy.py b/plugins/modules/net_tools/haproxy.py index c35e7dab07..e56c9dabb1 100644 --- a/plugins/modules/net_tools/haproxy.py +++ b/plugins/modules/net_tools/haproxy.py @@ -95,25 +95,25 @@ options: EXAMPLES = r''' - name: Disable server in 'www' backend pool - haproxy: + community.general.haproxy: state: disabled host: '{{ inventory_hostname }}' backend: www - name: Disable server without backend pool name (apply to all available backend pool) - haproxy: + community.general.haproxy: state: disabled host: '{{ inventory_hostname }}' - name: Disable server, provide socket file - haproxy: + community.general.haproxy: state: disabled host: '{{ inventory_hostname }}' socket: /var/run/haproxy.sock backend: www - name: Disable server, provide socket file, wait until status reports in maintenance - haproxy: + community.general.haproxy: state: disabled host: '{{ inventory_hostname }}' socket: /var/run/haproxy.sock @@ -123,7 +123,7 @@ EXAMPLES = r''' # Place server in drain mode, providing a socket file. Then check the server's # status every minute to see if it changes to maintenance mode, continuing if it # does in an hour and failing otherwise. -- haproxy: +- community.general.haproxy: state: disabled host: '{{ inventory_hostname }}' socket: /var/run/haproxy.sock @@ -134,7 +134,7 @@ EXAMPLES = r''' wait_retries: 60 - name: Disable backend server in 'www' backend pool and drop open sessions to it - haproxy: + community.general.haproxy: state: disabled host: '{{ inventory_hostname }}' backend: www @@ -142,26 +142,26 @@ EXAMPLES = r''' shutdown_sessions: yes - name: Disable server without backend pool name (apply to all available backend pool) but fail when the backend host is not found - haproxy: + community.general.haproxy: state: disabled host: '{{ inventory_hostname }}' fail_on_not_found: yes - name: Enable server in 'www' backend pool - haproxy: + community.general.haproxy: state: enabled host: '{{ inventory_hostname }}' backend: www - name: Enable server in 'www' backend pool wait until healthy - haproxy: + community.general.haproxy: state: enabled host: '{{ inventory_hostname }}' backend: www wait: yes - name: Enable server in 'www' backend pool wait until healthy. Retry 10 times with intervals of 5 seconds to retrieve the health - haproxy: + community.general.haproxy: state: enabled host: '{{ inventory_hostname }}' backend: www @@ -170,7 +170,7 @@ EXAMPLES = r''' wait_interval: 5 - name: Enable server in 'www' backend pool with change server(s) weight - haproxy: + community.general.haproxy: state: enabled host: '{{ inventory_hostname }}' socket: /var/run/haproxy.sock @@ -178,7 +178,7 @@ EXAMPLES = r''' backend: www - name: Set the server in 'www' backend pool to drain mode - haproxy: + community.general.haproxy: state: drain host: '{{ inventory_hostname }}' socket: /var/run/haproxy.sock diff --git a/plugins/modules/net_tools/hetzner_failover_ip.py b/plugins/modules/net_tools/hetzner_failover_ip.py index 7e866cb34d..a57e0ab8f0 100644 --- a/plugins/modules/net_tools/hetzner_failover_ip.py +++ b/plugins/modules/net_tools/hetzner_failover_ip.py @@ -56,14 +56,14 @@ options: EXAMPLES = r''' - name: Set value of failover IP 1.2.3.4 to 5.6.7.8 - hetzner_failover_ip: + community.general.hetzner_failover_ip: hetzner_user: foo hetzner_password: bar failover_ip: 1.2.3.4 value: 5.6.7.8 - name: Set value of failover IP 1.2.3.4 to unrouted - hetzner_failover_ip: + community.general.hetzner_failover_ip: hetzner_user: foo hetzner_password: bar failover_ip: 1.2.3.4 diff --git a/plugins/modules/net_tools/hetzner_failover_ip_info.py b/plugins/modules/net_tools/hetzner_failover_ip_info.py index c3904d1169..7a37301cf3 100644 --- a/plugins/modules/net_tools/hetzner_failover_ip_info.py +++ b/plugins/modules/net_tools/hetzner_failover_ip_info.py @@ -34,7 +34,7 @@ options: EXAMPLES = r''' - name: Get value of failover IP 1.2.3.4 - hetzner_failover_ip_info: + community.general.hetzner_failover_ip_info: hetzner_user: foo hetzner_password: bar failover_ip: 1.2.3.4 diff --git a/plugins/modules/net_tools/hetzner_firewall.py b/plugins/modules/net_tools/hetzner_firewall.py index 5a3f066ae5..fdc5e8781c 100644 --- a/plugins/modules/net_tools/hetzner_firewall.py +++ b/plugins/modules/net_tools/hetzner_firewall.py @@ -142,7 +142,7 @@ options: EXAMPLES = r''' - name: Configure firewall for server with main IP 1.2.3.4 - hetzner_firewall: + community.general.hetzner_firewall: hetzner_user: foo hetzner_password: bar server_ip: 1.2.3.4 diff --git a/plugins/modules/net_tools/hetzner_firewall_info.py b/plugins/modules/net_tools/hetzner_firewall_info.py index ec84d267ac..4c20aaebe1 100644 --- a/plugins/modules/net_tools/hetzner_firewall_info.py +++ b/plugins/modules/net_tools/hetzner_firewall_info.py @@ -58,7 +58,7 @@ options: EXAMPLES = r''' - name: Get firewall configuration for server with main IP 1.2.3.4 - hetzner_firewall_info: + community.general.hetzner_firewall_info: hetzner_user: foo hetzner_password: bar server_ip: 1.2.3.4 diff --git a/plugins/modules/net_tools/infinity/infinity.py b/plugins/modules/net_tools/infinity/infinity.py index 4af05bd587..ab41f680c4 100644 --- a/plugins/modules/net_tools/infinity/infinity.py +++ b/plugins/modules/net_tools/infinity/infinity.py @@ -88,7 +88,7 @@ EXAMPLES = r''' strategy: debug tasks: - name: Reserve network into Infinity IPAM - infinity: + community.general.infinity: server_ip: 80.75.107.12 username: username password: password diff --git a/plugins/modules/net_tools/ip_netns.py b/plugins/modules/net_tools/ip_netns.py index a2df184a6d..9dd28fe154 100644 --- a/plugins/modules/net_tools/ip_netns.py +++ b/plugins/modules/net_tools/ip_netns.py @@ -41,12 +41,12 @@ options: EXAMPLES = ''' - name: Create a namespace named mario - ip_netns: + community.general.ip_netns: name: mario state: present - name: Delete a namespace named luigi - ip_netns: + community.general.ip_netns: name: luigi state: absent ''' diff --git a/plugins/modules/net_tools/ipify_facts.py b/plugins/modules/net_tools/ipify_facts.py index 18d04080d3..dcdc5ef801 100644 --- a/plugins/modules/net_tools/ipify_facts.py +++ b/plugins/modules/net_tools/ipify_facts.py @@ -40,11 +40,11 @@ notes: EXAMPLES = r''' # Gather IP facts from ipify.org - name: Get my public IP - ipify_facts: + community.general.ipify_facts: # Gather IP facts from your own ipify service endpoint with a custom timeout - name: Get my public IP - ipify_facts: + community.general.ipify_facts: api_url: http://api.example.com/ipify timeout: 20 ''' diff --git a/plugins/modules/net_tools/ipinfoio_facts.py b/plugins/modules/net_tools/ipinfoio_facts.py index 59acd16926..4da20d87db 100644 --- a/plugins/modules/net_tools/ipinfoio_facts.py +++ b/plugins/modules/net_tools/ipinfoio_facts.py @@ -33,7 +33,7 @@ notes: EXAMPLES = ''' # Retrieve geolocation data of a host's IP address - name: Get IP geolocation data - ipinfoio_facts: + community.general.ipinfoio_facts: ''' RETURN = ''' diff --git a/plugins/modules/net_tools/ipwcli_dns.py b/plugins/modules/net_tools/ipwcli_dns.py index a1f08e3d9b..355c70346f 100644 --- a/plugins/modules/net_tools/ipwcli_dns.py +++ b/plugins/modules/net_tools/ipwcli_dns.py @@ -119,14 +119,14 @@ author: EXAMPLES = ''' - name: Create A record - ipwcli_dns: + community.general.ipwcli_dns: dnsname: example.com type: A container: ZoneOne address: 127.0.0.1 - name: Remove SRV record if exists - ipwcli_dns: + community.general.ipwcli_dns: dnsname: _sip._tcp.test.example.com type: SRV container: ZoneOne @@ -136,7 +136,7 @@ EXAMPLES = ''' port: 5060 - name: Create NAPTR record - ipwcli_dns: + community.general.ipwcli_dns: dnsname: test.example.com type: NAPTR preference: 10 diff --git a/plugins/modules/net_tools/ldap/ldap_attr.py b/plugins/modules/net_tools/ldap/ldap_attr.py index 5764fd7b79..f983b85745 100644 --- a/plugins/modules/net_tools/ldap/ldap_attr.py +++ b/plugins/modules/net_tools/ldap/ldap_attr.py @@ -70,7 +70,7 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Configure directory number 1 for example.com - ldap_attr: + community.general.ldap_attr: dn: olcDatabase={1}hdb,cn=config name: olcSuffix values: dc=example,dc=com @@ -78,7 +78,7 @@ EXAMPLES = r''' # The complex argument format is required here to pass a list of ACL strings. - name: Set up the ACL - ldap_attr: + community.general.ldap_attr: dn: olcDatabase={1}hdb,cn=config name: olcAccess values: @@ -95,7 +95,7 @@ EXAMPLES = r''' state: exact - name: Declare some indexes - ldap_attr: + community.general.ldap_attr: dn: olcDatabase={1}hdb,cn=config name: olcDbIndex values: "{{ item }}" @@ -104,7 +104,7 @@ EXAMPLES = r''' - uid eq - name: Set up a root user, which we can use later to bootstrap the directory - ldap_attr: + community.general.ldap_attr: dn: olcDatabase={1}hdb,cn=config name: "{{ item.key }}" values: "{{ item.value }}" @@ -114,7 +114,7 @@ EXAMPLES = r''' olcRootPW: "{SSHA}tabyipcHzhwESzRaGA7oQ/SDoBZQOGND" - name: Get rid of an unneeded attribute - ldap_attr: + community.general.ldap_attr: dn: uid=jdoe,ou=people,dc=example,dc=com name: shadowExpire values: [] @@ -134,7 +134,7 @@ EXAMPLES = r''' # # In the example below, 'args' is a task keyword, passed at the same level as the module - name: Get rid of an unneeded attribute - ldap_attr: + community.general.ldap_attr: dn: uid=jdoe,ou=people,dc=example,dc=com name: shadowExpire values: [] diff --git a/plugins/modules/net_tools/ldap/ldap_attrs.py b/plugins/modules/net_tools/ldap/ldap_attrs.py index 1ecd3304c5..ae5cb7fdae 100644 --- a/plugins/modules/net_tools/ldap/ldap_attrs.py +++ b/plugins/modules/net_tools/ldap/ldap_attrs.py @@ -74,7 +74,7 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Configure directory number 1 for example.com - ldap_attrs: + community.general.ldap_attrs: dn: olcDatabase={1}hdb,cn=config attributes: olcSuffix: dc=example,dc=com @@ -82,7 +82,7 @@ EXAMPLES = r''' # The complex argument format is required here to pass a list of ACL strings. - name: Set up the ACL - ldap_attrs: + community.general.ldap_attrs: dn: olcDatabase={1}hdb,cn=config attributes: olcAccess: @@ -100,7 +100,7 @@ EXAMPLES = r''' # An alternative approach with automatic X-ORDERED numbering - name: Set up the ACL - ldap_attrs: + community.general.ldap_attrs: dn: olcDatabase={1}hdb,cn=config attributes: olcAccess: @@ -118,7 +118,7 @@ EXAMPLES = r''' state: exact - name: Declare some indexes - ldap_attrs: + community.general.ldap_attrs: dn: olcDatabase={1}hdb,cn=config attributes: olcDbIndex: @@ -126,7 +126,7 @@ EXAMPLES = r''' - uid eq - name: Set up a root user, which we can use later to bootstrap the directory - ldap_attrs: + community.general.ldap_attrs: dn: olcDatabase={1}hdb,cn=config attributes: olcRootDN: cn=root,dc=example,dc=com @@ -134,7 +134,7 @@ EXAMPLES = r''' state: exact - name: Remove an attribute with a specific value - ldap_attrs: + community.general.ldap_attrs: dn: uid=jdoe,ou=people,dc=example,dc=com attributes: description: "An example user account" @@ -144,7 +144,7 @@ EXAMPLES = r''' bind_pw: password - name: Remove specified attribute(s) from an entry - ldap_attrs: + community.general.ldap_attrs: dn: uid=jdoe,ou=people,dc=example,dc=com attributes: description: [] diff --git a/plugins/modules/net_tools/ldap/ldap_entry.py b/plugins/modules/net_tools/ldap/ldap_entry.py index 8c4c31536a..7303d7a3af 100644 --- a/plugins/modules/net_tools/ldap/ldap_entry.py +++ b/plugins/modules/net_tools/ldap/ldap_entry.py @@ -56,12 +56,12 @@ extends_documentation_fragment: EXAMPLES = """ - name: Make sure we have a parent entry for users - ldap_entry: + community.general.ldap_entry: dn: ou=users,dc=example,dc=com objectClass: organizationalUnit - name: Make sure we have an admin user - ldap_entry: + community.general.ldap_entry: dn: cn=admin,dc=example,dc=com objectClass: - simpleSecurityObject @@ -71,7 +71,7 @@ EXAMPLES = """ userPassword: "{SSHA}tabyipcHzhwESzRaGA7oQ/SDoBZQOGND" - name: Get rid of an old entry - ldap_entry: + community.general.ldap_entry: dn: ou=stuff,dc=example,dc=com state: absent server_uri: ldap://localhost/ @@ -89,7 +89,7 @@ EXAMPLES = """ # # In the example below, 'args' is a task keyword, passed at the same level as the module - name: Get rid of an old entry - ldap_entry: + community.general.ldap_entry: dn: ou=stuff,dc=example,dc=com state: absent args: "{{ ldap_auth }}" diff --git a/plugins/modules/net_tools/ldap/ldap_passwd.py b/plugins/modules/net_tools/ldap/ldap_passwd.py index 2e529e735b..03dccef328 100644 --- a/plugins/modules/net_tools/ldap/ldap_passwd.py +++ b/plugins/modules/net_tools/ldap/ldap_passwd.py @@ -39,12 +39,12 @@ extends_documentation_fragment: EXAMPLES = """ - name: Set a password for the admin user - ldap_passwd: + community.general.ldap_passwd: dn: cn=admin,dc=example,dc=com passwd: "{{ vault_secret }}" - name: Setting passwords in bulk - ldap_passwd: + community.general.ldap_passwd: dn: "{{ item.key }}" passwd: "{{ item.value }}" with_dict: diff --git a/plugins/modules/net_tools/lldp.py b/plugins/modules/net_tools/lldp.py index bfc7b1d5eb..217c5eac5e 100644 --- a/plugins/modules/net_tools/lldp.py +++ b/plugins/modules/net_tools/lldp.py @@ -23,7 +23,7 @@ notes: EXAMPLES = ''' # Retrieve switch/port information - name: Gather information from lldp - lldp: + community.general.lldp: - name: Print each switch/port debug: diff --git a/plugins/modules/net_tools/netcup_dns.py b/plugins/modules/net_tools/netcup_dns.py index 59dd94738f..43a177b307 100644 --- a/plugins/modules/net_tools/netcup_dns.py +++ b/plugins/modules/net_tools/netcup_dns.py @@ -70,7 +70,7 @@ author: "Nicolai Buchwitz (@nbuchwitz)" EXAMPLES = ''' - name: Create a record of type A - netcup_dns: + community.general.netcup_dns: api_key: "..." api_password: "..." customer_id: "..." @@ -80,7 +80,7 @@ EXAMPLES = ''' value: "127.0.0.1" - name: Delete that record - netcup_dns: + community.general.netcup_dns: api_key: "..." api_password: "..." customer_id: "..." @@ -91,7 +91,7 @@ EXAMPLES = ''' state: absent - name: Create a wildcard record - netcup_dns: + community.general.netcup_dns: api_key: "..." api_password: "..." customer_id: "..." @@ -101,7 +101,7 @@ EXAMPLES = ''' value: "127.0.1.1" - name: Set the MX record for example.com - netcup_dns: + community.general.netcup_dns: api_key: "..." api_password: "..." customer_id: "..." @@ -110,7 +110,7 @@ EXAMPLES = ''' value: "mail.example.com" - name: Set a record and ensure that this is the only one - netcup_dns: + community.general.netcup_dns: api_key: "..." api_password: "..." customer_id: "..." diff --git a/plugins/modules/net_tools/nios/nios_a_record.py b/plugins/modules/net_tools/nios/nios_a_record.py index d70a36ce27..0c8da3c6d6 100644 --- a/plugins/modules/net_tools/nios/nios_a_record.py +++ b/plugins/modules/net_tools/nios/nios_a_record.py @@ -68,7 +68,7 @@ options: EXAMPLES = ''' - name: Configure an A record - nios_a_record: + community.general.nios_a_record: name: a.ansible.com ipv4: 192.168.10.1 state: present @@ -79,7 +79,7 @@ EXAMPLES = ''' connection: local - name: Add a comment to an existing A record - nios_a_record: + community.general.nios_a_record: name: a.ansible.com ipv4: 192.168.10.1 comment: this is a test comment @@ -91,7 +91,7 @@ EXAMPLES = ''' connection: local - name: Remove an A record from the system - nios_a_record: + community.general.nios_a_record: name: a.ansible.com ipv4: 192.168.10.1 state: absent @@ -102,7 +102,7 @@ EXAMPLES = ''' connection: local - name: Update an A record name - nios_a_record: + community.general.nios_a_record: name: {new_name: a_new.ansible.com, old_name: a.ansible.com} ipv4: 192.168.10.1 state: present @@ -113,7 +113,7 @@ EXAMPLES = ''' connection: local - name: Dynamically add a record to next available ip - nios_a_record: + community.general.nios_a_record: name: a.ansible.com ipv4: {nios_next_ip: 192.168.10.0/24} state: present diff --git a/plugins/modules/net_tools/nios/nios_aaaa_record.py b/plugins/modules/net_tools/nios/nios_aaaa_record.py index eed66577a0..30dbb0a557 100644 --- a/plugins/modules/net_tools/nios/nios_aaaa_record.py +++ b/plugins/modules/net_tools/nios/nios_aaaa_record.py @@ -66,7 +66,7 @@ options: EXAMPLES = ''' - name: Configure an AAAA record - nios_aaaa_record: + community.general.nios_aaaa_record: name: aaaa.ansible.com ipv6: 2001:0db8:85a3:0000:0000:8a2e:0370:7334 state: present @@ -77,7 +77,7 @@ EXAMPLES = ''' connection: local - name: Add a comment to an existing AAAA record - nios_aaaa_record: + community.general.nios_aaaa_record: name: aaaa.ansible.com ipv6: 2001:0db8:85a3:0000:0000:8a2e:0370:7334 comment: this is a test comment @@ -89,7 +89,7 @@ EXAMPLES = ''' connection: local - name: Remove an AAAA record from the system - nios_aaaa_record: + community.general.nios_aaaa_record: name: aaaa.ansible.com ipv6: 2001:0db8:85a3:0000:0000:8a2e:0370:7334 state: absent @@ -100,7 +100,7 @@ EXAMPLES = ''' connection: local - name: Update an AAAA record name - nios_aaaa_record: + community.general.nios_aaaa_record: name: {new_name: aaaa_new.ansible.com, old_name: aaaa.ansible.com} ipv6: 2001:0db8:85a3:0000:0000:8a2e:0370:7334 state: present diff --git a/plugins/modules/net_tools/nios/nios_cname_record.py b/plugins/modules/net_tools/nios/nios_cname_record.py index 2e604350dd..f49d9a6c87 100644 --- a/plugins/modules/net_tools/nios/nios_cname_record.py +++ b/plugins/modules/net_tools/nios/nios_cname_record.py @@ -66,7 +66,7 @@ options: EXAMPLES = ''' - name: Configure a CNAME record - nios_cname_record: + community.general.nios_cname_record: name: cname.ansible.com canonical: realhost.ansible.com state: present @@ -77,7 +77,7 @@ EXAMPLES = ''' connection: local - name: Add a comment to an existing CNAME record - nios_cname_record: + community.general.nios_cname_record: name: cname.ansible.com canonical: realhost.ansible.com comment: this is a test comment @@ -89,7 +89,7 @@ EXAMPLES = ''' connection: local - name: Remove a CNAME record from the system - nios_cname_record: + community.general.nios_cname_record: name: cname.ansible.com canonical: realhost.ansible.com state: absent diff --git a/plugins/modules/net_tools/nios/nios_dns_view.py b/plugins/modules/net_tools/nios/nios_dns_view.py index 159258d129..5b2a49e7c1 100644 --- a/plugins/modules/net_tools/nios/nios_dns_view.py +++ b/plugins/modules/net_tools/nios/nios_dns_view.py @@ -63,7 +63,7 @@ options: EXAMPLES = ''' - name: Configure a new dns view instance - nios_dns_view: + community.general.nios_dns_view: name: ansible-dns state: present provider: @@ -72,7 +72,7 @@ EXAMPLES = ''' password: admin connection: local - name: Update the comment for dns view - nios_dns_view: + community.general.nios_dns_view: name: ansible-dns comment: this is an example comment state: present @@ -82,7 +82,7 @@ EXAMPLES = ''' password: admin connection: local - name: Remove the dns view instance - nios_dns_view: + community.general.nios_dns_view: name: ansible-dns state: absent provider: @@ -91,7 +91,7 @@ EXAMPLES = ''' password: admin connection: local - name: Update the dns view instance - nios_dns_view: + community.general.nios_dns_view: name: {new_name: ansible-dns-new, old_name: ansible-dns} state: present provider: diff --git a/plugins/modules/net_tools/nios/nios_fixed_address.py b/plugins/modules/net_tools/nios/nios_fixed_address.py index 8fd6676740..334c8106db 100644 --- a/plugins/modules/net_tools/nios/nios_fixed_address.py +++ b/plugins/modules/net_tools/nios/nios_fixed_address.py @@ -95,7 +95,7 @@ options: EXAMPLES = ''' - name: Configure ipv4 dhcp fixed address - nios_fixed_address: + community.general.nios_fixed_address: name: ipv4_fixed ipaddr: 192.168.10.1 mac: 08:6d:41:e8:fd:e8 @@ -109,7 +109,7 @@ EXAMPLES = ''' password: admin connection: local - name: Configure a ipv6 dhcp fixed address - nios_fixed_address: + community.general.nios_fixed_address: name: ipv6_fixed ipaddr: fe80::1/10 mac: 08:6d:41:e8:fd:e8 @@ -123,7 +123,7 @@ EXAMPLES = ''' password: admin connection: local - name: Set dhcp options for a ipv4 fixed address - nios_fixed_address: + community.general.nios_fixed_address: name: ipv4_fixed ipaddr: 192.168.10.1 mac: 08:6d:41:e8:fd:e8 @@ -140,7 +140,7 @@ EXAMPLES = ''' password: admin connection: local - name: Remove a ipv4 dhcp fixed address - nios_fixed_address: + community.general.nios_fixed_address: name: ipv4_fixed ipaddr: 192.168.10.1 mac: 08:6d:41:e8:fd:e8 diff --git a/plugins/modules/net_tools/nios/nios_host_record.py b/plugins/modules/net_tools/nios/nios_host_record.py index b78ffc7955..49fcc4ea8b 100644 --- a/plugins/modules/net_tools/nios/nios_host_record.py +++ b/plugins/modules/net_tools/nios/nios_host_record.py @@ -147,7 +147,7 @@ options: EXAMPLES = ''' - name: Configure an ipv4 host record - nios_host_record: + community.general.nios_host_record: name: host.ansible.com ipv4: - address: 192.168.10.1 @@ -160,7 +160,7 @@ EXAMPLES = ''' password: admin connection: local - name: Add a comment to an existing host record - nios_host_record: + community.general.nios_host_record: name: host.ansible.com ipv4: - address: 192.168.10.1 @@ -172,7 +172,7 @@ EXAMPLES = ''' password: admin connection: local - name: Remove a host record from the system - nios_host_record: + community.general.nios_host_record: name: host.ansible.com state: absent provider: @@ -181,7 +181,7 @@ EXAMPLES = ''' password: admin connection: local - name: Update an ipv4 host record - nios_host_record: + community.general.nios_host_record: name: {new_name: host-new.ansible.com, old_name: host.ansible.com} ipv4: - address: 192.168.10.1 @@ -192,7 +192,7 @@ EXAMPLES = ''' password: admin connection: local - name: Create an ipv4 host record bypassing DNS - nios_host_record: + community.general.nios_host_record: name: new_host ipv4: - address: 192.168.10.1 @@ -204,7 +204,7 @@ EXAMPLES = ''' password: admin connection: local - name: Create an ipv4 host record over DHCP - nios_host_record: + community.general.nios_host_record: name: host.ansible.com ipv4: - address: 192.168.10.1 @@ -217,7 +217,7 @@ EXAMPLES = ''' password: admin connection: local - name: Dynamically add host record to next available ip - nios_host_record: + community.general.nios_host_record: name: host.ansible.com ipv4: - address: {nios_next_ip: 192.168.10.0/24} @@ -229,7 +229,7 @@ EXAMPLES = ''' password: admin connection: local - name: Add ip to host record - nios_host_record: + community.general.nios_host_record: name: host.ansible.com ipv4: - address: 192.168.10.2 @@ -241,7 +241,7 @@ EXAMPLES = ''' password: admin connection: local - name: Remove ip to host record - nios_host_record: + community.general.nios_host_record: name: host.ansible.com ipv4: - address: 192.168.10.1 diff --git a/plugins/modules/net_tools/nios/nios_member.py b/plugins/modules/net_tools/nios/nios_member.py index 8b42d9ea69..8c200b82bb 100644 --- a/plugins/modules/net_tools/nios/nios_member.py +++ b/plugins/modules/net_tools/nios/nios_member.py @@ -299,7 +299,7 @@ options: EXAMPLES = ''' - name: Add a member to the grid with IPv4 address - nios_member: + community.general.nios_member: host_name: member01.localdomain vip_setting: - address: 192.168.1.100 @@ -315,7 +315,7 @@ EXAMPLES = ''' password: admin connection: local - name: Add a HA member to the grid - nios_member: + community.general.nios_member: host_name: memberha.localdomain vip_setting: - address: 192.168.1.100 @@ -340,7 +340,7 @@ EXAMPLES = ''' password: admin connection: local - name: Update the member with pre-provisioning details specified - nios_member: + community.general.nios_member: name: member01.localdomain pre_provisioning: - hardware_info: @@ -359,7 +359,7 @@ EXAMPLES = ''' password: admin connection: local - name: Remove the member - nios_member: + community.general.nios_member: name: member01.localdomain state: absent provider: diff --git a/plugins/modules/net_tools/nios/nios_mx_record.py b/plugins/modules/net_tools/nios/nios_mx_record.py index 7a780f774d..25fdf5e7c8 100644 --- a/plugins/modules/net_tools/nios/nios_mx_record.py +++ b/plugins/modules/net_tools/nios/nios_mx_record.py @@ -70,7 +70,7 @@ options: EXAMPLES = ''' - name: Configure an MX record - nios_mx_record: + community.general.nios_mx_record: name: ansible.com mx: mailhost.ansible.com preference: 0 @@ -82,7 +82,7 @@ EXAMPLES = ''' connection: local - name: Add a comment to an existing MX record - nios_mx_record: + community.general.nios_mx_record: name: ansible.com mx: mailhost.ansible.com preference: 0 @@ -95,7 +95,7 @@ EXAMPLES = ''' connection: local - name: Remove an MX record from the system - nios_mx_record: + community.general.nios_mx_record: name: ansible.com mx: mailhost.ansible.com preference: 0 diff --git a/plugins/modules/net_tools/nios/nios_naptr_record.py b/plugins/modules/net_tools/nios/nios_naptr_record.py index a00fdd3b26..bc3df4d968 100644 --- a/plugins/modules/net_tools/nios/nios_naptr_record.py +++ b/plugins/modules/net_tools/nios/nios_naptr_record.py @@ -98,7 +98,7 @@ options: EXAMPLES = ''' - name: Configure a NAPTR record - nios_naptr_record: + community.general.nios_naptr_record: name: '*.subscriber-100.ansiblezone.com' order: 1000 preference: 10 @@ -111,7 +111,7 @@ EXAMPLES = ''' connection: local - name: Add a comment to an existing NAPTR record - nios_naptr_record: + community.general.nios_naptr_record: name: '*.subscriber-100.ansiblezone.com' order: 1000 preference: 10 @@ -125,7 +125,7 @@ EXAMPLES = ''' connection: local - name: Remove a NAPTR record from the system - nios_naptr_record: + community.general.nios_naptr_record: name: '*.subscriber-100.ansiblezone.com' order: 1000 preference: 10 diff --git a/plugins/modules/net_tools/nios/nios_network.py b/plugins/modules/net_tools/nios/nios_network.py index d317e14184..05f4712702 100644 --- a/plugins/modules/net_tools/nios/nios_network.py +++ b/plugins/modules/net_tools/nios/nios_network.py @@ -93,7 +93,7 @@ options: EXAMPLES = ''' - name: Configure a network ipv4 - nios_network: + community.general.nios_network: network: 192.168.10.0/24 comment: this is a test comment state: present @@ -103,7 +103,7 @@ EXAMPLES = ''' password: admin connection: local - name: Configure a network ipv6 - nios_network: + community.general.nios_network: network: fe80::/64 comment: this is a test comment state: present @@ -113,7 +113,7 @@ EXAMPLES = ''' password: admin connection: local - name: Set dhcp options for a network ipv4 - nios_network: + community.general.nios_network: network: 192.168.10.0/24 comment: this is a test comment options: @@ -126,7 +126,7 @@ EXAMPLES = ''' password: admin connection: local - name: Remove a network ipv4 - nios_network: + community.general.nios_network: network: 192.168.10.0/24 state: absent provider: @@ -135,7 +135,7 @@ EXAMPLES = ''' password: admin connection: local - name: Configure a ipv4 network container - nios_network: + community.general.nios_network: network: 192.168.10.0/24 container: true comment: test network container @@ -146,7 +146,7 @@ EXAMPLES = ''' password: admin connection: local - name: Configure a ipv6 network container - nios_network: + community.general.nios_network: network: fe80::/64 container: true comment: test network container @@ -157,7 +157,7 @@ EXAMPLES = ''' password: admin connection: local - name: Remove a ipv4 network container - nios_network: + community.general.nios_network: networkr: 192.168.10.0/24 container: true comment: test network container diff --git a/plugins/modules/net_tools/nios/nios_network_view.py b/plugins/modules/net_tools/nios/nios_network_view.py index 2e2e280e86..d13052b0ef 100644 --- a/plugins/modules/net_tools/nios/nios_network_view.py +++ b/plugins/modules/net_tools/nios/nios_network_view.py @@ -53,7 +53,7 @@ options: EXAMPLES = ''' - name: Configure a new network view - nios_network_view: + community.general.nios_network_view: name: ansible state: present provider: @@ -62,7 +62,7 @@ EXAMPLES = ''' password: admin connection: local - name: Update the comment for network view - nios_network_view: + community.general.nios_network_view: name: ansible comment: this is an example comment state: present @@ -72,7 +72,7 @@ EXAMPLES = ''' password: admin connection: local - name: Remove the network view - nios_network_view: + community.general.nios_network_view: name: ansible state: absent provider: @@ -81,7 +81,7 @@ EXAMPLES = ''' password: admin connection: local - name: Update a existing network view - nios_network_view: + community.general.nios_network_view: name: {new_name: ansible-new, old_name: ansible} state: present provider: diff --git a/plugins/modules/net_tools/nios/nios_nsgroup.py b/plugins/modules/net_tools/nios/nios_nsgroup.py index fae3abfcdd..c7cb6f78c8 100644 --- a/plugins/modules/net_tools/nios/nios_nsgroup.py +++ b/plugins/modules/net_tools/nios/nios_nsgroup.py @@ -183,7 +183,7 @@ options: EXAMPLES = ''' - name: Create simple infoblox nameserver group - nios_nsgroup: + community.general.nios_nsgroup: name: my-simple-group comment: "this is a simple nameserver group" grid_primary: @@ -196,7 +196,7 @@ EXAMPLES = ''' connection: local - name: Create infoblox nameserver group with external primaries - nios_nsgroup: + community.general.nios_nsgroup: name: my-example-group use_external_primary: true comment: "this is my example nameserver group" @@ -213,7 +213,7 @@ EXAMPLES = ''' connection: local - name: Delete infoblox nameserver group - nios_nsgroup: + community.general.nios_nsgroup: name: my-simple-group comment: "this is a simple nameserver group" grid_primary: diff --git a/plugins/modules/net_tools/nios/nios_ptr_record.py b/plugins/modules/net_tools/nios/nios_ptr_record.py index 52db0bec50..df3356ebce 100644 --- a/plugins/modules/net_tools/nios/nios_ptr_record.py +++ b/plugins/modules/net_tools/nios/nios_ptr_record.py @@ -79,7 +79,7 @@ options: EXAMPLES = ''' - name: Create a PTR Record - nios_ptr_record: + community.general.nios_ptr_record: ipv4: 192.168.10.1 ptrdname: host.ansible.com state: present @@ -90,7 +90,7 @@ EXAMPLES = ''' connection: local - name: Delete a PTR Record - nios_ptr_record: + community.general.nios_ptr_record: ipv4: 192.168.10.1 ptrdname: host.ansible.com state: absent diff --git a/plugins/modules/net_tools/nios/nios_srv_record.py b/plugins/modules/net_tools/nios/nios_srv_record.py index 7a1b3fe265..3a037c2e4e 100644 --- a/plugins/modules/net_tools/nios/nios_srv_record.py +++ b/plugins/modules/net_tools/nios/nios_srv_record.py @@ -76,7 +76,7 @@ options: EXAMPLES = ''' - name: Configure an SRV record - nios_srv_record: + community.general.nios_srv_record: name: _sip._tcp.service.ansible.com port: 5080 priority: 10 @@ -90,7 +90,7 @@ EXAMPLES = ''' connection: local - name: Add a comment to an existing SRV record - nios_srv_record: + community.general.nios_srv_record: name: _sip._tcp.service.ansible.com port: 5080 priority: 10 @@ -105,7 +105,7 @@ EXAMPLES = ''' connection: local - name: Remove an SRV record from the system - nios_srv_record: + community.general.nios_srv_record: name: _sip._tcp.service.ansible.com port: 5080 priority: 10 diff --git a/plugins/modules/net_tools/nios/nios_txt_record.py b/plugins/modules/net_tools/nios/nios_txt_record.py index 5cf8978c3d..7ace375b96 100644 --- a/plugins/modules/net_tools/nios/nios_txt_record.py +++ b/plugins/modules/net_tools/nios/nios_txt_record.py @@ -67,7 +67,7 @@ options: EXAMPLES = ''' - name: Ensure a text Record Exists - nios_txt_record: + community.general.nios_txt_record: name: fqdn.txt.record.com text: mytext state: present @@ -78,7 +78,7 @@ EXAMPLES = ''' password: admin - name: Ensure a text Record does not exist - nios_txt_record: + community.general.nios_txt_record: name: fqdn.txt.record.com text: mytext state: absent diff --git a/plugins/modules/net_tools/nios/nios_zone.py b/plugins/modules/net_tools/nios/nios_zone.py index 326f2c6592..661fac63d9 100644 --- a/plugins/modules/net_tools/nios/nios_zone.py +++ b/plugins/modules/net_tools/nios/nios_zone.py @@ -90,7 +90,7 @@ options: EXAMPLES = ''' - name: Configure a zone on the system using grid primary and secondaries - nios_zone: + community.general.nios_zone: name: ansible.com grid_primary: - name: gridprimary.grid.com @@ -105,7 +105,7 @@ EXAMPLES = ''' password: admin connection: local - name: Configure a zone on the system using a name server group - nios_zone: + community.general.nios_zone: name: ansible.com ns_group: examplensg restart_if_needed: true @@ -116,7 +116,7 @@ EXAMPLES = ''' password: admin connection: local - name: Configure a reverse mapping zone on the system using IPV4 zone format - nios_zone: + community.general.nios_zone: name: 10.10.10.0/24 zone_format: IPV4 state: present @@ -126,7 +126,7 @@ EXAMPLES = ''' password: admin connection: local - name: Configure a reverse mapping zone on the system using IPV6 zone format - nios_zone: + community.general.nios_zone: name: 100::1/128 zone_format: IPV6 state: present @@ -136,7 +136,7 @@ EXAMPLES = ''' password: admin connection: local - name: Update the comment and ext attributes for an existing zone - nios_zone: + community.general.nios_zone: name: ansible.com comment: this is an example comment extattrs: @@ -148,7 +148,7 @@ EXAMPLES = ''' password: admin connection: local - name: Remove the dns zone - nios_zone: + community.general.nios_zone: name: ansible.com state: absent provider: @@ -157,7 +157,7 @@ EXAMPLES = ''' password: admin connection: local - name: Remove the reverse mapping dns zone from the system with IPV4 zone format - nios_zone: + community.general.nios_zone: name: 10.10.10.0/24 zone_format: IPV4 state: absent diff --git a/plugins/modules/net_tools/nmcli.py b/plugins/modules/net_tools/nmcli.py index 41e113ecc0..faa00b0bde 100644 --- a/plugins/modules/net_tools/nmcli.py +++ b/plugins/modules/net_tools/nmcli.py @@ -365,7 +365,7 @@ EXAMPLES = r''' ##### Working with all cloud nodes - Teaming - name: Try nmcli add team - conn_name only & ip4 gw4 - nmcli: + community.general.nmcli: type: team conn_name: '{{ item.conn_name }}' ip4: '{{ item.ip4 }}' @@ -375,7 +375,7 @@ EXAMPLES = r''' - '{{ nmcli_team }}' - name: Try nmcli add teams-slave - nmcli: + community.general.nmcli: type: team-slave conn_name: '{{ item.conn_name }}' ifname: '{{ item.ifname }}' @@ -386,7 +386,7 @@ EXAMPLES = r''' ###### Working with all cloud nodes - Bonding - name: Try nmcli add bond - conn_name only & ip4 gw4 mode - nmcli: + community.general.nmcli: type: bond conn_name: '{{ item.conn_name }}' ip4: '{{ item.ip4 }}' @@ -397,7 +397,7 @@ EXAMPLES = r''' - '{{ nmcli_bond }}' - name: Try nmcli add bond-slave - nmcli: + community.general.nmcli: type: bond-slave conn_name: '{{ item.conn_name }}' ifname: '{{ item.ifname }}' @@ -408,7 +408,7 @@ EXAMPLES = r''' ##### Working with all cloud nodes - Ethernet - name: Try nmcli add Ethernet - conn_name only & ip4 gw4 - nmcli: + community.general.nmcli: type: ethernet conn_name: '{{ item.conn_name }}' ip4: '{{ item.ip4 }}' @@ -423,7 +423,7 @@ EXAMPLES = r''' tasks: - name: Try nmcli del team - multiple - nmcli: + community.general.nmcli: conn_name: '{{ item.conn_name }}' state: absent with_items: @@ -444,7 +444,7 @@ EXAMPLES = r''' - conn_name: team-p2p2 - name: Add an Ethernet connection with static IP configuration - nmcli: + community.general.nmcli: conn_name: my-eth1 ifname: eth1 type: ethernet @@ -453,7 +453,7 @@ EXAMPLES = r''' state: present - name: Add an Team connection with static IP configuration - nmcli: + community.general.nmcli: conn_name: my-team1 ifname: my-team1 type: team @@ -463,7 +463,7 @@ EXAMPLES = r''' autoconnect: yes - name: Optionally, at the same time specify IPv6 addresses for the device - nmcli: + community.general.nmcli: conn_name: my-eth1 ifname: eth1 type: ethernet @@ -474,7 +474,7 @@ EXAMPLES = r''' state: present - name: Add two IPv4 DNS server addresses - nmcli: + community.general.nmcli: conn_name: my-eth1 type: ethernet dns4: @@ -483,21 +483,21 @@ EXAMPLES = r''' state: present - name: Make a profile usable for all compatible Ethernet interfaces - nmcli: + community.general.nmcli: ctype: ethernet name: my-eth1 ifname: '*' state: present - name: Change the property of a setting e.g. MTU - nmcli: + community.general.nmcli: conn_name: my-eth1 mtu: 9000 type: ethernet state: present - name: Add VxLan - nmcli: + community.general.nmcli: type: vxlan conn_name: vxlan_test1 vxlan_id: 16 @@ -505,7 +505,7 @@ EXAMPLES = r''' vxlan_remote: 192.168.1.5 - name: Add ipip - nmcli: + community.general.nmcli: type: ipip conn_name: ipip_test1 ip_tunnel_dev: eth0 @@ -513,7 +513,7 @@ EXAMPLES = r''' ip_tunnel_remote: 192.168.1.5 - name: Add sit - nmcli: + community.general.nmcli: type: sit conn_name: sit_test1 ip_tunnel_dev: eth0 @@ -969,7 +969,7 @@ class Nmcli(object): def create_connection_ethernet(self, conn_type='ethernet'): # format for creating ethernet interface # To add an Ethernet connection with static IP configuration, issue a command as follows - # - nmcli: name=add conn_name=my-eth1 ifname=eth1 type=ethernet ip4=192.0.2.100/24 gw4=192.0.2.1 state=present + # - community.general.nmcli: name=add conn_name=my-eth1 ifname=eth1 type=ethernet ip4=192.0.2.100/24 gw4=192.0.2.1 state=present # nmcli con add con-name my-eth1 ifname eth1 type ethernet ip4 192.0.2.100/24 gw4 192.0.2.1 cmd = [self.nmcli_bin, 'con', 'add', 'type'] if conn_type == 'ethernet': @@ -1008,7 +1008,7 @@ class Nmcli(object): cmd = [self.nmcli_bin, 'con', 'mod', self.conn_name] # format for modifying ethernet interface # To modify an Ethernet connection with static IP configuration, issue a command as follows - # - nmcli: conn_name=my-eth1 ifname=eth1 type=ethernet ip4=192.0.2.100/24 gw4=192.0.2.1 state=present + # - community.general.nmcli: conn_name=my-eth1 ifname=eth1 type=ethernet ip4=192.0.2.100/24 gw4=192.0.2.1 state=present # nmcli con mod con-name my-eth1 ifname eth1 type ethernet ipv4.address 192.0.2.100/24 ipv4.gateway 192.0.2.1 options = { 'ipv4.method': self.ipv4_method, @@ -1037,7 +1037,7 @@ class Nmcli(object): def create_connection_bridge(self): # format for creating bridge interface # To add an Bridge connection with static IP configuration, issue a command as follows - # - nmcli: name=add conn_name=my-eth1 ifname=eth1 type=bridge ip4=192.0.2.100/24 gw4=192.0.2.1 state=present + # - community.general.nmcli: name=add conn_name=my-eth1 ifname=eth1 type=bridge ip4=192.0.2.100/24 gw4=192.0.2.1 state=present # nmcli con add con-name my-eth1 ifname eth1 type bridge ip4 192.0.2.100/24 gw4 192.0.2.1 cmd = [self.nmcli_bin, 'con', 'add', 'type', 'bridge', 'con-name'] if self.conn_name is not None: @@ -1074,7 +1074,7 @@ class Nmcli(object): def modify_connection_bridge(self): # format for modifying bridge interface # To add an Bridge connection with static IP configuration, issue a command as follows - # - nmcli: name=mod conn_name=my-eth1 ifname=eth1 type=bridge ip4=192.0.2.100/24 gw4=192.0.2.1 state=present + # - community.general.nmcli: name=mod conn_name=my-eth1 ifname=eth1 type=bridge ip4=192.0.2.100/24 gw4=192.0.2.1 state=present # nmcli con mod my-eth1 ifname eth1 type bridge ip4 192.0.2.100/24 gw4 192.0.2.1 cmd = [self.nmcli_bin, 'con', 'mod', self.conn_name] diff --git a/plugins/modules/net_tools/nsupdate.py b/plugins/modules/net_tools/nsupdate.py index 5444fe5025..9d4a5186b0 100644 --- a/plugins/modules/net_tools/nsupdate.py +++ b/plugins/modules/net_tools/nsupdate.py @@ -77,7 +77,7 @@ options: EXAMPLES = ''' - name: Add or modify ansible.example.org A to 192.168.1.1" - nsupdate: + community.general.nsupdate: key_name: "nsupdate" key_secret: "+bFQtBCta7j2vWkjPkAFtgA==" server: "10.1.1.1" @@ -86,7 +86,7 @@ EXAMPLES = ''' value: "192.168.1.1" - name: Add or modify ansible.example.org A to 192.168.1.1, 192.168.1.2 and 192.168.1.3" - nsupdate: + community.general.nsupdate: key_name: "nsupdate" key_secret: "+bFQtBCta7j2vWkjPkAFtgA==" server: "10.1.1.1" @@ -95,7 +95,7 @@ EXAMPLES = ''' value: ["192.168.1.1", "192.168.1.2", "192.168.1.3"] - name: Remove puppet.example.org CNAME - nsupdate: + community.general.nsupdate: key_name: "nsupdate" key_secret: "+bFQtBCta7j2vWkjPkAFtgA==" server: "10.1.1.1" @@ -105,7 +105,7 @@ EXAMPLES = ''' state: absent - name: Add 1.1.168.192.in-addr.arpa. PTR for ansible.example.org - nsupdate: + community.general.nsupdate: key_name: "nsupdate" key_secret: "+bFQtBCta7j2vWkjPkAFtgA==" server: "10.1.1.1" @@ -115,7 +115,7 @@ EXAMPLES = ''' state: present - name: Remove 1.1.168.192.in-addr.arpa. PTR - nsupdate: + community.general.nsupdate: key_name: "nsupdate" key_secret: "+bFQtBCta7j2vWkjPkAFtgA==" server: "10.1.1.1" diff --git a/plugins/modules/net_tools/omapi_host.py b/plugins/modules/net_tools/omapi_host.py index 6750789853..92652a22b2 100644 --- a/plugins/modules/net_tools/omapi_host.py +++ b/plugins/modules/net_tools/omapi_host.py @@ -73,7 +73,7 @@ options: ''' EXAMPLES = r''' - name: Add a host using OMAPI - omapi_host: + community.general.omapi_host: key_name: defomapi key: +bFQtBCta6j2vWkjPkNFtgA== host: 10.98.4.55 @@ -87,7 +87,7 @@ EXAMPLES = r''' state: present - name: Remove a host using OMAPI - omapi_host: + community.general.omapi_host: key_name: defomapi key: +bFQtBCta6j2vWkjPkNFtgA== host: 10.1.1.1 diff --git a/plugins/modules/net_tools/snmp_facts.py b/plugins/modules/net_tools/snmp_facts.py index 303fd4a4a1..96a7a554d8 100644 --- a/plugins/modules/net_tools/snmp_facts.py +++ b/plugins/modules/net_tools/snmp_facts.py @@ -71,14 +71,14 @@ options: EXAMPLES = r''' - name: Gather facts with SNMP version 2 - snmp_facts: + community.general.snmp_facts: host: '{{ inventory_hostname }}' version: v2c community: public delegate_to: local - name: Gather facts using SNMP version 3 - snmp_facts: + community.general.snmp_facts: host: '{{ inventory_hostname }}' version: v3 level: authPriv diff --git a/plugins/modules/notification/campfire.py b/plugins/modules/notification/campfire.py index 605fd719ef..6d24205e2d 100644 --- a/plugins/modules/notification/campfire.py +++ b/plugins/modules/notification/campfire.py @@ -53,14 +53,14 @@ author: "Adam Garside (@fabulops)" EXAMPLES = ''' - name: Send a message to Campfire - campfire: + community.general.campfire: subscription: foo token: 12345 room: 123 msg: Task completed. - name: Send a message to Campfire - campfire: + community.general.campfire: subscription: foo token: 12345 room: 123 diff --git a/plugins/modules/notification/catapult.py b/plugins/modules/notification/catapult.py index 2108a23f06..2fd67cddde 100644 --- a/plugins/modules/notification/catapult.py +++ b/plugins/modules/notification/catapult.py @@ -54,7 +54,7 @@ notes: EXAMPLES = ''' - name: Send a mms to multiple users - catapult: + community.general.catapult: src: "+15035555555" dest: - "+12525089000" @@ -66,7 +66,7 @@ EXAMPLES = ''' api_secret: "{{ api_secret }}" - name: Send a sms to a single user - catapult: + community.general.catapult: src: "+15035555555" dest: "+12018994225" msg: "Consider yourself notified" diff --git a/plugins/modules/notification/flowdock.py b/plugins/modules/notification/flowdock.py index 166c5c0131..920f62a782 100644 --- a/plugins/modules/notification/flowdock.py +++ b/plugins/modules/notification/flowdock.py @@ -78,7 +78,7 @@ requirements: [ ] EXAMPLES = ''' - name: Send a message to a flowdock - flowdock: + community.general.flowdock: type: inbox token: AAAAAA from_address: user@example.com @@ -87,7 +87,7 @@ EXAMPLES = ''' subject: test subject - name: Send a message to a flowdock - flowdock: + community.general.flowdock: type: chat token: AAAAAA external_user_name: testuser diff --git a/plugins/modules/notification/grove.py b/plugins/modules/notification/grove.py index 9a01ca6092..912cfa5cc1 100644 --- a/plugins/modules/notification/grove.py +++ b/plugins/modules/notification/grove.py @@ -48,7 +48,7 @@ author: "Jonas Pfenniger (@zimbatm)" EXAMPLES = ''' - name: Sends a notification to a grove.io channel - grove: + community.general.grove: channel_token: 6Ph62VBBJOccmtTPZbubiPzdrhipZXtg service: my-app message: 'deployed {{ target }}' diff --git a/plugins/modules/notification/hipchat.py b/plugins/modules/notification/hipchat.py index b2c817778b..e973d6be00 100644 --- a/plugins/modules/notification/hipchat.py +++ b/plugins/modules/notification/hipchat.py @@ -66,12 +66,12 @@ author: EXAMPLES = ''' - name: Send a message to a Hipchat room - hipchat: + community.general.hipchat: room: notif msg: Ansible task finished - name: Send a message to a Hipchat room using Hipchat API version 2 - hipchat: + community.general.hipchat: api: https://api.hipchat.com/v2/ token: OAUTH2_TOKEN room: notify diff --git a/plugins/modules/notification/irc.py b/plugins/modules/notification/irc.py index a416536cc3..b7c60ff66e 100644 --- a/plugins/modules/notification/irc.py +++ b/plugins/modules/notification/irc.py @@ -84,7 +84,7 @@ author: EXAMPLES = ''' - name: Send a message to an IRC channel from nick ansible - irc: + community.general.irc: server: irc.example.net channel: #t1 msg: Hello world diff --git a/plugins/modules/notification/jabber.py b/plugins/modules/notification/jabber.py index b6b8a0fa5b..ac37ce677d 100644 --- a/plugins/modules/notification/jabber.py +++ b/plugins/modules/notification/jabber.py @@ -50,21 +50,21 @@ author: "Brian Coca (@bcoca)" EXAMPLES = ''' - name: Send a message to a user - jabber: + community.general.jabber: user: mybot@example.net password: secret to: friend@example.net msg: Ansible task finished - name: Send a message to a room - jabber: + community.general.jabber: user: mybot@example.net password: secret to: mychaps@conference.example.net/ansiblebot msg: Ansible task finished - name: Send a message, specifying the host and port - jabber: + community.general.jabber: user: mybot@example.net host: talk.example.net port: 5223 diff --git a/plugins/modules/notification/logentries_msg.py b/plugins/modules/notification/logentries_msg.py index ac2372187c..c73c6692e8 100644 --- a/plugins/modules/notification/logentries_msg.py +++ b/plugins/modules/notification/logentries_msg.py @@ -40,7 +40,7 @@ RETURN = '''# ''' EXAMPLES = ''' - name: Send a message to logentries - logentries_msg: + community.general.logentries_msg: token=00000000-0000-0000-0000-000000000000 msg="{{ ansible_hostname }}" ''' diff --git a/plugins/modules/notification/mail.py b/plugins/modules/notification/mail.py index 50bdc1872b..4dde4c314f 100644 --- a/plugins/modules/notification/mail.py +++ b/plugins/modules/notification/mail.py @@ -123,12 +123,12 @@ options: EXAMPLES = r''' - name: Example playbook sending mail to root - mail: + community.general.mail: subject: System {{ ansible_hostname }} has been successfully provisioned. delegate_to: localhost - name: Sending an e-mail using Gmail SMTP servers - mail: + community.general.mail: host: smtp.gmail.com port: 587 username: username@gmail.com @@ -139,7 +139,7 @@ EXAMPLES = r''' delegate_to: localhost - name: Send e-mail to a bunch of users, attaching files - mail: + community.general.mail: host: 127.0.0.1 port: 2025 subject: Ansible-report @@ -159,7 +159,7 @@ EXAMPLES = r''' delegate_to: localhost - name: Sending an e-mail using the remote machine, not the Ansible controller node - mail: + community.general.mail: host: localhost port: 25 to: John Smith @@ -167,7 +167,7 @@ EXAMPLES = r''' body: System {{ ansible_hostname }} has been successfully provisioned. - name: Sending an e-mail using Legacy SSL to the remote machine - mail: + community.general.mail: host: localhost port: 25 to: John Smith @@ -176,7 +176,7 @@ EXAMPLES = r''' secure: always - name: Sending an e-mail using StartTLS to the remote machine - mail: + community.general.mail: host: localhost port: 25 to: John Smith @@ -360,7 +360,7 @@ def main(): part.add_header('Content-disposition', 'attachment', filename=os.path.basename(filename)) msg.attach(part) except Exception as e: - module.fail_json(rc=1, msg="Failed to send mail: can't attach file %s: %s" % + module.fail_json(rc=1, msg="Failed to send community.general.mail: can't attach file %s: %s" % (filename, to_native(e)), exception=traceback.format_exc()) composed = msg.as_string() diff --git a/plugins/modules/notification/matrix.py b/plugins/modules/notification/matrix.py index ed4266c284..259be24386 100644 --- a/plugins/modules/notification/matrix.py +++ b/plugins/modules/notification/matrix.py @@ -46,7 +46,7 @@ requirements: EXAMPLES = ''' - name: Send matrix notification with token - matrix: + community.general.matrix: msg_plain: "**hello world**" msg_html: "hello world" room_id: "!12345678:server.tld" @@ -54,7 +54,7 @@ EXAMPLES = ''' token: "{{ matrix_auth_token }}" - name: Send matrix notification with user_id and password - matrix: + community.general.matrix: msg_plain: "**hello world**" msg_html: "hello world" room_id: "!12345678:server.tld" diff --git a/plugins/modules/notification/mattermost.py b/plugins/modules/notification/mattermost.py index e16a7331dd..405c501196 100644 --- a/plugins/modules/notification/mattermost.py +++ b/plugins/modules/notification/mattermost.py @@ -57,13 +57,13 @@ options: EXAMPLES = """ - name: Send notification message via Mattermost - mattermost: + community.general.mattermost: url: http://mattermost.example.com api_key: my_api_key text: '{{ inventory_hostname }} completed' - name: Send notification message via Mattermost all options - mattermost: + community.general.mattermost: url: http://mattermost.example.com api_key: my_api_key text: '{{ inventory_hostname }} completed' diff --git a/plugins/modules/notification/mqtt.py b/plugins/modules/notification/mqtt.py index 89898ca559..ebc99ddf01 100644 --- a/plugins/modules/notification/mqtt.py +++ b/plugins/modules/notification/mqtt.py @@ -96,7 +96,7 @@ author: "Jan-Piet Mens (@jpmens)" EXAMPLES = ''' - name: Publish a message on an MQTT topic - mqtt: + community.general.mqtt: topic: 'service/ansible/{{ ansible_hostname }}' payload: 'Hello at {{ ansible_date_time.iso8601 }}' qos: 0 diff --git a/plugins/modules/notification/nexmo.py b/plugins/modules/notification/nexmo.py index b2c0d929a6..c001adf6f5 100644 --- a/plugins/modules/notification/nexmo.py +++ b/plugins/modules/notification/nexmo.py @@ -48,7 +48,7 @@ extends_documentation_fragment: EXAMPLES = """ - name: Send notification message via Nexmo - nexmo: + community.general.nexmo: api_key: 640c8a53 api_secret: 0ce239a6 src: 12345678901 diff --git a/plugins/modules/notification/office_365_connector_card.py b/plugins/modules/notification/office_365_connector_card.py index e6bc83003a..c5ddf2babd 100644 --- a/plugins/modules/notification/office_365_connector_card.py +++ b/plugins/modules/notification/office_365_connector_card.py @@ -50,12 +50,12 @@ options: EXAMPLES = """ - name: Create a simple Connector Card - office_365_connector_card: + community.general.office_365_connector_card: webhook: https://outlook.office.com/webhook/GUID/IncomingWebhook/GUID/GUID text: 'Hello, World!' - name: Create a Connector Card with the full format - office_365_connector_card: + community.general.office_365_connector_card: webhook: https://outlook.office.com/webhook/GUID/IncomingWebhook/GUID/GUID summary: This is the summary property title: This is the **card's title** property diff --git a/plugins/modules/notification/pushbullet.py b/plugins/modules/notification/pushbullet.py index b1ba17ba4a..8afd3ca118 100644 --- a/plugins/modules/notification/pushbullet.py +++ b/plugins/modules/notification/pushbullet.py @@ -51,13 +51,13 @@ notes: EXAMPLES = ''' - name: Sends a push notification to a device - pushbullet: + community.general.pushbullet: api_key: "ABC123abc123ABC123abc123ABC123ab" device: "Chrome" title: "You may see this on Google Chrome" - name: Sends a link to a device - pushbullet: + community.general.pushbullet: api_key: ABC123abc123ABC123abc123ABC123ab device: Chrome push_type: link @@ -65,13 +65,13 @@ EXAMPLES = ''' body: https://docs.ansible.com/ - name: Sends a push notification to a channel - pushbullet: + community.general.pushbullet: api_key: ABC123abc123ABC123abc123ABC123ab channel: my-awesome-channel title: Broadcasting a message to the #my-awesome-channel folks - name: Sends a push notification with title and body to a channel - pushbullet: + community.general.pushbullet: api_key: ABC123abc123ABC123abc123ABC123ab channel: my-awesome-channel title: ALERT! Signup service is down diff --git a/plugins/modules/notification/pushover.py b/plugins/modules/notification/pushover.py index dc26f501a7..4d8259dc0a 100644 --- a/plugins/modules/notification/pushover.py +++ b/plugins/modules/notification/pushover.py @@ -44,14 +44,14 @@ author: "Jim Richardson (@weaselkeeper)" EXAMPLES = ''' - name: Send notifications via pushover.net - pushover: + community.general.pushover: msg: '{{ inventory_hostname }} is acting strange ...' app_token: wxfdksl user_key: baa5fe97f2c5ab3ca8f0bb59 delegate_to: localhost - name: Send notifications via pushover.net - pushover: + community.general.pushover: title: 'Alert!' msg: '{{ inventory_hostname }} has exploded in flames, It is now time to panic' pri: 1 diff --git a/plugins/modules/notification/rocketchat.py b/plugins/modules/notification/rocketchat.py index 6467d600c6..746f640658 100644 --- a/plugins/modules/notification/rocketchat.py +++ b/plugins/modules/notification/rocketchat.py @@ -84,14 +84,14 @@ options: EXAMPLES = """ - name: Send notification message via Rocket Chat - rocketchat: + community.general.rocketchat: token: thetoken/generatedby/rocketchat domain: chat.example.com msg: '{{ inventory_hostname }} completed' delegate_to: localhost - name: Send notification message via Rocket Chat all options - rocketchat: + community.general.rocketchat: domain: chat.example.com token: thetoken/generatedby/rocketchat msg: '{{ inventory_hostname }} completed' @@ -102,7 +102,7 @@ EXAMPLES = """ delegate_to: localhost - name: Insert a color bar in front of the message for visibility purposes and use the default webhook icon and name configured in rocketchat - rocketchat: + community.general.rocketchat: token: thetoken/generatedby/rocketchat domain: chat.example.com msg: '{{ inventory_hostname }} is alive!' @@ -112,7 +112,7 @@ EXAMPLES = """ delegate_to: localhost - name: Use the attachments API - rocketchat: + community.general.rocketchat: token: thetoken/generatedby/rocketchat domain: chat.example.com attachments: diff --git a/plugins/modules/notification/say.py b/plugins/modules/notification/say.py index 7181185a5b..783ecd2fc0 100644 --- a/plugins/modules/notification/say.py +++ b/plugins/modules/notification/say.py @@ -35,7 +35,7 @@ author: EXAMPLES = ''' - name: Makes a computer to speak - say: + community.general.say: msg: '{{ inventory_hostname }} is all done' voice: Zarvox delegate_to: localhost diff --git a/plugins/modules/notification/sendgrid.py b/plugins/modules/notification/sendgrid.py index eca2df2cef..191ba05644 100644 --- a/plugins/modules/notification/sendgrid.py +++ b/plugins/modules/notification/sendgrid.py @@ -75,7 +75,7 @@ author: "Matt Makai (@makaimc)" EXAMPLES = ''' - name: Send an email to a single recipient that the deployment was successful - sendgrid: + community.general.sendgrid: username: "{{ sendgrid_username }}" password: "{{ sendgrid_password }}" from_address: "ansible@mycompany.com" @@ -86,7 +86,7 @@ EXAMPLES = ''' delegate_to: localhost - name: Send an email to more than one recipient that the build failed - sendgrid: + community.general.sendgrid: username: "{{ sendgrid_username }}" password: "{{ sendgrid_password }}" from_address: "build@mycompany.com" diff --git a/plugins/modules/notification/slack.py b/plugins/modules/notification/slack.py index 5116999545..c9217c7867 100644 --- a/plugins/modules/notification/slack.py +++ b/plugins/modules/notification/slack.py @@ -105,13 +105,13 @@ options: EXAMPLES = """ - name: Send notification message via Slack - slack: + community.general.slack: token: thetoken/generatedby/slack msg: '{{ inventory_hostname }} completed' delegate_to: localhost - name: Send notification message via Slack all options - slack: + community.general.slack: token: thetoken/generatedby/slack msg: '{{ inventory_hostname }} completed' channel: '#ansible' @@ -123,7 +123,7 @@ EXAMPLES = """ delegate_to: localhost - name: Insert a color bar in front of the message for visibility purposes and use the default webhook icon and name configured in Slack - slack: + community.general.slack: token: thetoken/generatedby/slack msg: '{{ inventory_hostname }} is alive!' color: good @@ -131,7 +131,7 @@ EXAMPLES = """ icon_url: '' - name: Insert a color bar in front of the message with valid hex color value - slack: + community.general.slack: token: thetoken/generatedby/slack msg: 'This message uses color in hex value' color: '#00aacc' @@ -139,7 +139,7 @@ EXAMPLES = """ icon_url: '' - name: Use the attachments API - slack: + community.general.slack: token: thetoken/generatedby/slack attachments: - text: Display my system load on host A and B @@ -154,23 +154,23 @@ EXAMPLES = """ short: True - name: Send a message with a link using Slack markup - slack: + community.general.slack: token: thetoken/generatedby/slack msg: We sent this message using ! - name: Send a message with angle brackets and ampersands - slack: + community.general.slack: token: thetoken/generatedby/slack msg: This message has <brackets> & ampersands in plain text. - name: Initial Threaded Slack message - slack: + community.general.slack: channel: '#ansible' token: xoxb-1234-56789abcdefghijklmnop msg: 'Starting a thread with my initial post.' register: slack_response - name: Add more info to thread - slack: + community.general.slack: channel: '#ansible' token: xoxb-1234-56789abcdefghijklmnop thread_id: "{{ slack_response['ts'] }}" diff --git a/plugins/modules/notification/syslogger.py b/plugins/modules/notification/syslogger.py index 2eaa9608cc..ce5e2e207b 100644 --- a/plugins/modules/notification/syslogger.py +++ b/plugins/modules/notification/syslogger.py @@ -45,18 +45,18 @@ author: EXAMPLES = r''' - name: Simple Usage - syslogger: + community.general.syslogger: msg: "I will end up as daemon.info" - name: Send a log message with err priority and user facility with log_pid - syslogger: + community.general.syslogger: msg: "Hello from Ansible" priority: "err" facility: "user" log_pid: true - name: Specify the name of application which is sending log message - syslogger: + community.general.syslogger: ident: "MyApp" msg: "I want to believe" priority: "alert" diff --git a/plugins/modules/notification/telegram.py b/plugins/modules/notification/telegram.py index f06cf4931e..c4554f034c 100644 --- a/plugins/modules/notification/telegram.py +++ b/plugins/modules/notification/telegram.py @@ -45,7 +45,7 @@ options: EXAMPLES = """ - name: Send a message to chat in playbook - telegram: + community.general.telegram: token: '9999999:XXXXXXXXXXXXXXXXXXXXXXX' chat_id: 000000 msg: Ansible task finished diff --git a/plugins/modules/notification/twilio.py b/plugins/modules/notification/twilio.py index 71b832a00b..5c591dd907 100644 --- a/plugins/modules/notification/twilio.py +++ b/plugins/modules/notification/twilio.py @@ -56,7 +56,7 @@ EXAMPLES = ''' # note: replace account_sid and auth_token values with your credentials # and you have to have the 'from_number' on your Twilio account - name: Send a text message to a mobile phone through Twilio - twilio: + community.general.twilio: msg: All servers with webserver role are now configured. account_sid: ACXXXXXXXXXXXXXXXXX auth_token: ACXXXXXXXXXXXXXXXXX @@ -68,7 +68,7 @@ EXAMPLES = ''' # note: replace account_sid and auth_token values with your credentials # and you have to have the 'from_number' on your Twilio account - name: Send a text message to a mobile phone through Twilio - twilio: + community.general.twilio: msg: This server configuration is now complete. account_sid: ACXXXXXXXXXXXXXXXXX auth_token: ACXXXXXXXXXXXXXXXXX @@ -84,7 +84,7 @@ EXAMPLES = ''' # note: replace account_sid and auth_token values with your credentials # and you have to have the 'from_number' on your Twilio account - name: Send a text message to a mobile phone through Twilio - twilio: + community.general.twilio: msg: Deployment complete! account_sid: ACXXXXXXXXXXXXXXXXX auth_token: ACXXXXXXXXXXXXXXXXX diff --git a/plugins/modules/notification/typetalk.py b/plugins/modules/notification/typetalk.py index 2ce45264cd..4ae5416651 100644 --- a/plugins/modules/notification/typetalk.py +++ b/plugins/modules/notification/typetalk.py @@ -37,7 +37,7 @@ author: "Takashi Someda (@tksmd)" EXAMPLES = ''' - name: Send a message to typetalk - typetalk: + community.general.typetalk: client_id: 12345 client_secret: 12345 topic: 1 diff --git a/plugins/modules/packaging/language/bower.py b/plugins/modules/packaging/language/bower.py index 2d6aaa1c60..7d6cfd6a6b 100644 --- a/plugins/modules/packaging/language/bower.py +++ b/plugins/modules/packaging/language/bower.py @@ -48,25 +48,25 @@ options: EXAMPLES = ''' - name: Install "bootstrap" bower package. - bower: + community.general.bower: name: bootstrap - name: Install "bootstrap" bower package on version 3.1.1. - bower: + community.general.bower: name: bootstrap version: '3.1.1' - name: Remove the "bootstrap" bower package. - bower: + community.general.bower: name: bootstrap state: absent - name: Install packages based on bower.json. - bower: + community.general.bower: path: /app/location - name: Update packages based on bower.json to their latest version. - bower: + community.general.bower: path: /app/location state: latest @@ -75,7 +75,7 @@ EXAMPLES = ''' path: /app/location name: bower global: no -- bower: +- community.general.bower: path: /app/location relative_execpath: node_modules/.bin ''' diff --git a/plugins/modules/packaging/language/bundler.py b/plugins/modules/packaging/language/bundler.py index 7ad3d42f43..dbd769bee1 100644 --- a/plugins/modules/packaging/language/bundler.py +++ b/plugins/modules/packaging/language/bundler.py @@ -84,27 +84,27 @@ author: "Tim Hoiberg (@thoiberg)" EXAMPLES = ''' - name: Install gems from a Gemfile in the current directory - bundler: + community.general.bundler: state: present executable: ~/.rvm/gems/2.1.5/bin/bundle - name: Exclude the production group from installing - bundler: + community.general.bundler: state: present exclude_groups: production - name: Install gems into ./vendor/bundle - bundler: + community.general.bundler: state: present deployment_mode: yes - name: Install gems using a Gemfile in another directory - bundler: + community.general.bundler: state: present gemfile: ../rails_project/Gemfile - name: Update Gemfile in another directory - bundler: + community.general.bundler: state: latest chdir: ~/rails_project ''' diff --git a/plugins/modules/packaging/language/composer.py b/plugins/modules/packaging/language/composer.py index d25457978a..6fe6ade6e2 100644 --- a/plugins/modules/packaging/language/composer.py +++ b/plugins/modules/packaging/language/composer.py @@ -112,25 +112,25 @@ notes: EXAMPLES = ''' - name: Download and installs all libs and dependencies outlined in the /path/to/project/composer.lock - composer: + community.general.composer: command: install working_dir: /path/to/project - name: Install a new package - composer: + community.general.composer: command: require arguments: my/package working_dir: /path/to/project - name: Clone and install a project with all dependencies - composer: + community.general.composer: command: create-project arguments: package/package /path/to/project ~1.0 working_dir: /path/to/project prefer_dist: yes - name: Install a package globally - composer: + community.general.composer: command: require global_command: yes arguments: my/package diff --git a/plugins/modules/packaging/language/cpanm.py b/plugins/modules/packaging/language/cpanm.py index 1f4351fff2..dfa90aa590 100644 --- a/plugins/modules/packaging/language/cpanm.py +++ b/plugins/modules/packaging/language/cpanm.py @@ -67,40 +67,40 @@ author: "Franck Cuny (@fcuny)" EXAMPLES = ''' - name: Install Dancer perl package - cpanm: + community.general.cpanm: name: Dancer - name: Install version 0.99_05 of the Plack perl package - cpanm: + community.general.cpanm: name: MIYAGAWA/Plack-0.99_05.tar.gz - name: Install Dancer into the specified locallib - cpanm: + community.general.cpanm: name: Dancer locallib: /srv/webapps/my_app/extlib - name: Install perl dependencies from local directory - cpanm: + community.general.cpanm: from_path: /srv/webapps/my_app/src/ - name: Install Dancer perl package without running the unit tests in indicated locallib - cpanm: + community.general.cpanm: name: Dancer notest: True locallib: /srv/webapps/my_app/extlib - name: Install Dancer perl package from a specific mirror - cpanm: + community.general.cpanm: name: Dancer mirror: 'http://cpan.cpantesters.org/' - name: Install Dancer perl package into the system root path - cpanm: + community.general.cpanm: name: Dancer system_lib: yes - name: Install Dancer if it is not already installed OR the installed version is older than version 1.0 - cpanm: + community.general.cpanm: name: Dancer version: '1.0' ''' diff --git a/plugins/modules/packaging/language/easy_install.py b/plugins/modules/packaging/language/easy_install.py index 0ac32338a1..dda23965c0 100644 --- a/plugins/modules/packaging/language/easy_install.py +++ b/plugins/modules/packaging/language/easy_install.py @@ -62,12 +62,12 @@ author: "Matt Wright (@mattupstate)" EXAMPLES = ''' - name: Install or update pip - easy_install: + community.general.easy_install: name: pip state: latest - name: Install Bottle into the specified virtualenv - easy_install: + community.general.easy_install: name: bottle virtualenv: /webapps/myapp/venv ''' diff --git a/plugins/modules/packaging/language/gem.py b/plugins/modules/packaging/language/gem.py index e9fd0e224b..f686f74924 100644 --- a/plugins/modules/packaging/language/gem.py +++ b/plugins/modules/packaging/language/gem.py @@ -95,18 +95,18 @@ author: EXAMPLES = ''' - name: Install version 1.0 of vagrant - gem: + community.general.gem: name: vagrant version: 1.0 state: present - name: Install latest available version of rake - gem: + community.general.gem: name: rake state: latest - name: Install rake version 1.0 from a local gem on disk - gem: + community.general.gem: name: rake gem_source: /path/to/gems/rake-1.0.gem state: present diff --git a/plugins/modules/packaging/language/maven_artifact.py b/plugins/modules/packaging/language/maven_artifact.py index 023078521a..7503f1642e 100644 --- a/plugins/modules/packaging/language/maven_artifact.py +++ b/plugins/modules/packaging/language/maven_artifact.py @@ -122,20 +122,20 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Download the latest version of the JUnit framework artifact from Maven Central - maven_artifact: + community.general.maven_artifact: group_id: junit artifact_id: junit dest: /tmp/junit-latest.jar - name: Download JUnit 4.11 from Maven Central - maven_artifact: + community.general.maven_artifact: group_id: junit artifact_id: junit version: 4.11 dest: /tmp/junit-4.11.jar - name: Download an artifact from a private repository requiring authentication - maven_artifact: + community.general.maven_artifact: group_id: com.company artifact_id: library-name repository_url: 'https://repo.company.com/maven' @@ -144,7 +144,7 @@ EXAMPLES = ''' dest: /tmp/library-name-latest.jar - name: Download a WAR File to the Tomcat webapps directory to be deployed - maven_artifact: + community.general.maven_artifact: group_id: com.company artifact_id: web-app extension: war @@ -152,7 +152,7 @@ EXAMPLES = ''' dest: /var/lib/tomcat7/webapps/web-app.war - name: Keep a downloaded artifact's name, i.e. retain the version - maven_artifact: + community.general.maven_artifact: version: latest artifact_id: spring-core group_id: org.springframework @@ -160,14 +160,14 @@ EXAMPLES = ''' keep_name: yes - name: Download the latest version of the JUnit framework artifact from Maven local - maven_artifact: + community.general.maven_artifact: group_id: junit artifact_id: junit dest: /tmp/junit-latest.jar repository_url: "file://{{ lookup('env','HOME') }}/.m2/repository" - name: Download the latest version between 3.8 and 4.0 (exclusive) of the JUnit framework artifact from Maven Central - maven_artifact: + community.general.maven_artifact: group_id: junit artifact_id: junit version_by_spec: "[3.8,4.0)" diff --git a/plugins/modules/packaging/language/npm.py b/plugins/modules/packaging/language/npm.py index af48117cc9..42fe8d906c 100644 --- a/plugins/modules/packaging/language/npm.py +++ b/plugins/modules/packaging/language/npm.py @@ -82,43 +82,43 @@ requirements: EXAMPLES = ''' - name: Install "coffee-script" node.js package. - npm: + community.general.npm: name: coffee-script path: /app/location - name: Install "coffee-script" node.js package on version 1.6.1. - npm: + community.general.npm: name: coffee-script version: '1.6.1' path: /app/location - name: Install "coffee-script" node.js package globally. - npm: + community.general.npm: name: coffee-script global: yes - name: Remove the globally package "coffee-script". - npm: + community.general.npm: name: coffee-script global: yes state: absent - name: Install "coffee-script" node.js package from custom registry. - npm: + community.general.npm: name: coffee-script registry: 'http://registry.mysite.com' - name: Install packages based on package.json. - npm: + community.general.npm: path: /app/location - name: Update packages based on package.json to their latest version. - npm: + community.general.npm: path: /app/location state: latest - name: Install packages based on package.json using the npm installed with nvm v0.10.1. - npm: + community.general.npm: path: /app/location executable: /opt/nvm/v0.10.1/bin/npm state: present diff --git a/plugins/modules/packaging/language/pear.py b/plugins/modules/packaging/language/pear.py index 3a47bf16c2..5d3935dc85 100644 --- a/plugins/modules/packaging/language/pear.py +++ b/plugins/modules/packaging/language/pear.py @@ -50,24 +50,24 @@ options: EXAMPLES = r''' - name: Install pear package - pear: + community.general.pear: name: Net_URL2 state: present - name: Install pecl package - pear: + community.general.pear: name: pecl/json_post state: present - name: Install pecl package with expected prompt - pear: + community.general.pear: name: pecl/apcu state: present prompts: - (.*)Enable internal debugging in APCu \[no\] - name: Install pecl package with expected prompt and an answer - pear: + community.general.pear: name: pecl/apcu state: present prompts: @@ -77,7 +77,7 @@ EXAMPLES = r''' Prompts will be processed on the same order as the packages order. If there is more prompts than packages, packages without prompts will be installed without any prompt expected. If there is more packages than prompts, additionnal prompts will be ignored. - pear: + community.general.pear: name: pecl/gnupg, pecl/apcu state: present prompts: @@ -88,7 +88,7 @@ EXAMPLES = r''' Prompts will be processed on the same order as the packages order. If there is more prompts than packages, packages without prompts will be installed without any prompt expected. If there is more packages than prompts, additionnal prompts will be ignored. - pear: + community.general.pear: name: pecl/gnupg, pecl/apcu state: present prompts: @@ -96,12 +96,12 @@ EXAMPLES = r''' - (.*)Enable internal debugging in APCu \[no\]: "yes" - name: Upgrade package - pear: + community.general.pear: name: Net_URL2 state: latest - name: Remove packages - pear: + community.general.pear: name: Net_URL2,pecl/json_post state: absent ''' diff --git a/plugins/modules/packaging/language/pip_package_info.py b/plugins/modules/packaging/language/pip_package_info.py index ae51f9c6a3..08eb2e952c 100644 --- a/plugins/modules/packaging/language/pip_package_info.py +++ b/plugins/modules/packaging/language/pip_package_info.py @@ -30,14 +30,14 @@ author: EXAMPLES = ''' - name: Just get the list from default pip - pip_package_info: + community.general.pip_package_info: - name: Get the facts for default pip, pip2 and pip3.6 - pip_package_info: + community.general.pip_package_info: clients: ['pip', 'pip2', 'pip3.6'] - name: Get from specific paths (virtualenvs?) - pip_package_info: + community.general.pip_package_info: clients: '/home/me/projec42/python/pip3.5' ''' diff --git a/plugins/modules/packaging/language/yarn.py b/plugins/modules/packaging/language/yarn.py index 9346a7ed5a..8b21753851 100644 --- a/plugins/modules/packaging/language/yarn.py +++ b/plugins/modules/packaging/language/yarn.py @@ -76,38 +76,38 @@ requirements: EXAMPLES = ''' - name: Install "imagemin" node.js package. - yarn: + community.general.yarn: name: imagemin path: /app/location - name: Install "imagemin" node.js package on version 5.3.1 - yarn: + community.general.yarn: name: imagemin version: '5.3.1' path: /app/location - name: Install "imagemin" node.js package globally. - yarn: + community.general.yarn: name: imagemin global: yes - name: Remove the globally-installed package "imagemin". - yarn: + community.general.yarn: name: imagemin global: yes state: absent - name: Install "imagemin" node.js package from custom registry. - yarn: + community.general.yarn: name: imagemin registry: 'http://registry.mysite.com' - name: Install packages based on package.json. - yarn: + community.general.yarn: path: /app/location - name: Update all packages in package.json to their latest version. - yarn: + community.general.yarn: path: /app/location state: latest ''' diff --git a/plugins/modules/packaging/os/apk.py b/plugins/modules/packaging/os/apk.py index 4d0e191920..7dce933f89 100644 --- a/plugins/modules/packaging/os/apk.py +++ b/plugins/modules/packaging/os/apk.py @@ -68,69 +68,69 @@ notes: EXAMPLES = ''' - name: Update repositories and install foo package - apk: + community.general.apk: name: foo update_cache: yes - name: Update repositories and install foo and bar packages - apk: + community.general.apk: name: foo,bar update_cache: yes - name: Remove foo package - apk: + community.general.apk: name: foo state: absent - name: Remove foo and bar packages - apk: + community.general.apk: name: foo,bar state: absent - name: Install the package foo - apk: + community.general.apk: name: foo state: present - name: Install the packages foo and bar - apk: + community.general.apk: name: foo,bar state: present - name: Update repositories and update package foo to latest version - apk: + community.general.apk: name: foo state: latest update_cache: yes - name: Update repositories and update packages foo and bar to latest versions - apk: + community.general.apk: name: foo,bar state: latest update_cache: yes - name: Update all installed packages to the latest versions - apk: + community.general.apk: upgrade: yes - name: Upgrade / replace / downgrade / uninstall all installed packages to the latest versions available - apk: + community.general.apk: available: yes upgrade: yes - name: Update repositories as a separate step - apk: + community.general.apk: update_cache: yes - name: Install package from a specific repository - apk: + community.general.apk: name: foo state: latest update_cache: yes repository: http://dl-3.alpinelinux.org/alpine/edge/main - name: Install package without using cache - apk: + community.general.apk: name: foo state: latest no_cache: yes diff --git a/plugins/modules/packaging/os/apt_repo.py b/plugins/modules/packaging/os/apt_repo.py index 53110b483c..d196e03be1 100644 --- a/plugins/modules/packaging/os/apt_repo.py +++ b/plugins/modules/packaging/os/apt_repo.py @@ -47,18 +47,18 @@ author: EXAMPLES = ''' - name: Remove all repositories - apt_repo: + community.general.apt_repo: repo: all state: absent - name: Add repository `Sisysphus` and remove other repositories - apt_repo: + community.general.apt_repo: repo: Sisysphus state: present remove_others: yes - name: Add local repository `/space/ALT/Sisyphus` and update package cache - apt_repo: + community.general.apt_repo: repo: copy:///space/ALT/Sisyphus state: present update: yes diff --git a/plugins/modules/packaging/os/apt_rpm.py b/plugins/modules/packaging/os/apt_rpm.py index c7e6ddf133..ec30d28565 100644 --- a/plugins/modules/packaging/os/apt_rpm.py +++ b/plugins/modules/packaging/os/apt_rpm.py @@ -42,30 +42,30 @@ author: EXAMPLES = ''' - name: Install package foo - apt_rpm: + community.general.apt_rpm: pkg: foo state: present - name: Install packages foo and bar - apt_rpm: + community.general.apt_rpm: pkg: - foo - bar state: present - name: Remove package foo - apt_rpm: + community.general.apt_rpm: pkg: foo state: absent - name: Remove packages foo and bar - apt_rpm: + community.general.apt_rpm: pkg: foo,bar state: absent # bar will be the updated if a newer version exists - name: Update the package database and install bar - apt_rpm: + community.general.apt_rpm: name: bar state: present update_cache: yes diff --git a/plugins/modules/packaging/os/flatpak.py b/plugins/modules/packaging/os/flatpak.py index 150ca97db1..2c3857a783 100644 --- a/plugins/modules/packaging/os/flatpak.py +++ b/plugins/modules/packaging/os/flatpak.py @@ -90,29 +90,29 @@ options: EXAMPLES = r''' - name: Install the spotify flatpak - flatpak: + community.general.flatpak: name: https://s3.amazonaws.com/alexlarsson/spotify-repo/spotify.flatpakref state: present - name: Install the gedit flatpak package - flatpak: + community.general.flatpak: name: https://git.gnome.org/browse/gnome-apps-nightly/plain/gedit.flatpakref state: present - name: Install the gedit package from flathub for current user - flatpak: + community.general.flatpak: name: org.gnome.gedit state: present method: user - name: Install the Gnome Calendar flatpak from the gnome remote system-wide - flatpak: + community.general.flatpak: name: org.gnome.Calendar state: present remote: gnome - name: Remove the gedit flatpak - flatpak: + community.general.flatpak: name: org.gnome.gedit state: absent ''' diff --git a/plugins/modules/packaging/os/flatpak_remote.py b/plugins/modules/packaging/os/flatpak_remote.py index c7b88bf7d7..dbb211c2fb 100644 --- a/plugins/modules/packaging/os/flatpak_remote.py +++ b/plugins/modules/packaging/os/flatpak_remote.py @@ -87,26 +87,26 @@ options: EXAMPLES = r''' - name: Add the Gnome flatpak remote to the system installation - flatpak_remote: + community.general.flatpak_remote: name: gnome state: present flatpakrepo_url: https://sdk.gnome.org/gnome-apps.flatpakrepo - name: Add the flathub flatpak repository remote to the user installation - flatpak_remote: + community.general.flatpak_remote: name: flathub state: present flatpakrepo_url: https://dl.flathub.org/repo/flathub.flatpakrepo method: user - name: Remove the Gnome flatpak remote from the user installation - flatpak_remote: + community.general.flatpak_remote: name: gnome state: absent method: user - name: Remove the flathub remote from the system installation - flatpak_remote: + community.general.flatpak_remote: name: flathub state: absent ''' diff --git a/plugins/modules/packaging/os/homebrew.py b/plugins/modules/packaging/os/homebrew.py index 8549312e78..e765288d7a 100644 --- a/plugins/modules/packaging/os/homebrew.py +++ b/plugins/modules/packaging/os/homebrew.py @@ -77,57 +77,57 @@ notes: EXAMPLES = ''' # Install formula foo with 'brew' in default path (C(/usr/local/bin)) -- homebrew: +- community.general.homebrew: name: foo state: present # Install formula foo with 'brew' in alternate path C(/my/other/location/bin) -- homebrew: +- community.general.homebrew: name: foo path: /my/other/location/bin state: present # Update homebrew first and install formula foo with 'brew' in default path -- homebrew: +- community.general.homebrew: name: foo state: present update_homebrew: yes # Update homebrew first and upgrade formula foo to latest available with 'brew' in default path -- homebrew: +- community.general.homebrew: name: foo state: latest update_homebrew: yes # Update homebrew and upgrade all packages -- homebrew: +- community.general.homebrew: update_homebrew: yes upgrade_all: yes # Miscellaneous other examples -- homebrew: +- community.general.homebrew: name: foo state: head -- homebrew: +- community.general.homebrew: name: foo state: linked -- homebrew: +- community.general.homebrew: name: foo state: absent -- homebrew: +- community.general.homebrew: name: foo,bar state: absent -- homebrew: +- community.general.homebrew: name: foo state: present install_options: with-baz,enable-debug - name: Use ignored-pinned option while upgrading all - homebrew: + community.general.homebrew: upgrade_all: yes upgrade_options: ignored-pinned ''' diff --git a/plugins/modules/packaging/os/homebrew_cask.py b/plugins/modules/packaging/os/homebrew_cask.py index 975e75a7ad..d254e14ae6 100644 --- a/plugins/modules/packaging/os/homebrew_cask.py +++ b/plugins/modules/packaging/os/homebrew_cask.py @@ -80,57 +80,57 @@ options: ''' EXAMPLES = ''' - name: Install cask - homebrew_cask: + community.general.homebrew_cask: name: alfred state: present - name: Remove cask - homebrew_cask: + community.general.homebrew_cask: name: alfred state: absent - name: Install cask with install options - homebrew_cask: + community.general.homebrew_cask: name: alfred state: present install_options: 'appdir=/Applications' - name: Install cask with install options - homebrew_cask: + community.general.homebrew_cask: name: alfred state: present install_options: 'debug,appdir=/Applications' - name: Allow external app - homebrew_cask: + community.general.homebrew_cask: name: alfred state: present accept_external_apps: True - name: Remove cask with force option - homebrew_cask: + community.general.homebrew_cask: name: alfred state: absent install_options: force - name: Upgrade all casks - homebrew_cask: + community.general.homebrew_cask: upgrade_all: true - name: Upgrade given cask with force option - homebrew_cask: + community.general.homebrew_cask: name: alfred state: upgraded install_options: force - name: Upgrade cask with greedy option - homebrew_cask: + community.general.homebrew_cask: name: 1password state: upgraded greedy: True - name: Using sudo password for installing cask - homebrew_cask: + community.general.homebrew_cask: name: wireshark state: present sudo_password: "{{ ansible_become_pass }}" diff --git a/plugins/modules/packaging/os/homebrew_tap.py b/plugins/modules/packaging/os/homebrew_tap.py index 3a9e85f3ef..3fbf6b3394 100644 --- a/plugins/modules/packaging/os/homebrew_tap.py +++ b/plugins/modules/packaging/os/homebrew_tap.py @@ -50,21 +50,21 @@ requirements: [ homebrew ] EXAMPLES = ''' - name: Tap a Homebrew repository, state present - homebrew_tap: + community.general.homebrew_tap: name: homebrew/dupes - name: Tap a Homebrew repository, state absent - homebrew_tap: + community.general.homebrew_tap: name: homebrew/dupes state: absent - name: Tap a Homebrew repository, state present - homebrew_tap: + community.general.homebrew_tap: name: homebrew/dupes,homebrew/science state: present - name: Tap a Homebrew repository using url, state present - homebrew_tap: + community.general.homebrew_tap: name: telemachus/brew url: 'https://bitbucket.org/telemachus/brew' ''' diff --git a/plugins/modules/packaging/os/installp.py b/plugins/modules/packaging/os/installp.py index 14982c4445..af7a950afa 100644 --- a/plugins/modules/packaging/os/installp.py +++ b/plugins/modules/packaging/os/installp.py @@ -45,35 +45,35 @@ notes: EXAMPLES = r''' - name: Install package foo - installp: + community.general.installp: name: foo repository_path: /repository/AIX71/installp/base accept_license: yes state: present - name: Install bos.sysmgt that includes bos.sysmgt.nim.master, bos.sysmgt.nim.spot - installp: + community.general.installp: name: bos.sysmgt repository_path: /repository/AIX71/installp/base accept_license: yes state: present - name: Install bos.sysmgt.nim.master only - installp: + community.general.installp: name: bos.sysmgt.nim.master repository_path: /repository/AIX71/installp/base accept_license: yes state: present - name: Install bos.sysmgt.nim.master and bos.sysmgt.nim.spot - installp: + community.general.installp: name: bos.sysmgt.nim.master, bos.sysmgt.nim.spot repository_path: /repository/AIX71/installp/base accept_license: yes state: present - name: Remove packages bos.sysmgt.nim.master - installp: + community.general.installp: name: bos.sysmgt.nim.master state: absent ''' diff --git a/plugins/modules/packaging/os/layman.py b/plugins/modules/packaging/os/layman.py index bc52c0027c..3c990205d9 100644 --- a/plugins/modules/packaging/os/layman.py +++ b/plugins/modules/packaging/os/layman.py @@ -51,27 +51,27 @@ options: EXAMPLES = ''' - name: Install the overlay mozilla which is on the central overlays list - layman: + community.general.layman: name: mozilla - name: Install the overlay cvut from the specified alternative list - layman: + community.general.layman: name: cvut list_url: 'http://raw.github.com/cvut/gentoo-overlay/master/overlay.xml' - name: Update (sync) the overlay cvut or install if not installed yet - layman: + community.general.layman: name: cvut list_url: 'http://raw.github.com/cvut/gentoo-overlay/master/overlay.xml' state: updated - name: Update (sync) all of the installed overlays - layman: + community.general.layman: name: ALL state: updated - name: Uninstall the overlay cvut - layman: + community.general.layman: name: cvut state: absent ''' diff --git a/plugins/modules/packaging/os/macports.py b/plugins/modules/packaging/os/macports.py index 00a4baf13d..72af27c8cf 100644 --- a/plugins/modules/packaging/os/macports.py +++ b/plugins/modules/packaging/os/macports.py @@ -53,16 +53,16 @@ options: ''' EXAMPLES = ''' - name: Install the foo port - macports: + community.general.macports: name: foo - name: Install the universal, x11 variant of the foo port - macports: + community.general.macports: name: foo variant: +universal+x11 - name: Install a list of ports - macports: + community.general.macports: name: "{{ ports }}" vars: ports: @@ -70,27 +70,27 @@ EXAMPLES = ''' - foo-tools - name: Update Macports and the ports tree, then upgrade all outdated ports - macports: + community.general.macports: selfupdate: yes upgrade: yes - name: Update Macports and the ports tree, then install the foo port - macports: + community.general.macports: name: foo selfupdate: yes - name: Remove the foo port - macports: + community.general.macports: name: foo state: absent - name: Activate the foo port - macports: + community.general.macports: name: foo state: active - name: Deactivate the foo port - macports: + community.general.macports: name: foo state: inactive ''' diff --git a/plugins/modules/packaging/os/mas.py b/plugins/modules/packaging/os/mas.py index cc808eb929..37207e9e7b 100644 --- a/plugins/modules/packaging/os/mas.py +++ b/plugins/modules/packaging/os/mas.py @@ -51,28 +51,28 @@ notes: EXAMPLES = ''' - name: Install Keynote - mas: + community.general.mas: id: 409183694 state: present - name: Install a list of apps - mas: + community.general.mas: id: - 409183694 # Keynote - 413857545 # Divvy state: present - name: Ensure the latest Keynote version is installed - mas: + community.general.mas: id: 409183694 state: latest - name: Upgrade all installed Mac App Store apps - mas: + community.general.mas: upgrade_all: yes - name: Install specific apps and also upgrade all others - mas: + community.general.mas: id: - 409183694 # Keynote - 413857545 # Divvy @@ -80,7 +80,7 @@ EXAMPLES = ''' upgrade_all: yes - name: Uninstall Divvy - mas: + community.general.mas: id: 413857545 state: absent become: yes # Uninstallation requires root permissions diff --git a/plugins/modules/packaging/os/openbsd_pkg.py b/plugins/modules/packaging/os/openbsd_pkg.py index 1f71cb3c17..d2aff81c53 100644 --- a/plugins/modules/packaging/os/openbsd_pkg.py +++ b/plugins/modules/packaging/os/openbsd_pkg.py @@ -68,54 +68,54 @@ notes: EXAMPLES = ''' - name: Make sure nmap is installed - openbsd_pkg: + community.general.openbsd_pkg: name: nmap state: present - name: Make sure nmap is the latest version - openbsd_pkg: + community.general.openbsd_pkg: name: nmap state: latest - name: Make sure nmap is not installed - openbsd_pkg: + community.general.openbsd_pkg: name: nmap state: absent - name: Make sure nmap is installed, build it from source if it is not - openbsd_pkg: + community.general.openbsd_pkg: name: nmap state: present build: yes - name: Specify a pkg flavour with '--' - openbsd_pkg: + community.general.openbsd_pkg: name: vim--no_x11 state: present - name: Specify the default flavour to avoid ambiguity errors - openbsd_pkg: + community.general.openbsd_pkg: name: vim-- state: present - name: Specify a package branch (requires at least OpenBSD 6.0) - openbsd_pkg: + community.general.openbsd_pkg: name: python%3.5 state: present - name: Update all packages on the system - openbsd_pkg: + community.general.openbsd_pkg: name: '*' state: latest - name: Purge a package and it's configuration files - openbsd_pkg: + community.general.openbsd_pkg: name: mpd clean: yes state: absent - name: Quickly remove a package without checking checksums - openbsd_pkg: + community.general.openbsd_pkg: name: qt5 quick: yes state: absent diff --git a/plugins/modules/packaging/os/opkg.py b/plugins/modules/packaging/os/opkg.py index ff3ba5fa9a..196afb4935 100644 --- a/plugins/modules/packaging/os/opkg.py +++ b/plugins/modules/packaging/os/opkg.py @@ -59,28 +59,28 @@ requirements: ''' EXAMPLES = ''' - name: Install foo - opkg: + community.general.opkg: name: foo state: present - name: Update cache and install foo - opkg: + community.general.opkg: name: foo state: present update_cache: yes - name: Remove foo - opkg: + community.general.opkg: name: foo state: absent - name: Remove foo and bar - opkg: + community.general.opkg: name: foo,bar state: absent - name: Install foo using overwrite option forcibly - opkg: + community.general.opkg: name: foo state: present force: overwrite diff --git a/plugins/modules/packaging/os/pacman.py b/plugins/modules/packaging/os/pacman.py index e8f503dbd3..1dfcbf3549 100644 --- a/plugins/modules/packaging/os/pacman.py +++ b/plugins/modules/packaging/os/pacman.py @@ -92,56 +92,56 @@ packages: EXAMPLES = ''' - name: Install package foo from repo - pacman: + community.general.pacman: name: foo state: present - name: Install package bar from file - pacman: + community.general.pacman: name: ~/bar-1.0-1-any.pkg.tar.xz state: present - name: Install package foo from repo and bar from file - pacman: + community.general.pacman: name: - foo - ~/bar-1.0-1-any.pkg.tar.xz state: present - name: Upgrade package foo - pacman: + community.general.pacman: name: foo state: latest update_cache: yes - name: Remove packages foo and bar - pacman: + community.general.pacman: name: - foo - bar state: absent - name: Recursively remove package baz - pacman: + community.general.pacman: name: baz state: absent extra_args: --recursive - name: Run the equivalent of "pacman -Sy" as a separate step - pacman: + community.general.pacman: update_cache: yes - name: Run the equivalent of "pacman -Su" as a separate step - pacman: + community.general.pacman: upgrade: yes - name: Run the equivalent of "pacman -Syu" as a separate step - pacman: + community.general.pacman: update_cache: yes upgrade: yes - name: Run the equivalent of "pacman -Rdd", force remove package baz - pacman: + community.general.pacman: name: baz state: absent force: yes diff --git a/plugins/modules/packaging/os/pkg5.py b/plugins/modules/packaging/os/pkg5.py index 3f05291994..02909bdf02 100644 --- a/plugins/modules/packaging/os/pkg5.py +++ b/plugins/modules/packaging/os/pkg5.py @@ -49,21 +49,21 @@ options: ''' EXAMPLES = ''' - name: Install Vim - pkg5: + community.general.pkg5: name: editor/vim - name: Install Vim without refreshing publishers - pkg5: + community.general.pkg5: name: editor/vim refresh: no - name: Remove finger daemon - pkg5: + community.general.pkg5: name: service/network/finger state: absent - name: Install several packages at once - pkg5: + community.general.pkg5: name: - /file/gnu-findutils - /text/gnu-grep diff --git a/plugins/modules/packaging/os/pkg5_publisher.py b/plugins/modules/packaging/os/pkg5_publisher.py index 01af4bb61a..95d577655f 100644 --- a/plugins/modules/packaging/os/pkg5_publisher.py +++ b/plugins/modules/packaging/os/pkg5_publisher.py @@ -55,13 +55,13 @@ options: ''' EXAMPLES = ''' - name: Fetch packages for the solaris publisher direct from Oracle - pkg5_publisher: + community.general.pkg5_publisher: name: solaris sticky: true origin: https://pkg.oracle.com/solaris/support/ - name: Configure a publisher for locally-produced packages - pkg5_publisher: + community.general.pkg5_publisher: name: site origin: 'https://pkg.example.com/site/' ''' diff --git a/plugins/modules/packaging/os/pkgin.py b/plugins/modules/packaging/os/pkgin.py index 25ae1ef42a..9e50fc5491 100644 --- a/plugins/modules/packaging/os/pkgin.py +++ b/plugins/modules/packaging/os/pkgin.py @@ -73,44 +73,44 @@ options: EXAMPLES = ''' - name: Install package foo - pkgin: + community.general.pkgin: name: foo state: present - name: Update cache and install foo package - pkgin: + community.general.pkgin: name: foo update_cache: yes - name: Remove package foo - pkgin: + community.general.pkgin: name: foo state: absent - name: Remove packages foo and bar - pkgin: + community.general.pkgin: name: foo,bar state: absent - name: Update repositories as a separate step - pkgin: + community.general.pkgin: update_cache: yes - name: Upgrade main packages (equivalent to pkgin upgrade) - pkgin: + community.general.pkgin: upgrade: yes - name: Upgrade all packages (equivalent to pkgin full-upgrade) - pkgin: + community.general.pkgin: full_upgrade: yes - name: Force-upgrade all packages (equivalent to pkgin -F full-upgrade) - pkgin: + community.general.pkgin: full_upgrade: yes force: yes - name: Clean packages cache (equivalent to pkgin clean) - pkgin: + community.general.pkgin: clean: yes ''' diff --git a/plugins/modules/packaging/os/pkgng.py b/plugins/modules/packaging/os/pkgng.py index 82f79375bd..c4f6b497f4 100644 --- a/plugins/modules/packaging/os/pkgng.py +++ b/plugins/modules/packaging/os/pkgng.py @@ -99,28 +99,28 @@ notes: EXAMPLES = ''' - name: Install package foo - pkgng: + community.general.pkgng: name: foo state: present - name: Annotate package foo and bar - pkgng: + community.general.pkgng: name: foo,bar annotation: '+test1=baz,-test2,:test3=foobar' - name: Remove packages foo and bar - pkgng: + community.general.pkgng: name: foo,bar state: absent # "latest" support added in 2.7 - name: Upgrade package baz - pkgng: + community.general.pkgng: name: baz state: latest - name: Upgrade all installed packages (see warning for the name option first!) - pkgng: + community.general.pkgng: name: "*" state: latest ''' diff --git a/plugins/modules/packaging/os/pkgutil.py b/plugins/modules/packaging/os/pkgutil.py index bc5f7703a2..a17e2cc180 100644 --- a/plugins/modules/packaging/os/pkgutil.py +++ b/plugins/modules/packaging/os/pkgutil.py @@ -52,12 +52,12 @@ options: EXAMPLES = ''' - name: Install a package - pkgutil: + community.general.pkgutil: name: CSWcommon state: present - name: Install a package from a specific repository - pkgutil: + community.general.pkgutil: name: CSWnrpe site: 'ftp://myinternal.repo/opencsw/kiel' state: latest diff --git a/plugins/modules/packaging/os/portage.py b/plugins/modules/packaging/os/portage.py index 8ae8abe3ec..5275e5184c 100644 --- a/plugins/modules/packaging/os/portage.py +++ b/plugins/modules/packaging/os/portage.py @@ -176,43 +176,43 @@ author: EXAMPLES = ''' - name: Make sure package foo is installed - portage: + community.general.portage: package: foo state: present - name: Make sure package foo is not installed - portage: + community.general.portage: package: foo state: absent - name: Update package foo to the latest version (os specific alternative to latest) - portage: + community.general.portage: package: foo update: yes - name: Install package foo using PORTAGE_BINHOST setup - portage: + community.general.portage: package: foo getbinpkg: yes - name: Re-install world from binary packages only and do not allow any compiling - portage: + community.general.portage: package: '@world' usepkgonly: yes - name: Sync repositories and update world - portage: + community.general.portage: package: '@world' update: yes deep: yes sync: yes - name: Remove unneeded packages - portage: + community.general.portage: depclean: yes - name: Remove package foo if it is not explicitly needed - portage: + community.general.portage: package: foo state: absent depclean: yes diff --git a/plugins/modules/packaging/os/portinstall.py b/plugins/modules/packaging/os/portinstall.py index 7a7b941009..d1c33cc5c8 100644 --- a/plugins/modules/packaging/os/portinstall.py +++ b/plugins/modules/packaging/os/portinstall.py @@ -42,17 +42,17 @@ author: "berenddeboer (@berenddeboer)" EXAMPLES = ''' - name: Install package foo - portinstall: + community.general.portinstall: name: foo state: present - name: Install package security/cyrus-sasl2-saslauthd - portinstall: + community.general.portinstall: name: security/cyrus-sasl2-saslauthd state: present - name: Remove packages foo and bar - portinstall: + community.general.portinstall: name: foo,bar state: absent ''' diff --git a/plugins/modules/packaging/os/pulp_repo.py b/plugins/modules/packaging/os/pulp_repo.py index 3ab911c904..37344233d8 100644 --- a/plugins/modules/packaging/os/pulp_repo.py +++ b/plugins/modules/packaging/os/pulp_repo.py @@ -173,13 +173,13 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Create a new repo with name 'my_repo' - pulp_repo: + community.general.pulp_repo: name: my_repo relative_url: my/repo state: present - name: Create a repo with a feed and a relative URL - pulp_repo: + community.general.pulp_repo: name: my_centos_updates repo_type: rpm feed: http://mirror.centos.org/centos/6/updates/x86_64/ @@ -190,7 +190,7 @@ EXAMPLES = ''' state: present - name: Remove a repo from the pulp server - pulp_repo: + community.general.pulp_repo: name: my_old_repo repo_type: rpm state: absent diff --git a/plugins/modules/packaging/os/redhat_subscription.py b/plugins/modules/packaging/os/redhat_subscription.py index 102e67935e..12832ad093 100644 --- a/plugins/modules/packaging/os/redhat_subscription.py +++ b/plugins/modules/packaging/os/redhat_subscription.py @@ -165,21 +165,21 @@ options: EXAMPLES = ''' - name: Register as user (joe_user) with password (somepass) and auto-subscribe to available content. - redhat_subscription: + community.general.redhat_subscription: state: present username: joe_user password: somepass auto_attach: true - name: Same as above but subscribe to a specific pool by ID. - redhat_subscription: + community.general.redhat_subscription: state: present username: joe_user password: somepass pool_ids: 0123456789abcdef0123456789abcdef - name: Register and subscribe to multiple pools. - redhat_subscription: + community.general.redhat_subscription: state: present username: joe_user password: somepass @@ -188,7 +188,7 @@ EXAMPLES = ''' - 1123456789abcdef0123456789abcdef - name: Same as above but consume multiple entitlements. - redhat_subscription: + community.general.redhat_subscription: state: present username: joe_user password: somepass @@ -197,28 +197,28 @@ EXAMPLES = ''' - 1123456789abcdef0123456789abcdef: 4 - name: Register and pull existing system data. - redhat_subscription: + community.general.redhat_subscription: state: present username: joe_user password: somepass consumer_id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx - name: Register with activationkey and consume subscriptions matching Red Hat Enterprise Server or Red Hat Virtualization - redhat_subscription: + community.general.redhat_subscription: state: present activationkey: 1-222333444 org_id: 222333444 pool: '^(Red Hat Enterprise Server|Red Hat Virtualization)$' - name: Update the consumed subscriptions from the previous example (remove Red Hat Virtualization subscription) - redhat_subscription: + community.general.redhat_subscription: state: present activationkey: 1-222333444 org_id: 222333444 pool: '^Red Hat Enterprise Server$' - name: Register as user credentials into given environment (against Red Hat Satellite 6.x), and auto-subscribe. - redhat_subscription: + community.general.redhat_subscription: state: present username: joe_user password: somepass @@ -226,14 +226,14 @@ EXAMPLES = ''' auto_attach: true - name: Register as user (joe_user) with password (somepass) and a specific release - redhat_subscription: + community.general.redhat_subscription: state: present username: joe_user password: somepass release: 7.4 - name: Register as user (joe_user) with password (somepass), set syspurpose attributes and synchronize them with server - redhat_subscription: + community.general.redhat_subscription: state: present username: joe_user password: somepass diff --git a/plugins/modules/packaging/os/rhn_channel.py b/plugins/modules/packaging/os/rhn_channel.py index 663374ade4..0e6398dd81 100644 --- a/plugins/modules/packaging/os/rhn_channel.py +++ b/plugins/modules/packaging/os/rhn_channel.py @@ -62,7 +62,7 @@ options: EXAMPLES = ''' - name: Add a Red Hat software channel - rhn_channel: + community.general.rhn_channel: name: rhel-x86_64-server-v2vwin-6 sysname: server01 url: https://rhn.redhat.com/rpc/api diff --git a/plugins/modules/packaging/os/rhn_register.py b/plugins/modules/packaging/os/rhn_register.py index 3f900c312c..dfc408a5cb 100644 --- a/plugins/modules/packaging/os/rhn_register.py +++ b/plugins/modules/packaging/os/rhn_register.py @@ -78,38 +78,38 @@ options: EXAMPLES = r''' - name: Unregister system from RHN - rhn_register: + community.general.rhn_register: state: absent username: joe_user password: somepass - name: Register as user with password and auto-subscribe to available content - rhn_register: + community.general.rhn_register: state: present username: joe_user password: somepass - name: Register with activationkey and enable extended update support - rhn_register: + community.general.rhn_register: state: present activationkey: 1-222333444 enable_eus: yes - name: Register with activationkey and set a profilename which may differ from the hostname - rhn_register: + community.general.rhn_register: state: present activationkey: 1-222333444 profilename: host.example.com.custom - name: Register as user with password against a satellite server - rhn_register: + community.general.rhn_register: state: present username: joe_user password: somepass server_url: https://xmlrpc.my.satellite/XMLRPC - name: Register as user with password and enable channels - rhn_register: + community.general.rhn_register: state: present username: joe_user password: somepass diff --git a/plugins/modules/packaging/os/rhsm_release.py b/plugins/modules/packaging/os/rhsm_release.py index 01cb481269..22b280f1fc 100644 --- a/plugins/modules/packaging/os/rhsm_release.py +++ b/plugins/modules/packaging/os/rhsm_release.py @@ -31,17 +31,17 @@ author: EXAMPLES = ''' # Set release version to 7.1 - name: Set RHSM release version - rhsm_release: + community.general.rhsm_release: release: "7.1" # Set release version to 6Server - name: Set RHSM release version - rhsm_release: + community.general.rhsm_release: release: "6Server" # Unset release version - name: Unset RHSM release release - rhsm_release: + community.general.rhsm_release: release: null ''' diff --git a/plugins/modules/packaging/os/rhsm_repository.py b/plugins/modules/packaging/os/rhsm_repository.py index f9452f8074..7317be6633 100644 --- a/plugins/modules/packaging/os/rhsm_repository.py +++ b/plugins/modules/packaging/os/rhsm_repository.py @@ -47,21 +47,21 @@ options: EXAMPLES = ''' - name: Enable a RHSM repository - rhsm_repository: + community.general.rhsm_repository: name: rhel-7-server-rpms - name: Disable all RHSM repositories - rhsm_repository: + community.general.rhsm_repository: name: '*' state: disabled - name: Enable all repositories starting with rhel-6-server - rhsm_repository: + community.general.rhsm_repository: name: rhel-6-server* state: enabled - name: Disable all repositories except rhel-7-server-rpms - rhsm_repository: + community.general.rhsm_repository: name: rhel-7-server-rpms purge: True ''' diff --git a/plugins/modules/packaging/os/slackpkg.py b/plugins/modules/packaging/os/slackpkg.py index 50cfd47360..86979792e2 100644 --- a/plugins/modules/packaging/os/slackpkg.py +++ b/plugins/modules/packaging/os/slackpkg.py @@ -52,17 +52,17 @@ requirements: [ "Slackware >= 12.2" ] EXAMPLES = ''' - name: Install package foo - slackpkg: + community.general.slackpkg: name: foo state: present - name: Remove packages foo and bar - slackpkg: + community.general.slackpkg: name: foo,bar state: absent - name: Make sure that it is the most updated package - slackpkg: + community.general.slackpkg: name: foo state: latest ''' diff --git a/plugins/modules/packaging/os/snap.py b/plugins/modules/packaging/os/snap.py index 406977408c..9776b4e50a 100644 --- a/plugins/modules/packaging/os/snap.py +++ b/plugins/modules/packaging/os/snap.py @@ -58,26 +58,26 @@ author: EXAMPLES = ''' # Install "foo" and "bar" snap - name: Install foo - snap: + community.general.snap: name: - foo - bar # Remove "foo" snap - name: Remove foo - snap: + community.general.snap: name: foo state: absent # Install a snap with classic confinement - name: Install "foo" with option --classic - snap: + community.general.snap: name: foo classic: yes # Install a snap with from a specific channel - name: Install "foo" with option --channel=latest/edge - snap: + community.general.snap: name: foo channel: latest/edge ''' diff --git a/plugins/modules/packaging/os/sorcery.py b/plugins/modules/packaging/os/sorcery.py index 2e03eb240d..347413fc9d 100644 --- a/plugins/modules/packaging/os/sorcery.py +++ b/plugins/modules/packaging/os/sorcery.py @@ -80,35 +80,35 @@ options: EXAMPLES = ''' - name: Make sure spell foo is installed - sorcery: + community.general.sorcery: spell: foo state: present - name: Make sure spells foo, bar and baz are removed - sorcery: + community.general.sorcery: spell: foo,bar,baz state: absent - name: Make sure spell foo with dependencies bar and baz is installed - sorcery: + community.general.sorcery: spell: foo depends: bar,baz state: present - name: Make sure spell foo with bar and without baz dependencies is installed - sorcery: + community.general.sorcery: spell: foo depends: +bar,-baz state: present - name: Make sure spell foo with libressl (providing SSL) dependency is installed - sorcery: + community.general.sorcery: spell: foo depends: libressl(SSL) state: present - name: Make sure spells with/without required dependencies (if any) are installed - sorcery: + community.general.sorcery: name: "{{ item.spell }}" depends: "{{ item.depends | default(None) }}" state: present @@ -118,29 +118,29 @@ EXAMPLES = ''' - { spell: 'pv,tnftp,tor' } - name: Install the latest version of spell foo using regular glossary - sorcery: + community.general.sorcery: name: foo state: latest - name: Rebuild spell foo - sorcery: + community.general.sorcery: spell: foo state: rebuild - name: Rebuild the whole system, but update Sorcery and Codex first - sorcery: + community.general.sorcery: spell: '*' state: rebuild update: yes update_cache: yes - name: Refresh the grimoire collection if it is 1 day old using native sorcerous alias - sorcery: + community.general.sorcery: update_codex: yes cache_valid_time: 86400 - name: Update only Sorcery itself - sorcery: + community.general.sorcery: update: yes ''' diff --git a/plugins/modules/packaging/os/svr4pkg.py b/plugins/modules/packaging/os/svr4pkg.py index 13196b183f..adbebc8e7e 100644 --- a/plugins/modules/packaging/os/svr4pkg.py +++ b/plugins/modules/packaging/os/svr4pkg.py @@ -68,32 +68,32 @@ options: EXAMPLES = ''' - name: Install a package from an already copied file - svr4pkg: + community.general.svr4pkg: name: CSWcommon src: /tmp/cswpkgs.pkg state: present - name: Install a package directly from an http site - svr4pkg: + community.general.svr4pkg: name: CSWpkgutil src: 'http://get.opencsw.org/now' state: present zone: current - name: Install a package with a response file - svr4pkg: + community.general.svr4pkg: name: CSWggrep src: /tmp/third-party.pkg response_file: /tmp/ggrep.response state: present - name: Ensure that a package is not installed - svr4pkg: + community.general.svr4pkg: name: SUNWgnome-sound-recorder state: absent - name: Ensure that a category is not installed - svr4pkg: + community.general.svr4pkg: name: FIREFOX state: absent category: true diff --git a/plugins/modules/packaging/os/swdepot.py b/plugins/modules/packaging/os/swdepot.py index 1af3fcf6ec..7e9db8353b 100644 --- a/plugins/modules/packaging/os/swdepot.py +++ b/plugins/modules/packaging/os/swdepot.py @@ -40,19 +40,19 @@ options: EXAMPLES = ''' - name: Install a package - swdepot: + community.general.swdepot: name: unzip-6.0 state: present depot: 'repository:/path' - name: Install the latest version of a package - swdepot: + community.general.swdepot: name: unzip state: latest depot: 'repository:/path' - name: Remove a package - swdepot: + community.general.swdepot: name: unzip state: absent ''' diff --git a/plugins/modules/packaging/os/swupd.py b/plugins/modules/packaging/os/swupd.py index f0412e5f5c..ae61ebc193 100644 --- a/plugins/modules/packaging/os/swupd.py +++ b/plugins/modules/packaging/os/swupd.py @@ -66,25 +66,25 @@ options: EXAMPLES = ''' - name: Update the OS to the latest version - swupd: + community.general.swupd: update: yes - name: Installs the "foo" bundle - swupd: + community.general.swupd: name: foo state: present - name: Removes the "foo" bundle - swupd: + community.general.swupd: name: foo state: absent - name: Check integrity of filesystem - swupd: + community.general.swupd: verify: yes - name: Downgrade OS to release 12920 - swupd: + community.general.swupd: verify: yes manifest: 12920 ''' diff --git a/plugins/modules/packaging/os/urpmi.py b/plugins/modules/packaging/os/urpmi.py index 1b6b88e55b..1f610730c0 100644 --- a/plugins/modules/packaging/os/urpmi.py +++ b/plugins/modules/packaging/os/urpmi.py @@ -60,22 +60,22 @@ author: EXAMPLES = ''' - name: Install package foo - urpmi: + community.general.urpmi: pkg: foo state: present - name: Remove package foo - urpmi: + community.general.urpmi: pkg: foo state: absent - name: Remove packages foo and bar - urpmi: + community.general.urpmi: pkg: foo,bar state: absent - name: Update the package database (urpmi.update -a -q) and install bar (bar will be the updated if a newer version exists) -- urpmi: +- community.general.urpmi: name: bar state: present update_cache: yes diff --git a/plugins/modules/packaging/os/xbps.py b/plugins/modules/packaging/os/xbps.py index 17bf8e8c3f..d9469daceb 100644 --- a/plugins/modules/packaging/os/xbps.py +++ b/plugins/modules/packaging/os/xbps.py @@ -70,25 +70,25 @@ options: EXAMPLES = ''' - name: Install package foo (automatically updating the xbps package if needed) - xbps: name=foo state=present + community.general.xbps: name=foo state=present - name: Upgrade package foo - xbps: name=foo state=latest update_cache=yes + community.general.xbps: name=foo state=latest update_cache=yes - name: Remove packages foo and bar - xbps: name=foo,bar state=absent + community.general.xbps: name=foo,bar state=absent - name: Recursively remove package foo - xbps: name=foo state=absent recurse=yes + community.general.xbps: name=foo state=absent recurse=yes - name: Update package cache - xbps: update_cache=yes + community.general.xbps: update_cache=yes - name: Upgrade packages - xbps: upgrade=yes + community.general.xbps: upgrade=yes - name: Install a package, failing if the xbps package is out of date - xbps: + community.general.xbps: name: foo state: present upgrade_xbps: no diff --git a/plugins/modules/packaging/os/zypper.py b/plugins/modules/packaging/os/zypper.py index 0fb6807631..5997cfa4e2 100644 --- a/plugins/modules/packaging/os/zypper.py +++ b/plugins/modules/packaging/os/zypper.py @@ -139,74 +139,74 @@ requirements: EXAMPLES = ''' - name: Install nmap - zypper: + community.general.zypper: name: nmap state: present - name: Install apache2 with recommended packages - zypper: + community.general.zypper: name: apache2 state: present disable_recommends: no - name: Apply a given patch - zypper: + community.general.zypper: name: openSUSE-2016-128 state: present type: patch - name: Remove the nmap package - zypper: + community.general.zypper: name: nmap state: absent - name: Install the nginx rpm from a remote repo - zypper: + community.general.zypper: name: 'http://nginx.org/packages/sles/12/x86_64/RPMS/nginx-1.8.0-1.sles12.ngx.x86_64.rpm' state: present - name: Install local rpm file - zypper: + community.general.zypper: name: /tmp/fancy-software.rpm state: present - name: Update all packages - zypper: + community.general.zypper: name: '*' state: latest - name: Apply all available patches - zypper: + community.general.zypper: name: '*' state: latest type: patch - name: Perform a dist-upgrade with additional arguments - zypper: + community.general.zypper: name: '*' state: dist-upgrade allow_vendor_change: true extra_args: '--allow-arch-change' - name: Perform a installaion of nmap with the install option replacefiles - zypper: + community.general.zypper: name: 'nmap' state: latest replacefiles: true - name: Refresh repositories and update package openssl - zypper: + community.general.zypper: name: openssl state: present update_cache: yes - name: "Install specific version (possible comparisons: <, >, <=, >=, =)" - zypper: + community.general.zypper: name: 'docker>=1.10' state: present - name: Wait 20 seconds to acquire the lock before failing - zypper: + community.general.zypper: name: mosh state: present environment: diff --git a/plugins/modules/packaging/os/zypper_repository.py b/plugins/modules/packaging/os/zypper_repository.py index 9f06137ac9..ab4bba0ecc 100644 --- a/plugins/modules/packaging/os/zypper_repository.py +++ b/plugins/modules/packaging/os/zypper_repository.py @@ -90,33 +90,33 @@ requirements: EXAMPLES = ''' - name: Add NVIDIA repository for graphics drivers - zypper_repository: + community.general.zypper_repository: name: nvidia-repo repo: 'ftp://download.nvidia.com/opensuse/12.2' state: present - name: Remove NVIDIA repository - zypper_repository: + community.general.zypper_repository: name: nvidia-repo repo: 'ftp://download.nvidia.com/opensuse/12.2' state: absent - name: Add python development repository - zypper_repository: + community.general.zypper_repository: repo: 'http://download.opensuse.org/repositories/devel:/languages:/python/SLE_11_SP3/devel:languages:python.repo' - name: Refresh all repos - zypper_repository: + community.general.zypper_repository: repo: '*' runrefresh: yes - name: Add a repo and add its gpg key - zypper_repository: + community.general.zypper_repository: repo: 'http://download.opensuse.org/repositories/systemsmanagement/openSUSE_Leap_42.1/' auto_import_keys: yes - name: Force refresh of a repository - zypper_repository: + community.general.zypper_repository: repo: 'http://my_internal_ci_repo/repo' name: my_ci_repo state: present diff --git a/plugins/modules/remote_management/cobbler/cobbler_sync.py b/plugins/modules/remote_management/cobbler/cobbler_sync.py index cdcf578b43..544d59401b 100644 --- a/plugins/modules/remote_management/cobbler/cobbler_sync.py +++ b/plugins/modules/remote_management/cobbler/cobbler_sync.py @@ -52,7 +52,7 @@ notes: EXAMPLES = r''' - name: Commit Cobbler changes - cobbler_sync: + community.general.cobbler_sync: host: cobbler01 username: cobbler password: MySuperSecureP4sswOrd diff --git a/plugins/modules/remote_management/cobbler/cobbler_system.py b/plugins/modules/remote_management/cobbler/cobbler_system.py index e983a3a981..e35d07319a 100644 --- a/plugins/modules/remote_management/cobbler/cobbler_system.py +++ b/plugins/modules/remote_management/cobbler/cobbler_system.py @@ -71,7 +71,7 @@ notes: EXAMPLES = r''' - name: Ensure the system exists in Cobbler - cobbler_system: + community.general.cobbler_system: host: cobbler01 username: cobbler password: MySuperSecureP4sswOrd @@ -87,7 +87,7 @@ EXAMPLES = r''' delegate_to: localhost - name: Enable network boot in Cobbler - cobbler_system: + community.general.cobbler_system: host: bdsol-aci-cobbler-01 username: cobbler password: ins3965! @@ -98,7 +98,7 @@ EXAMPLES = r''' delegate_to: localhost - name: Query all systems in Cobbler - cobbler_system: + community.general.cobbler_system: host: cobbler01 username: cobbler password: MySuperSecureP4sswOrd @@ -107,7 +107,7 @@ EXAMPLES = r''' delegate_to: localhost - name: Query a specific system in Cobbler - cobbler_system: + community.general.cobbler_system: host: cobbler01 username: cobbler password: MySuperSecureP4sswOrd @@ -117,7 +117,7 @@ EXAMPLES = r''' delegate_to: localhost - name: Ensure the system does not exist in Cobbler - cobbler_system: + community.general.cobbler_system: host: cobbler01 username: cobbler password: MySuperSecureP4sswOrd diff --git a/plugins/modules/remote_management/dellemc/idrac_firmware.py b/plugins/modules/remote_management/dellemc/idrac_firmware.py index 3a90961d90..fa8ac66ce5 100644 --- a/plugins/modules/remote_management/dellemc/idrac_firmware.py +++ b/plugins/modules/remote_management/dellemc/idrac_firmware.py @@ -81,7 +81,7 @@ author: "Rajeev Arakkal (@rajeevarakkal)" EXAMPLES = """ --- - name: Update firmware from repository on a Network Share - idrac_firmware: + community.general.idrac_firmware: idrac_ip: "192.168.0.1" idrac_user: "user_name" idrac_password: "user_password" diff --git a/plugins/modules/remote_management/dellemc/idrac_server_config_profile.py b/plugins/modules/remote_management/dellemc/idrac_server_config_profile.py index e0935677b4..39857fd30a 100644 --- a/plugins/modules/remote_management/dellemc/idrac_server_config_profile.py +++ b/plugins/modules/remote_management/dellemc/idrac_server_config_profile.py @@ -106,7 +106,7 @@ author: "Jagadeesh N V(@jagadeeshnv)" EXAMPLES = r''' --- - name: Import Server Configuration Profile from a network share - idrac_server_config_profile: + community.general.idrac_server_config_profile: idrac_ip: "192.168.0.1" idrac_user: "user_name" idrac_password: "user_password" @@ -119,7 +119,7 @@ EXAMPLES = r''' job_wait: True - name: Import Server Configuration Profile from a local path - idrac_server_config_profile: + community.general.idrac_server_config_profile: idrac_ip: "192.168.0.1" idrac_user: "user_name" idrac_password: "user_password" @@ -132,7 +132,7 @@ EXAMPLES = r''' job_wait: True - name: Export Server Configuration Profile to a network share - idrac_server_config_profile: + community.general.idrac_server_config_profile: idrac_ip: "192.168.0.1" idrac_user: "user_name" idrac_password: "user_password" @@ -142,7 +142,7 @@ EXAMPLES = r''' job_wait: False - name: Export Server Configuration Profile to a local path - idrac_server_config_profile: + community.general.idrac_server_config_profile: idrac_ip: "192.168.0.1" idrac_user: "user_name" idrac_password: "user_password" diff --git a/plugins/modules/remote_management/dellemc/ome_device_info.py b/plugins/modules/remote_management/dellemc/ome_device_info.py index 914a224af5..68fbb1e680 100644 --- a/plugins/modules/remote_management/dellemc/ome_device_info.py +++ b/plugins/modules/remote_management/dellemc/ome_device_info.py @@ -85,13 +85,13 @@ author: "Sajna Shetty(@Sajna-Shetty)" EXAMPLES = """ --- - name: Retrieve basic inventory of all devices. - ome_device_info: + community.general.ome_device_info: hostname: "192.168.0.1" username: "username" password: "password" - name: Retrieve basic inventory for devices identified by IDs 33333 or 11111 using filtering. - ome_device_info: + community.general.ome_device_info: hostname: "192.168.0.1" username: "username" password: "password" @@ -100,7 +100,7 @@ EXAMPLES = """ filter: "Id eq 33333 or Id eq 11111" - name: Retrieve inventory details of specified devices identified by IDs 11111 and 22222. - ome_device_info: + community.general.ome_device_info: hostname: "192.168.0.1" username: "username" password: "password" @@ -111,7 +111,7 @@ EXAMPLES = """ - 22222 - name: Retrieve inventory details of specified devices identified by service tags MXL1234 and MXL4567. - ome_device_info: + community.general.ome_device_info: hostname: "192.168.0.1" username: "username" password: "password" @@ -122,7 +122,7 @@ EXAMPLES = """ - MXL4567 - name: Retrieve details of specified inventory type of specified devices identified by ID and service tags. - ome_device_info: + community.general.ome_device_info: hostname: "192.168.0.1" username: "username" password: "password" @@ -136,7 +136,7 @@ EXAMPLES = """ inventory_type: "serverDeviceCards" - name: Retrieve subsystem health of specified devices identified by service tags. - ome_device_info: + community.general.ome_device_info: hostname: "192.168.0.1" username: "username" password: "password" diff --git a/plugins/modules/remote_management/foreman/foreman.py b/plugins/modules/remote_management/foreman/foreman.py index 84e2ba580e..b209b05ae2 100644 --- a/plugins/modules/remote_management/foreman/foreman.py +++ b/plugins/modules/remote_management/foreman/foreman.py @@ -53,7 +53,7 @@ options: EXAMPLES = ''' - name: Create CI Organization - foreman: + community.general.foreman: username: admin password: admin server_url: https://fakeserver.com diff --git a/plugins/modules/remote_management/foreman/katello.py b/plugins/modules/remote_management/foreman/katello.py index 104abde1cc..732c4723df 100644 --- a/plugins/modules/remote_management/foreman/katello.py +++ b/plugins/modules/remote_management/foreman/katello.py @@ -106,7 +106,7 @@ EXAMPLES = ''' # Simple Example: - name: Create Product - katello: + community.general.katello: username: admin password: admin server_url: https://fakeserver.com @@ -119,7 +119,7 @@ EXAMPLES = ''' # katello.yml --- - name: "{{ name }}" - katello: + community.general.katello: username: admin password: admin server_url: https://fakeserver.com @@ -199,7 +199,7 @@ EXAMPLES = ''' # So you should use a "until success" loop to catch this. - name: Promote Contentview Environment with increased Timeout - katello: + community.general.katello: username: ansibleuser password: supersecret task_timeout: 10800 diff --git a/plugins/modules/remote_management/hpilo/hpilo_boot.py b/plugins/modules/remote_management/hpilo/hpilo_boot.py index 0432de567b..3bda21cbe2 100644 --- a/plugins/modules/remote_management/hpilo/hpilo_boot.py +++ b/plugins/modules/remote_management/hpilo/hpilo_boot.py @@ -73,7 +73,7 @@ notes: EXAMPLES = r''' - name: Task to boot a system using an ISO from an HP iLO interface only if the system is an HP server - hpilo_boot: + community.general.hpilo_boot: host: YOUR_ILO_ADDRESS login: YOUR_ILO_LOGIN password: YOUR_ILO_PASSWORD @@ -83,7 +83,7 @@ EXAMPLES = r''' delegate_to: localhost - name: Power off a server - hpilo_boot: + community.general.hpilo_boot: host: YOUR_ILO_HOST login: YOUR_ILO_LOGIN password: YOUR_ILO_PASSWORD diff --git a/plugins/modules/remote_management/hpilo/hpilo_info.py b/plugins/modules/remote_management/hpilo/hpilo_info.py index 595f35f2ac..edc23d9258 100644 --- a/plugins/modules/remote_management/hpilo/hpilo_info.py +++ b/plugins/modules/remote_management/hpilo/hpilo_info.py @@ -47,7 +47,7 @@ notes: EXAMPLES = r''' - name: Gather facts from a HP iLO interface only if the system is an HP server - hpilo_info: + community.general.hpilo_info: host: YOUR_ILO_ADDRESS login: YOUR_ILO_LOGIN password: YOUR_ILO_PASSWORD diff --git a/plugins/modules/remote_management/hpilo/hponcfg.py b/plugins/modules/remote_management/hpilo/hponcfg.py index b1a225a0a2..006e4b086a 100644 --- a/plugins/modules/remote_management/hpilo/hponcfg.py +++ b/plugins/modules/remote_management/hpilo/hponcfg.py @@ -60,11 +60,11 @@ EXAMPLES = r''' dest: /tmp/enable-ssh.xml - name: Configure HP iLO using enable-ssh.xml - hponcfg: + community.general.hponcfg: src: /tmp/enable-ssh.xml - name: Configure HP iLO on VMware ESXi hypervisor - hponcfg: + community.general.hponcfg: src: /tmp/enable-ssh.xml executable: /opt/hp/tools/hponcfg ''' diff --git a/plugins/modules/remote_management/imc/imc_rest.py b/plugins/modules/remote_management/imc/imc_rest.py index 09233ee9d1..ca318b4e68 100644 --- a/plugins/modules/remote_management/imc/imc_rest.py +++ b/plugins/modules/remote_management/imc/imc_rest.py @@ -81,7 +81,7 @@ notes: EXAMPLES = r''' - name: Power down server - imc_rest: + community.general.imc_rest: hostname: '{{ imc_hostname }}' username: '{{ imc_username }}' password: '{{ imc_password }}' @@ -93,7 +93,7 @@ EXAMPLES = r''' delegate_to: localhost - name: Configure IMC using multiple XML fragments - imc_rest: + community.general.imc_rest: hostname: '{{ imc_hostname }}' username: '{{ imc_username }}' password: '{{ imc_password }}' @@ -118,7 +118,7 @@ EXAMPLES = r''' delegate_to: localhost - name: Enable PXE boot and power-cycle server - imc_rest: + community.general.imc_rest: hostname: '{{ imc_hostname }}' username: '{{ imc_username }}' password: '{{ imc_password }}' @@ -136,7 +136,7 @@ EXAMPLES = r''' delegate_to: localhost - name: Reconfigure IMC to boot from storage - imc_rest: + community.general.imc_rest: hostname: '{{ imc_host }}' username: '{{ imc_username }}' password: '{{ imc_password }}' @@ -148,7 +148,7 @@ EXAMPLES = r''' delegate_to: localhost - name: Add customer description to server - imc_rest: + community.general.imc_rest: hostname: '{{ imc_host }}' username: '{{ imc_username }}' password: '{{ imc_password }}' @@ -160,7 +160,7 @@ EXAMPLES = r''' delegate_to: localhost - name: Disable HTTP and increase session timeout to max value 10800 secs - imc_rest: + community.general.imc_rest: hostname: '{{ imc_host }}' username: '{{ imc_username }}' password: '{{ imc_password }}' diff --git a/plugins/modules/remote_management/ipmi/ipmi_boot.py b/plugins/modules/remote_management/ipmi/ipmi_boot.py index 593078c67a..b4870cd78f 100644 --- a/plugins/modules/remote_management/ipmi/ipmi_boot.py +++ b/plugins/modules/remote_management/ipmi/ipmi_boot.py @@ -89,14 +89,14 @@ uefimode: EXAMPLES = ''' - name: Ensure bootdevice is HD - ipmi_boot: + community.general.ipmi_boot: name: test.testdomain.com user: admin password: password bootdev: hd - name: Ensure bootdevice is not Network - ipmi_boot: + community.general.ipmi_boot: name: test.testdomain.com user: admin password: password diff --git a/plugins/modules/remote_management/ipmi/ipmi_power.py b/plugins/modules/remote_management/ipmi/ipmi_power.py index 5ac4a27f0f..d9c97f427f 100644 --- a/plugins/modules/remote_management/ipmi/ipmi_power.py +++ b/plugins/modules/remote_management/ipmi/ipmi_power.py @@ -61,7 +61,7 @@ powerstate: EXAMPLES = ''' - name: Ensure machine is powered on - ipmi_power: + community.general.ipmi_power: name: test.testdomain.com user: admin password: password diff --git a/plugins/modules/remote_management/lxca/lxca_cmms.py b/plugins/modules/remote_management/lxca/lxca_cmms.py index d541dd64b9..7bd7b9ffec 100644 --- a/plugins/modules/remote_management/lxca/lxca_cmms.py +++ b/plugins/modules/remote_management/lxca/lxca_cmms.py @@ -42,14 +42,14 @@ extends_documentation_fragment: EXAMPLES = ''' # get all cmms info - name: Get nodes data from LXCA - lxca_cmms: + community.general.lxca_cmms: login_user: USERID login_password: Password auth_url: "https://10.243.15.168" # get specific cmms info by uuid - name: Get nodes data from LXCA - lxca_cmms: + community.general.lxca_cmms: login_user: USERID login_password: Password auth_url: "https://10.243.15.168" @@ -58,7 +58,7 @@ EXAMPLES = ''' # get specific cmms info by chassis uuid - name: Get nodes data from LXCA - lxca_cmms: + community.general.lxca_cmms: login_user: USERID login_password: Password auth_url: "https://10.243.15.168" diff --git a/plugins/modules/remote_management/lxca/lxca_nodes.py b/plugins/modules/remote_management/lxca/lxca_nodes.py index 085286dca2..febe2fd556 100644 --- a/plugins/modules/remote_management/lxca/lxca_nodes.py +++ b/plugins/modules/remote_management/lxca/lxca_nodes.py @@ -44,7 +44,7 @@ extends_documentation_fragment: EXAMPLES = ''' # get all nodes info - name: Get nodes data from LXCA - lxca_nodes: + community.general.lxca_nodes: login_user: USERID login_password: Password auth_url: "https://10.243.15.168" @@ -52,7 +52,7 @@ EXAMPLES = ''' # get specific nodes info by uuid - name: Get nodes data from LXCA - lxca_nodes: + community.general.lxca_nodes: login_user: USERID login_password: Password auth_url: "https://10.243.15.168" @@ -61,7 +61,7 @@ EXAMPLES = ''' # get specific nodes info by chassis uuid - name: Get nodes data from LXCA - lxca_nodes: + community.general.lxca_nodes: login_user: USERID login_password: Password auth_url: "https://10.243.15.168" @@ -70,7 +70,7 @@ EXAMPLES = ''' # get managed nodes - name: Get nodes data from LXCA - lxca_nodes: + community.general.lxca_nodes: login_user: USERID login_password: Password auth_url: "https://10.243.15.168" @@ -78,7 +78,7 @@ EXAMPLES = ''' # get unmanaged nodes - name: Get nodes data from LXCA - lxca_nodes: + community.general.lxca_nodes: login_user: USERID login_password: Password auth_url: "https://10.243.15.168" diff --git a/plugins/modules/remote_management/manageiq/manageiq_alert_profiles.py b/plugins/modules/remote_management/manageiq/manageiq_alert_profiles.py index 9f25d81b0a..0dd46bbe43 100644 --- a/plugins/modules/remote_management/manageiq/manageiq_alert_profiles.py +++ b/plugins/modules/remote_management/manageiq/manageiq_alert_profiles.py @@ -47,7 +47,7 @@ options: EXAMPLES = ''' - name: Add an alert profile to ManageIQ - manageiq_alert_profiles: + community.general.manageiq_alert_profiles: state: present name: Test profile resource_type: ContainerNode @@ -61,7 +61,7 @@ EXAMPLES = ''' validate_certs: False - name: Delete an alert profile from ManageIQ - manageiq_alert_profiles: + community.general.manageiq_alert_profiles: state: absent name: Test profile manageiq_connection: diff --git a/plugins/modules/remote_management/manageiq/manageiq_alerts.py b/plugins/modules/remote_management/manageiq/manageiq_alerts.py index 1840ec2589..818610ed6b 100644 --- a/plugins/modules/remote_management/manageiq/manageiq_alerts.py +++ b/plugins/modules/remote_management/manageiq/manageiq_alerts.py @@ -59,7 +59,7 @@ options: EXAMPLES = ''' - name: Add an alert with a "hash expression" to ManageIQ - manageiq_alerts: + community.general.manageiq_alerts: state: present description: Test Alert 01 options: @@ -80,7 +80,7 @@ EXAMPLES = ''' validate_certs: False - name: Add an alert with a "miq expression" to ManageIQ - manageiq_alerts: + community.general.manageiq_alerts: state: present description: Test Alert 02 options: @@ -107,7 +107,7 @@ EXAMPLES = ''' validate_certs: False - name: Delete an alert from ManageIQ - manageiq_alerts: + community.general.manageiq_alerts: state: absent description: Test Alert 01 manageiq_connection: diff --git a/plugins/modules/remote_management/manageiq/manageiq_group.py b/plugins/modules/remote_management/manageiq/manageiq_group.py index acae43932c..5ac519fa69 100644 --- a/plugins/modules/remote_management/manageiq/manageiq_group.py +++ b/plugins/modules/remote_management/manageiq/manageiq_group.py @@ -95,7 +95,7 @@ options: EXAMPLES = ''' - name: Create a group in ManageIQ with the role EvmRole-user and tenant 'my_tenant' - manageiq_group: + community.general.manageiq_group: description: 'MyGroup-user' role: 'EvmRole-user' tenant: 'my_tenant' @@ -106,7 +106,7 @@ EXAMPLES = ''' validate_certs: False - name: Create a group in ManageIQ with the role EvmRole-user and tenant with tenant_id 4 - manageiq_group: + community.general.manageiq_group: description: 'MyGroup-user' role: 'EvmRole-user' tenant_id: 4 @@ -120,7 +120,7 @@ EXAMPLES = ''' - Create or update a group in ManageIQ with the role EvmRole-user and tenant my_tenant. - Apply 3 prov_max_cpu and 2 department tags to the group. - Limit access to a cluster for the group. - manageiq_group: + community.general.manageiq_group: description: 'MyGroup-user' role: 'EvmRole-user' tenant: my_tenant @@ -143,7 +143,7 @@ EXAMPLES = ''' validate_certs: False - name: Delete a group in ManageIQ - manageiq_group: + community.general.manageiq_group: state: 'absent' description: 'MyGroup-user' manageiq_connection: @@ -152,7 +152,7 @@ EXAMPLES = ''' password: 'smartvm' - name: Delete a group in ManageIQ using a token - manageiq_group: + community.general.manageiq_group: state: 'absent' description: 'MyGroup-user' manageiq_connection: diff --git a/plugins/modules/remote_management/manageiq/manageiq_policies.py b/plugins/modules/remote_management/manageiq/manageiq_policies.py index 1b72365043..ce0ad6c590 100644 --- a/plugins/modules/remote_management/manageiq/manageiq_policies.py +++ b/plugins/modules/remote_management/manageiq/manageiq_policies.py @@ -47,7 +47,7 @@ options: EXAMPLES = ''' - name: Assign new policy_profile for a provider in ManageIQ - manageiq_policies: + community.general.manageiq_policies: resource_name: 'EngLab' resource_type: 'provider' policy_profiles: @@ -59,7 +59,7 @@ EXAMPLES = ''' validate_certs: False - name: Unassign a policy_profile for a provider in ManageIQ - manageiq_policies: + community.general.manageiq_policies: state: absent resource_name: 'EngLab' resource_type: 'provider' @@ -72,7 +72,7 @@ EXAMPLES = ''' validate_certs: False - name: List current policy_profile and policies for a provider in ManageIQ - manageiq_policies: + community.general.manageiq_policies: state: list resource_name: 'EngLab' resource_type: 'provider' diff --git a/plugins/modules/remote_management/manageiq/manageiq_provider.py b/plugins/modules/remote_management/manageiq/manageiq_provider.py index 9f27929291..9c227c4d10 100644 --- a/plugins/modules/remote_management/manageiq/manageiq_provider.py +++ b/plugins/modules/remote_management/manageiq/manageiq_provider.py @@ -143,7 +143,7 @@ options: EXAMPLES = ''' - name: Create a new provider in ManageIQ ('Hawkular' metrics) - manageiq_provider: + community.general.manageiq_provider: name: 'EngLab' type: 'OpenShift' state: 'present' @@ -206,7 +206,7 @@ EXAMPLES = ''' - name: Update an existing provider named 'EngLab' (defaults to 'Prometheus' metrics) - manageiq_provider: + community.general.manageiq_provider: name: 'EngLab' type: 'Openshift' state: 'present' @@ -268,7 +268,7 @@ EXAMPLES = ''' - name: Delete a provider in ManageIQ - manageiq_provider: + community.general.manageiq_provider: name: 'EngLab' type: 'Openshift' state: 'absent' @@ -280,7 +280,7 @@ EXAMPLES = ''' - name: Create a new Amazon provider in ManageIQ using token authentication - manageiq_provider: + community.general.manageiq_provider: name: 'EngAmazon' type: 'Amazon' state: 'present' @@ -295,7 +295,7 @@ EXAMPLES = ''' - name: Create a new oVirt provider in ManageIQ - manageiq_provider: + community.general.manageiq_provider: name: 'RHEV' type: 'oVirt' state: 'present' @@ -355,7 +355,7 @@ EXAMPLES = ''' validate_certs: true - name: Create a new VMware provider in ManageIQ - manageiq_provider: + community.general.manageiq_provider: name: 'EngVMware' type: 'VMware' state: 'present' @@ -371,7 +371,7 @@ EXAMPLES = ''' validate_certs: true - name: Create a new Azure provider in ManageIQ - manageiq_provider: + community.general.manageiq_provider: name: 'EngAzure' type: 'Azure' provider_region: 'northeurope' @@ -389,7 +389,7 @@ EXAMPLES = ''' validate_certs: false - name: Create a new OpenStack Director provider in ManageIQ with rsa keypair - manageiq_provider: + community.general.manageiq_provider: name: 'EngDirector' type: 'Director' api_version: 'v3' @@ -425,7 +425,7 @@ EXAMPLES = ''' auth_key: 'SecretSSHPrivateKey' - name: Create a new OpenStack provider in ManageIQ with amqp metrics - manageiq_provider: + community.general.manageiq_provider: name: 'EngOpenStack' type: 'OpenStack' api_version: 'v3' @@ -468,7 +468,7 @@ EXAMPLES = ''' - name: Create a new GCE provider in ManageIQ - manageiq_provider: + community.general.manageiq_provider: name: 'EngGoogle' type: 'GCE' provider_region: 'europe-west1' diff --git a/plugins/modules/remote_management/manageiq/manageiq_tags.py b/plugins/modules/remote_management/manageiq/manageiq_tags.py index 9faf2a3ee3..152d910076 100644 --- a/plugins/modules/remote_management/manageiq/manageiq_tags.py +++ b/plugins/modules/remote_management/manageiq/manageiq_tags.py @@ -47,7 +47,7 @@ options: EXAMPLES = ''' - name: Create new tags for a provider in ManageIQ - manageiq_tags: + community.general.manageiq_tags: resource_name: 'EngLab' resource_type: 'provider' tags: @@ -62,7 +62,7 @@ EXAMPLES = ''' validate_certs: False - name: Remove tags for a provider in ManageIQ - manageiq_tags: + community.general.manageiq_tags: state: absent resource_name: 'EngLab' resource_type: 'provider' @@ -78,7 +78,7 @@ EXAMPLES = ''' validate_certs: False - name: List current tags for a provider in ManageIQ - manageiq_tags: + community.general.manageiq_tags: state: list resource_name: 'EngLab' resource_type: 'provider' diff --git a/plugins/modules/remote_management/manageiq/manageiq_tenant.py b/plugins/modules/remote_management/manageiq/manageiq_tenant.py index 0c997fe89e..5fc3a6aa34 100644 --- a/plugins/modules/remote_management/manageiq/manageiq_tenant.py +++ b/plugins/modules/remote_management/manageiq/manageiq_tenant.py @@ -77,7 +77,7 @@ options: EXAMPLES = ''' - name: Update the root tenant in ManageIQ - manageiq_tenant: + community.general.manageiq_tenant: name: 'My Company' description: 'My company name' manageiq_connection: @@ -87,7 +87,7 @@ EXAMPLES = ''' validate_certs: False - name: Create a tenant in ManageIQ - manageiq_tenant: + community.general.manageiq_tenant: name: 'Dep1' description: 'Manufacturing department' parent_id: 1 @@ -98,7 +98,7 @@ EXAMPLES = ''' validate_certs: False - name: Delete a tenant in ManageIQ - manageiq_tenant: + community.general.manageiq_tenant: state: 'absent' name: 'Dep1' parent_id: 1 @@ -109,7 +109,7 @@ EXAMPLES = ''' validate_certs: False - name: Set tenant quota for cpu_allocated, mem_allocated, remove quota for vms_allocated - manageiq_tenant: + community.general.manageiq_tenant: name: 'Dep1' parent_id: 1 quotas: @@ -124,7 +124,7 @@ EXAMPLES = ''' - name: Delete a tenant in ManageIQ using a token - manageiq_tenant: + community.general.manageiq_tenant: state: 'absent' name: 'Dep1' parent_id: 1 diff --git a/plugins/modules/remote_management/manageiq/manageiq_user.py b/plugins/modules/remote_management/manageiq/manageiq_user.py index 6cfa11c9ec..b118793901 100644 --- a/plugins/modules/remote_management/manageiq/manageiq_user.py +++ b/plugins/modules/remote_management/manageiq/manageiq_user.py @@ -64,7 +64,7 @@ options: EXAMPLES = ''' - name: Create a new user in ManageIQ - manageiq_user: + community.general.manageiq_user: userid: 'jdoe' name: 'Jane Doe' password: 'VerySecret' @@ -77,7 +77,7 @@ EXAMPLES = ''' validate_certs: False - name: Create a new user in ManageIQ using a token - manageiq_user: + community.general.manageiq_user: userid: 'jdoe' name: 'Jane Doe' password: 'VerySecret' @@ -89,7 +89,7 @@ EXAMPLES = ''' validate_certs: False - name: Delete a user in ManageIQ - manageiq_user: + community.general.manageiq_user: state: 'absent' userid: 'jdoe' manageiq_connection: @@ -99,7 +99,7 @@ EXAMPLES = ''' validate_certs: False - name: Delete a user in ManageIQ using a token - manageiq_user: + community.general.manageiq_user: state: 'absent' userid: 'jdoe' manageiq_connection: @@ -108,7 +108,7 @@ EXAMPLES = ''' validate_certs: False - name: Update email of user in ManageIQ - manageiq_user: + community.general.manageiq_user: userid: 'jdoe' email: 'jaustine@example.com' manageiq_connection: @@ -118,7 +118,7 @@ EXAMPLES = ''' validate_certs: False - name: Update email of user in ManageIQ using a token - manageiq_user: + community.general.manageiq_user: userid: 'jdoe' email: 'jaustine@example.com' manageiq_connection: diff --git a/plugins/modules/remote_management/oneview/oneview_datacenter_info.py b/plugins/modules/remote_management/oneview/oneview_datacenter_info.py index bbd38456c5..c87003818d 100644 --- a/plugins/modules/remote_management/oneview/oneview_datacenter_info.py +++ b/plugins/modules/remote_management/oneview/oneview_datacenter_info.py @@ -36,7 +36,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Gather information about all Data Centers - oneview_datacenter_info: + community.general.oneview_datacenter_info: hostname: 172.16.101.48 username: administrator password: my_password @@ -47,7 +47,7 @@ EXAMPLES = ''' msg: "{{ result.datacenters }}" - name: Gather paginated, filtered and sorted information about Data Centers - oneview_datacenter_info: + community.general.oneview_datacenter_info: hostname: 172.16.101.48 username: administrator password: my_password @@ -62,7 +62,7 @@ EXAMPLES = ''' msg: "{{ result.datacenters }}" - name: Gather information about a Data Center by name - oneview_datacenter_info: + community.general.oneview_datacenter_info: hostname: 172.16.101.48 username: administrator password: my_password @@ -74,7 +74,7 @@ EXAMPLES = ''' msg: "{{ result.datacenters }}" - name: Gather information about the Data Center Visual Content - oneview_datacenter_info: + community.general.oneview_datacenter_info: hostname: 172.16.101.48 username: administrator password: my_password diff --git a/plugins/modules/remote_management/oneview/oneview_enclosure_info.py b/plugins/modules/remote_management/oneview/oneview_enclosure_info.py index c1f33c20f4..aae261fa5c 100644 --- a/plugins/modules/remote_management/oneview/oneview_enclosure_info.py +++ b/plugins/modules/remote_management/oneview/oneview_enclosure_info.py @@ -38,7 +38,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Gather information about all Enclosures - oneview_enclosure_info: + community.general.oneview_enclosure_info: hostname: 172.16.101.48 username: administrator password: my_password @@ -50,7 +50,7 @@ EXAMPLES = ''' msg: "{{ result.enclosures }}" - name: Gather paginated, filtered and sorted information about Enclosures - oneview_enclosure_info: + community.general.oneview_enclosure_info: params: start: 0 count: 3 @@ -67,7 +67,7 @@ EXAMPLES = ''' msg: "{{ result.enclosures }}" - name: Gather information about an Enclosure by name - oneview_enclosure_info: + community.general.oneview_enclosure_info: name: Enclosure-Name hostname: 172.16.101.48 username: administrator @@ -80,7 +80,7 @@ EXAMPLES = ''' msg: "{{ result.enclosures }}" - name: Gather information about an Enclosure by name with options - oneview_enclosure_info: + community.general.oneview_enclosure_info: name: Test-Enclosure options: - script # optional @@ -104,7 +104,7 @@ EXAMPLES = ''' - name: "Gather information about an Enclosure with temperature data at a resolution of one sample per day, between two specified dates" - oneview_enclosure_info: + community.general.oneview_enclosure_info: name: Test-Enclosure options: - utilization: # optional diff --git a/plugins/modules/remote_management/oneview/oneview_ethernet_network.py b/plugins/modules/remote_management/oneview/oneview_ethernet_network.py index ce85a7a84b..a81e144a68 100644 --- a/plugins/modules/remote_management/oneview/oneview_ethernet_network.py +++ b/plugins/modules/remote_management/oneview/oneview_ethernet_network.py @@ -38,7 +38,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Ensure that the Ethernet Network is present using the default configuration - oneview_ethernet_network: + community.general.oneview_ethernet_network: config: '/etc/oneview/oneview_config.json' state: present data: @@ -47,7 +47,7 @@ EXAMPLES = ''' delegate_to: localhost - name: Update the Ethernet Network changing bandwidth and purpose - oneview_ethernet_network: + community.general.oneview_ethernet_network: config: '/etc/oneview/oneview_config.json' state: present data: @@ -59,7 +59,7 @@ EXAMPLES = ''' delegate_to: localhost - name: Ensure that the Ethernet Network is present with name 'Renamed Ethernet Network' - oneview_ethernet_network: + community.general.oneview_ethernet_network: config: '/etc/oneview/oneview_config.json' state: present data: @@ -68,7 +68,7 @@ EXAMPLES = ''' delegate_to: localhost - name: Ensure that the Ethernet Network is absent - oneview_ethernet_network: + community.general.oneview_ethernet_network: config: '/etc/oneview/oneview_config.json' state: absent data: @@ -76,7 +76,7 @@ EXAMPLES = ''' delegate_to: localhost - name: Create Ethernet networks in bulk - oneview_ethernet_network: + community.general.oneview_ethernet_network: config: '/etc/oneview/oneview_config.json' state: present data: @@ -91,7 +91,7 @@ EXAMPLES = ''' delegate_to: localhost - name: Reset to the default network connection template - oneview_ethernet_network: + community.general.oneview_ethernet_network: config: '/etc/oneview/oneview_config.json' state: default_bandwidth_reset data: diff --git a/plugins/modules/remote_management/oneview/oneview_ethernet_network_info.py b/plugins/modules/remote_management/oneview/oneview_ethernet_network_info.py index 2d65e711dd..a74e62657e 100644 --- a/plugins/modules/remote_management/oneview/oneview_ethernet_network_info.py +++ b/plugins/modules/remote_management/oneview/oneview_ethernet_network_info.py @@ -35,7 +35,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Gather information about all Ethernet Networks - oneview_ethernet_network_info: + community.general.oneview_ethernet_network_info: config: /etc/oneview/oneview_config.json delegate_to: localhost register: result @@ -44,7 +44,7 @@ EXAMPLES = ''' msg: "{{ result.ethernet_networks }}" - name: Gather paginated and filtered information about Ethernet Networks - oneview_ethernet_network_info: + community.general.oneview_ethernet_network_info: config: /etc/oneview/oneview_config.json params: start: 1 @@ -58,7 +58,7 @@ EXAMPLES = ''' msg: "{{ result.ethernet_networks }}" - name: Gather information about an Ethernet Network by name - oneview_ethernet_network_info: + community.general.oneview_ethernet_network_info: config: /etc/oneview/oneview_config.json name: Ethernet network name delegate_to: localhost @@ -68,7 +68,7 @@ EXAMPLES = ''' msg: "{{ result.ethernet_networks }}" - name: Gather information about an Ethernet Network by name with options - oneview_ethernet_network_info: + community.general.oneview_ethernet_network_info: config: /etc/oneview/oneview_config.json name: eth1 options: diff --git a/plugins/modules/remote_management/oneview/oneview_fc_network.py b/plugins/modules/remote_management/oneview/oneview_fc_network.py index db773dbce4..07e9aed06e 100644 --- a/plugins/modules/remote_management/oneview/oneview_fc_network.py +++ b/plugins/modules/remote_management/oneview/oneview_fc_network.py @@ -34,14 +34,14 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Ensure that the Fibre Channel Network is present using the default configuration - oneview_fc_network: + community.general.oneview_fc_network: config: "{{ config_file_path }}" state: present data: name: 'New FC Network' - name: Ensure that the Fibre Channel Network is present with fabricType 'DirectAttach' - oneview_fc_network: + community.general.oneview_fc_network: config: "{{ config_file_path }}" state: present data: @@ -49,7 +49,7 @@ EXAMPLES = ''' fabricType: 'DirectAttach' - name: Ensure that the Fibre Channel Network is present and is inserted in the desired scopes - oneview_fc_network: + community.general.oneview_fc_network: config: "{{ config_file_path }}" state: present data: @@ -59,7 +59,7 @@ EXAMPLES = ''' - '/rest/scopes/01SC123456' - name: Ensure that the Fibre Channel Network is absent - oneview_fc_network: + community.general.oneview_fc_network: config: "{{ config_file_path }}" state: absent data: diff --git a/plugins/modules/remote_management/oneview/oneview_fc_network_info.py b/plugins/modules/remote_management/oneview/oneview_fc_network_info.py index 53f178f491..669cb00e33 100644 --- a/plugins/modules/remote_management/oneview/oneview_fc_network_info.py +++ b/plugins/modules/remote_management/oneview/oneview_fc_network_info.py @@ -32,7 +32,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Gather information about all Fibre Channel Networks - oneview_fc_network_info: + community.general.oneview_fc_network_info: config: /etc/oneview/oneview_config.json delegate_to: localhost register: result @@ -41,7 +41,7 @@ EXAMPLES = ''' msg: "{{ result.fc_networks }}" - name: Gather paginated, filtered and sorted information about Fibre Channel Networks - oneview_fc_network_info: + community.general.oneview_fc_network_info: config: /etc/oneview/oneview_config.json params: start: 1 @@ -54,7 +54,7 @@ EXAMPLES = ''' msg: "{{ result.fc_networks }}" - name: Gather information about a Fibre Channel Network by name - oneview_fc_network_info: + community.general.oneview_fc_network_info: config: /etc/oneview/oneview_config.json name: network name delegate_to: localhost diff --git a/plugins/modules/remote_management/oneview/oneview_fcoe_network.py b/plugins/modules/remote_management/oneview/oneview_fcoe_network.py index 153031246d..79d8ae2182 100644 --- a/plugins/modules/remote_management/oneview/oneview_fcoe_network.py +++ b/plugins/modules/remote_management/oneview/oneview_fcoe_network.py @@ -36,7 +36,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Ensure that FCoE Network is present using the default configuration - oneview_fcoe_network: + community.general.oneview_fcoe_network: config: '/etc/oneview/oneview_config.json' state: present data: @@ -45,7 +45,7 @@ EXAMPLES = ''' delegate_to: localhost - name: Update the FCOE network scopes - oneview_fcoe_network: + community.general.oneview_fcoe_network: config: '/etc/oneview/oneview_config.json' state: present data: @@ -56,7 +56,7 @@ EXAMPLES = ''' delegate_to: localhost - name: Ensure that FCoE Network is absent - oneview_fcoe_network: + community.general.oneview_fcoe_network: config: '/etc/oneview/oneview_config.json' state: absent data: diff --git a/plugins/modules/remote_management/oneview/oneview_fcoe_network_info.py b/plugins/modules/remote_management/oneview/oneview_fcoe_network_info.py index 3fbed88dab..8fb65355d3 100644 --- a/plugins/modules/remote_management/oneview/oneview_fcoe_network_info.py +++ b/plugins/modules/remote_management/oneview/oneview_fcoe_network_info.py @@ -31,7 +31,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Gather information about all FCoE Networks - oneview_fcoe_network_info: + community.general.oneview_fcoe_network_info: config: /etc/oneview/oneview_config.json delegate_to: localhost register: result @@ -40,7 +40,7 @@ EXAMPLES = ''' msg: "{{ result.fcoe_networks }}" - name: Gather paginated, filtered and sorted information about FCoE Networks - oneview_fcoe_network_info: + community.general.oneview_fcoe_network_info: config: /etc/oneview/oneview_config.json params: start: 0 @@ -54,7 +54,7 @@ EXAMPLES = ''' msg: "{{ result.fcoe_networks }}" - name: Gather information about a FCoE Network by name - oneview_fcoe_network_info: + community.general.oneview_fcoe_network_info: config: /etc/oneview/oneview_config.json name: Test FCoE Network Information delegate_to: localhost diff --git a/plugins/modules/remote_management/oneview/oneview_logical_interconnect_group.py b/plugins/modules/remote_management/oneview/oneview_logical_interconnect_group.py index 6d499afbcc..8ca49e21ab 100644 --- a/plugins/modules/remote_management/oneview/oneview_logical_interconnect_group.py +++ b/plugins/modules/remote_management/oneview/oneview_logical_interconnect_group.py @@ -38,7 +38,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Ensure that the Logical Interconnect Group is present - oneview_logical_interconnect_group: + community.general.oneview_logical_interconnect_group: config: /etc/oneview/oneview_config.json state: present data: @@ -59,7 +59,7 @@ EXAMPLES = ''' delegate_to: localhost - name: Ensure that the Logical Interconnect Group has the specified scopes - oneview_logical_interconnect_group: + community.general.oneview_logical_interconnect_group: config: /etc/oneview/oneview_config.json state: present data: @@ -70,7 +70,7 @@ EXAMPLES = ''' delegate_to: localhost - name: Ensure that the Logical Interconnect Group is present with name 'Test' - oneview_logical_interconnect_group: + community.general.oneview_logical_interconnect_group: config: /etc/oneview/oneview_config.json state: present data: @@ -79,7 +79,7 @@ EXAMPLES = ''' delegate_to: localhost - name: Ensure that the Logical Interconnect Group is absent - oneview_logical_interconnect_group: + community.general.oneview_logical_interconnect_group: config: /etc/oneview/oneview_config.json state: absent data: diff --git a/plugins/modules/remote_management/oneview/oneview_logical_interconnect_group_info.py b/plugins/modules/remote_management/oneview/oneview_logical_interconnect_group_info.py index 94d28dff91..1eef9420ab 100644 --- a/plugins/modules/remote_management/oneview/oneview_logical_interconnect_group_info.py +++ b/plugins/modules/remote_management/oneview/oneview_logical_interconnect_group_info.py @@ -32,7 +32,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Gather information about all Logical Interconnect Groups - oneview_logical_interconnect_group_info: + community.general.oneview_logical_interconnect_group_info: hostname: 172.16.101.48 username: administrator password: my_password @@ -45,7 +45,7 @@ EXAMPLES = ''' msg: "{{ result.logical_interconnect_groups }}" - name: Gather paginated, filtered and sorted information about Logical Interconnect Groups - oneview_logical_interconnect_group_info: + community.general.oneview_logical_interconnect_group_info: params: start: 0 count: 3 @@ -63,7 +63,7 @@ EXAMPLES = ''' msg: "{{ result.logical_interconnect_groups }}" - name: Gather information about a Logical Interconnect Group by name - oneview_logical_interconnect_group_info: + community.general.oneview_logical_interconnect_group_info: name: logical interconnect group name hostname: 172.16.101.48 username: administrator diff --git a/plugins/modules/remote_management/oneview/oneview_network_set.py b/plugins/modules/remote_management/oneview/oneview_network_set.py index 36bd66dc92..cc70d5e57a 100644 --- a/plugins/modules/remote_management/oneview/oneview_network_set.py +++ b/plugins/modules/remote_management/oneview/oneview_network_set.py @@ -38,7 +38,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Create a Network Set - oneview_network_set: + community.general.oneview_network_set: config: /etc/oneview/oneview_config.json state: present data: @@ -49,7 +49,7 @@ EXAMPLES = ''' delegate_to: localhost - name: Update the Network Set name to 'OneViewSDK Test Network Set - Renamed' and change the associated networks - oneview_network_set: + community.general.oneview_network_set: config: /etc/oneview/oneview_config.json state: present data: @@ -60,7 +60,7 @@ EXAMPLES = ''' delegate_to: localhost - name: Delete the Network Set - oneview_network_set: + community.general.oneview_network_set: config: /etc/oneview/oneview_config.json state: absent data: @@ -68,7 +68,7 @@ EXAMPLES = ''' delegate_to: localhost - name: Update the Network set with two scopes - oneview_network_set: + community.general.oneview_network_set: config: /etc/oneview/oneview_config.json state: present data: diff --git a/plugins/modules/remote_management/oneview/oneview_network_set_info.py b/plugins/modules/remote_management/oneview/oneview_network_set_info.py index c5e874935b..be12c990c4 100644 --- a/plugins/modules/remote_management/oneview/oneview_network_set_info.py +++ b/plugins/modules/remote_management/oneview/oneview_network_set_info.py @@ -38,7 +38,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Gather information about all Network Sets - oneview_network_set_info: + community.general.oneview_network_set_info: hostname: 172.16.101.48 username: administrator password: my_password @@ -51,7 +51,7 @@ EXAMPLES = ''' msg: "{{ result.network_sets }}" - name: Gather paginated, filtered, and sorted information about Network Sets - oneview_network_set_info: + community.general.oneview_network_set_info: hostname: 172.16.101.48 username: administrator password: my_password @@ -69,7 +69,7 @@ EXAMPLES = ''' msg: "{{ result.network_sets }}" - name: Gather information about all Network Sets, excluding Ethernet networks - oneview_network_set_info: + community.general.oneview_network_set_info: hostname: 172.16.101.48 username: administrator password: my_password @@ -84,7 +84,7 @@ EXAMPLES = ''' msg: "{{ result.network_sets }}" - name: Gather information about a Network Set by name - oneview_network_set_info: + community.general.oneview_network_set_info: hostname: 172.16.101.48 username: administrator password: my_password @@ -98,7 +98,7 @@ EXAMPLES = ''' msg: "{{ result.network_sets }}" - name: Gather information about a Network Set by name, excluding Ethernet networks - oneview_network_set_info: + community.general.oneview_network_set_info: hostname: 172.16.101.48 username: administrator password: my_password diff --git a/plugins/modules/remote_management/oneview/oneview_san_manager.py b/plugins/modules/remote_management/oneview/oneview_san_manager.py index afe3c5b442..57e9347550 100644 --- a/plugins/modules/remote_management/oneview/oneview_san_manager.py +++ b/plugins/modules/remote_management/oneview/oneview_san_manager.py @@ -39,7 +39,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Creates a Device Manager for the Brocade SAN provider with the given hostname and credentials - oneview_san_manager: + community.general.oneview_san_manager: config: /etc/oneview/oneview_config.json state: present data: @@ -58,7 +58,7 @@ EXAMPLES = ''' delegate_to: localhost - name: Ensure a Device Manager for the Cisco SAN Provider is present - oneview_san_manager: + community.general.oneview_san_manager: config: /etc/oneview/oneview_config.json state: present data: @@ -80,7 +80,7 @@ EXAMPLES = ''' delegate_to: localhost - name: Sets the SAN Manager connection information - oneview_san_manager: + community.general.oneview_san_manager: config: /etc/oneview/oneview_config.json state: connection_information_set data: @@ -98,7 +98,7 @@ EXAMPLES = ''' delegate_to: localhost - name: Refreshes the SAN Manager - oneview_san_manager: + community.general.oneview_san_manager: config: /etc/oneview/oneview_config.json state: present data: @@ -107,7 +107,7 @@ EXAMPLES = ''' delegate_to: localhost - name: Delete the SAN Manager recently created - oneview_san_manager: + community.general.oneview_san_manager: config: /etc/oneview/oneview_config.json state: absent data: diff --git a/plugins/modules/remote_management/oneview/oneview_san_manager_info.py b/plugins/modules/remote_management/oneview/oneview_san_manager_info.py index 17467536db..8fd1c4fac0 100644 --- a/plugins/modules/remote_management/oneview/oneview_san_manager_info.py +++ b/plugins/modules/remote_management/oneview/oneview_san_manager_info.py @@ -38,7 +38,7 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Gather information about all SAN Managers - oneview_san_manager_info: + community.general.oneview_san_manager_info: config: /etc/oneview/oneview_config.json delegate_to: localhost register: result @@ -47,7 +47,7 @@ EXAMPLES = ''' msg: "{{ result.san_managers }}" - name: Gather paginated, filtered and sorted information about SAN Managers - oneview_san_manager_info: + community.general.oneview_san_manager_info: config: /etc/oneview/oneview_config.json params: start: 0 @@ -61,7 +61,7 @@ EXAMPLES = ''' msg: "{{ result.san_managers }}" - name: Gather information about a SAN Manager by provider display name - oneview_san_manager_info: + community.general.oneview_san_manager_info: config: /etc/oneview/oneview_config.json provider_display_name: Brocade Network Advisor delegate_to: localhost diff --git a/plugins/modules/remote_management/redfish/idrac_redfish_command.py b/plugins/modules/remote_management/redfish/idrac_redfish_command.py index ac6a8c94d7..ea97ecdcd5 100644 --- a/plugins/modules/remote_management/redfish/idrac_redfish_command.py +++ b/plugins/modules/remote_management/redfish/idrac_redfish_command.py @@ -58,7 +58,7 @@ author: "Jose Delarosa (@jose-delarosa)" EXAMPLES = ''' - name: Create BIOS configuration job (schedule BIOS setting update) - idrac_redfish_command: + community.general.idrac_redfish_command: category: Systems command: CreateBiosConfigJob resource_id: System.Embedded.1 diff --git a/plugins/modules/remote_management/redfish/idrac_redfish_config.py b/plugins/modules/remote_management/redfish/idrac_redfish_config.py index da31d9c0ad..485d54cd78 100644 --- a/plugins/modules/remote_management/redfish/idrac_redfish_config.py +++ b/plugins/modules/remote_management/redfish/idrac_redfish_config.py @@ -78,7 +78,7 @@ author: "Jose Delarosa (@jose-delarosa)" EXAMPLES = ''' - name: Enable NTP and set NTP server and Time zone attributes in iDRAC - idrac_redfish_config: + community.general.idrac_redfish_config: category: Manager command: SetManagerAttributes resource_id: iDRAC.Embedded.1 @@ -91,7 +91,7 @@ EXAMPLES = ''' password: "{{ password }}" - name: Enable Syslog and set Syslog servers in iDRAC - idrac_redfish_config: + community.general.idrac_redfish_config: category: Manager command: SetManagerAttributes resource_id: iDRAC.Embedded.1 @@ -104,7 +104,7 @@ EXAMPLES = ''' password: "{{ password }}" - name: Configure SNMP community string, port, protocol and trap format - idrac_redfish_config: + community.general.idrac_redfish_config: category: Manager command: SetManagerAttributes resource_id: iDRAC.Embedded.1 @@ -120,7 +120,7 @@ EXAMPLES = ''' password: "{{ password }}" - name: Enable CSIOR - idrac_redfish_config: + community.general.idrac_redfish_config: category: Manager command: SetLifecycleControllerAttributes resource_id: iDRAC.Embedded.1 @@ -131,7 +131,7 @@ EXAMPLES = ''' password: "{{ password }}" - name: Set Power Supply Redundancy Policy to A/B Grid Redundant - idrac_redfish_config: + community.general.idrac_redfish_config: category: Manager command: SetSystemAttributes resource_id: iDRAC.Embedded.1 diff --git a/plugins/modules/remote_management/redfish/idrac_redfish_info.py b/plugins/modules/remote_management/redfish/idrac_redfish_info.py index e0af5c2e23..ea1535bd6b 100644 --- a/plugins/modules/remote_management/redfish/idrac_redfish_info.py +++ b/plugins/modules/remote_management/redfish/idrac_redfish_info.py @@ -56,7 +56,7 @@ author: "Jose Delarosa (@jose-delarosa)" EXAMPLES = ''' - name: Get Manager attributes with a default of 20 seconds - idrac_redfish_info: + community.general.idrac_redfish_info: category: Manager command: GetManagerAttributes baseuri: "{{ baseuri }}" diff --git a/plugins/modules/remote_management/redfish/redfish_command.py b/plugins/modules/remote_management/redfish/redfish_command.py index 1f1b83323d..7a857464d8 100644 --- a/plugins/modules/remote_management/redfish/redfish_command.py +++ b/plugins/modules/remote_management/redfish/redfish_command.py @@ -198,7 +198,7 @@ author: "Jose Delarosa (@jose-delarosa)" EXAMPLES = ''' - name: Restart system power gracefully - redfish_command: + community.general.redfish_command: category: Systems command: PowerGracefulRestart resource_id: 437XR1138R2 @@ -207,7 +207,7 @@ EXAMPLES = ''' password: "{{ password }}" - name: Set one-time boot device to {{ bootdevice }} - redfish_command: + community.general.redfish_command: category: Systems command: SetOneTimeBoot resource_id: 437XR1138R2 @@ -217,7 +217,7 @@ EXAMPLES = ''' password: "{{ password }}" - name: Set one-time boot device to UefiTarget of "/0x31/0x33/0x01/0x01" - redfish_command: + community.general.redfish_command: category: Systems command: SetOneTimeBoot resource_id: 437XR1138R2 @@ -228,7 +228,7 @@ EXAMPLES = ''' password: "{{ password }}" - name: Set one-time boot device to BootNext target of "Boot0001" - redfish_command: + community.general.redfish_command: category: Systems command: SetOneTimeBoot resource_id: 437XR1138R2 @@ -239,7 +239,7 @@ EXAMPLES = ''' password: "{{ password }}" - name: Set chassis indicator LED to blink - redfish_command: + community.general.redfish_command: category: Chassis command: IndicatorLedBlink resource_id: 1U @@ -248,7 +248,7 @@ EXAMPLES = ''' password: "{{ password }}" - name: Add user - redfish_command: + community.general.redfish_command: category: Accounts command: AddUser baseuri: "{{ baseuri }}" @@ -259,7 +259,7 @@ EXAMPLES = ''' roleid: "{{ roleid }}" - name: Add user using new option aliases - redfish_command: + community.general.redfish_command: category: Accounts command: AddUser baseuri: "{{ baseuri }}" @@ -270,7 +270,7 @@ EXAMPLES = ''' account_roleid: "{{ account_roleid }}" - name: Delete user - redfish_command: + community.general.redfish_command: category: Accounts command: DeleteUser baseuri: "{{ baseuri }}" @@ -279,7 +279,7 @@ EXAMPLES = ''' account_username: "{{ account_username }}" - name: Disable user - redfish_command: + community.general.redfish_command: category: Accounts command: DisableUser baseuri: "{{ baseuri }}" @@ -288,7 +288,7 @@ EXAMPLES = ''' account_username: "{{ account_username }}" - name: Enable user - redfish_command: + community.general.redfish_command: category: Accounts command: EnableUser baseuri: "{{ baseuri }}" @@ -297,7 +297,7 @@ EXAMPLES = ''' account_username: "{{ account_username }}" - name: Add and enable user - redfish_command: + community.general.redfish_command: category: Accounts command: AddUser,EnableUser baseuri: "{{ baseuri }}" @@ -308,7 +308,7 @@ EXAMPLES = ''' roleid: "{{ roleid }}" - name: Update user password - redfish_command: + community.general.redfish_command: category: Accounts command: UpdateUserPassword baseuri: "{{ baseuri }}" @@ -318,7 +318,7 @@ EXAMPLES = ''' account_password: "{{ account_password }}" - name: Update user role - redfish_command: + community.general.redfish_command: category: Accounts command: UpdateUserRole baseuri: "{{ baseuri }}" @@ -328,7 +328,7 @@ EXAMPLES = ''' roleid: "{{ roleid }}" - name: Update user name - redfish_command: + community.general.redfish_command: category: Accounts command: UpdateUserName baseuri: "{{ baseuri }}" @@ -338,7 +338,7 @@ EXAMPLES = ''' account_updatename: "{{ account_updatename }}" - name: Update user name - redfish_command: + community.general.redfish_command: category: Accounts command: UpdateUserName baseuri: "{{ baseuri }}" @@ -348,7 +348,7 @@ EXAMPLES = ''' update_username: "{{ update_username }}" - name: Update AccountService properties - redfish_command: + community.general.redfish_command: category: Accounts command: UpdateAccountServiceProperties baseuri: "{{ baseuri }}" @@ -359,7 +359,7 @@ EXAMPLES = ''' AccountLockoutDuration: 600 - name: Clear Manager Logs with a timeout of 20 seconds - redfish_command: + community.general.redfish_command: category: Manager command: ClearLogs resource_id: BMC @@ -369,7 +369,7 @@ EXAMPLES = ''' timeout: 20 - name: Clear Sessions - redfish_command: + community.general.redfish_command: category: Sessions command: ClearSessions baseuri: "{{ baseuri }}" @@ -377,7 +377,7 @@ EXAMPLES = ''' password: "{{ password }}" - name: Simple update - redfish_command: + community.general.redfish_command: category: Update command: SimpleUpdate baseuri: "{{ baseuri }}" @@ -386,7 +386,7 @@ EXAMPLES = ''' update_image_uri: https://example.com/myupdate.img - name: Simple update with additional options - redfish_command: + community.general.redfish_command: category: Update command: SimpleUpdate baseuri: "{{ baseuri }}" @@ -401,7 +401,7 @@ EXAMPLES = ''' password: supersecretpwd - name: Insert Virtual Media - redfish_command: + community.general.redfish_command: category: Manager command: VirtualMediaInsert baseuri: "{{ baseuri }}" @@ -415,7 +415,7 @@ EXAMPLES = ''' resource_id: BMC - name: Eject Virtual Media - redfish_command: + community.general.redfish_command: category: Manager command: VirtualMediaEject baseuri: "{{ baseuri }}" diff --git a/plugins/modules/remote_management/redfish/redfish_config.py b/plugins/modules/remote_management/redfish/redfish_config.py index fa3b23817c..31cd1b8e81 100644 --- a/plugins/modules/remote_management/redfish/redfish_config.py +++ b/plugins/modules/remote_management/redfish/redfish_config.py @@ -104,7 +104,7 @@ author: "Jose Delarosa (@jose-delarosa)" EXAMPLES = ''' - name: Set BootMode to UEFI - redfish_config: + community.general.redfish_config: category: Systems command: SetBiosAttributes resource_id: 437XR1138R2 @@ -115,7 +115,7 @@ EXAMPLES = ''' password: "{{ password }}" - name: Set multiple BootMode attributes - redfish_config: + community.general.redfish_config: category: Systems command: SetBiosAttributes resource_id: 437XR1138R2 @@ -128,7 +128,7 @@ EXAMPLES = ''' password: "{{ password }}" - name: Enable PXE Boot for NIC1 using deprecated options - redfish_config: + community.general.redfish_config: category: Systems command: SetBiosAttributes resource_id: 437XR1138R2 @@ -139,7 +139,7 @@ EXAMPLES = ''' password: "{{ password }}" - name: Set BIOS default settings with a timeout of 20 seconds - redfish_config: + community.general.redfish_config: category: Systems command: SetBiosDefaultSettings resource_id: 437XR1138R2 @@ -149,7 +149,7 @@ EXAMPLES = ''' timeout: 20 - name: Set boot order - redfish_config: + community.general.redfish_config: category: Systems command: SetBootOrder boot_order: @@ -163,7 +163,7 @@ EXAMPLES = ''' password: "{{ password }}" - name: Set boot order to the default - redfish_config: + community.general.redfish_config: category: Systems command: SetDefaultBootOrder baseuri: "{{ baseuri }}" @@ -171,7 +171,7 @@ EXAMPLES = ''' password: "{{ password }}" - name: Set Manager Network Protocols - redfish_config: + community.general.redfish_config: category: Manager command: SetNetworkProtocols network_protocols: @@ -186,7 +186,7 @@ EXAMPLES = ''' password: "{{ password }}" - name: Set Manager NIC - redfish_config: + community.general.redfish_config: category: Manager command: SetManagerNic nic_config: diff --git a/plugins/modules/remote_management/redfish/redfish_info.py b/plugins/modules/remote_management/redfish/redfish_info.py index 47af06ba03..7b34db7d14 100644 --- a/plugins/modules/remote_management/redfish/redfish_info.py +++ b/plugins/modules/remote_management/redfish/redfish_info.py @@ -55,7 +55,7 @@ author: "Jose Delarosa (@jose-delarosa)" EXAMPLES = ''' - name: Get CPU inventory - redfish_info: + community.general.redfish_info: category: Systems command: GetCpuInventory baseuri: "{{ baseuri }}" @@ -66,7 +66,7 @@ EXAMPLES = ''' msg: "{{ result.redfish_facts.cpu.entries | to_nice_json }}" - name: Get CPU model - redfish_info: + community.general.redfish_info: category: Systems command: GetCpuInventory baseuri: "{{ baseuri }}" @@ -77,7 +77,7 @@ EXAMPLES = ''' msg: "{{ result.redfish_facts.cpu.entries.0.Model }}" - name: Get memory inventory - redfish_info: + community.general.redfish_info: category: Systems command: GetMemoryInventory baseuri: "{{ baseuri }}" @@ -86,7 +86,7 @@ EXAMPLES = ''' register: result - name: Get fan inventory with a timeout of 20 seconds - redfish_info: + community.general.redfish_info: category: Chassis command: GetFanInventory baseuri: "{{ baseuri }}" @@ -96,7 +96,7 @@ EXAMPLES = ''' register: result - name: Get Virtual Media information - redfish_info: + community.general.redfish_info: category: Manager command: GetVirtualMedia baseuri: "{{ baseuri }}" @@ -107,7 +107,7 @@ EXAMPLES = ''' msg: "{{ result.redfish_facts.virtual_media.entries | to_nice_json }}" - name: Get Volume Inventory - redfish_info: + community.general.redfish_info: category: Systems command: GetVolumeInventory baseuri: "{{ baseuri }}" @@ -118,7 +118,7 @@ EXAMPLES = ''' msg: "{{ result.redfish_facts.volume.entries | to_nice_json }}" - name: Get Session information - redfish_info: + community.general.redfish_info: category: Sessions command: GetSessions baseuri: "{{ baseuri }}" @@ -129,7 +129,7 @@ EXAMPLES = ''' msg: "{{ result.redfish_facts.session.entries | to_nice_json }}" - name: Get default inventory information - redfish_info: + community.general.redfish_info: baseuri: "{{ baseuri }}" username: "{{ username }}" password: "{{ password }}" @@ -138,7 +138,7 @@ EXAMPLES = ''' msg: "{{ result.redfish_facts | to_nice_json }}" - name: Get several inventories - redfish_info: + community.general.redfish_info: category: Systems command: GetNicInventory,GetBiosAttributes baseuri: "{{ baseuri }}" @@ -146,21 +146,21 @@ EXAMPLES = ''' password: "{{ password }}" - name: Get default system inventory and user information - redfish_info: + community.general.redfish_info: category: Systems,Accounts baseuri: "{{ baseuri }}" username: "{{ username }}" password: "{{ password }}" - name: Get default system, user and firmware information - redfish_info: + community.general.redfish_info: category: ["Systems", "Accounts", "Update"] baseuri: "{{ baseuri }}" username: "{{ username }}" password: "{{ password }}" - name: Get Manager NIC inventory information - redfish_info: + community.general.redfish_info: category: Manager command: GetManagerNicInventory baseuri: "{{ baseuri }}" @@ -168,7 +168,7 @@ EXAMPLES = ''' password: "{{ password }}" - name: Get boot override information - redfish_info: + community.general.redfish_info: category: Systems command: GetBootOverride baseuri: "{{ baseuri }}" @@ -176,7 +176,7 @@ EXAMPLES = ''' password: "{{ password }}" - name: Get chassis inventory - redfish_info: + community.general.redfish_info: category: Chassis command: GetChassisInventory baseuri: "{{ baseuri }}" @@ -184,7 +184,7 @@ EXAMPLES = ''' password: "{{ password }}" - name: Get all information available in the Manager category - redfish_info: + community.general.redfish_info: category: Manager command: all baseuri: "{{ baseuri }}" @@ -192,7 +192,7 @@ EXAMPLES = ''' password: "{{ password }}" - name: Get firmware update capability information - redfish_info: + community.general.redfish_info: category: Update command: GetFirmwareUpdateCapabilities baseuri: "{{ baseuri }}" @@ -200,7 +200,7 @@ EXAMPLES = ''' password: "{{ password }}" - name: Get firmware inventory - redfish_info: + community.general.redfish_info: category: Update command: GetFirmwareInventory baseuri: "{{ baseuri }}" @@ -208,7 +208,7 @@ EXAMPLES = ''' password: "{{ password }}" - name: Get software inventory - redfish_info: + community.general.redfish_info: category: Update command: GetSoftwareInventory baseuri: "{{ baseuri }}" @@ -216,7 +216,7 @@ EXAMPLES = ''' password: "{{ password }}" - name: Get Manager Services - redfish_info: + community.general.redfish_info: category: Manager command: GetNetworkProtocols baseuri: "{{ baseuri }}" @@ -224,7 +224,7 @@ EXAMPLES = ''' password: "{{ password }}" - name: Get all information available in all categories - redfish_info: + community.general.redfish_info: category: all command: all baseuri: "{{ baseuri }}" @@ -232,7 +232,7 @@ EXAMPLES = ''' password: "{{ password }}" - name: Get system health report - redfish_info: + community.general.redfish_info: category: Systems command: GetHealthReport baseuri: "{{ baseuri }}" @@ -240,7 +240,7 @@ EXAMPLES = ''' password: "{{ password }}" - name: Get chassis health report - redfish_info: + community.general.redfish_info: category: Chassis command: GetHealthReport baseuri: "{{ baseuri }}" @@ -248,7 +248,7 @@ EXAMPLES = ''' password: "{{ password }}" - name: Get manager health report - redfish_info: + community.general.redfish_info: category: Manager command: GetHealthReport baseuri: "{{ baseuri }}" diff --git a/plugins/modules/remote_management/stacki/stacki_host.py b/plugins/modules/remote_management/stacki/stacki_host.py index c503a7ab61..faffe12a23 100644 --- a/plugins/modules/remote_management/stacki/stacki_host.py +++ b/plugins/modules/remote_management/stacki/stacki_host.py @@ -52,7 +52,7 @@ author: EXAMPLES = ''' - name: Add a host named test-1 - stacki_host: + community.general.stacki_host: name: test-1 stacki_user: usr stacki_password: pwd @@ -62,7 +62,7 @@ EXAMPLES = ''' prim_intf: eth0 - name: Remove a host named test-1 - stacki_host: + community.general.stacki_host: name: test-1 stacki_user: usr stacki_password: pwd diff --git a/plugins/modules/remote_management/wakeonlan.py b/plugins/modules/remote_management/wakeonlan.py index 8b3c697f50..7bb21d9725 100644 --- a/plugins/modules/remote_management/wakeonlan.py +++ b/plugins/modules/remote_management/wakeonlan.py @@ -43,12 +43,12 @@ author: EXAMPLES = r''' - name: Send a magic Wake-on-LAN packet to 00:00:5E:00:53:66 - wakeonlan: + community.general.wakeonlan: mac: '00:00:5E:00:53:66' broadcast: 192.0.2.23 delegate_to: localhost -- wakeonlan: +- community.general.wakeonlan: mac: 00:00:5E:00:53:66 port: 9 delegate_to: localhost diff --git a/plugins/modules/source_control/bitbucket/bitbucket_access_key.py b/plugins/modules/source_control/bitbucket/bitbucket_access_key.py index 0470961ccf..80c1c49315 100644 --- a/plugins/modules/source_control/bitbucket/bitbucket_access_key.py +++ b/plugins/modules/source_control/bitbucket/bitbucket_access_key.py @@ -59,7 +59,7 @@ notes: EXAMPLES = r''' - name: Create access key - bitbucket_access_key: + community.general.bitbucket_access_key: repository: 'bitbucket-repo' username: bitbucket_username key: '{{lookup("file", "bitbucket.pub") }}' @@ -67,7 +67,7 @@ EXAMPLES = r''' state: present - name: Delete access key - bitbucket_access_key: + community.general.bitbucket_access_key: repository: bitbucket-repo username: bitbucket_username label: Bitbucket diff --git a/plugins/modules/source_control/bitbucket/bitbucket_pipeline_key_pair.py b/plugins/modules/source_control/bitbucket/bitbucket_pipeline_key_pair.py index 09468044d3..ab3b7ec4b7 100644 --- a/plugins/modules/source_control/bitbucket/bitbucket_pipeline_key_pair.py +++ b/plugins/modules/source_control/bitbucket/bitbucket_pipeline_key_pair.py @@ -57,7 +57,7 @@ notes: EXAMPLES = r''' - name: Create or update SSH key pair - bitbucket_pipeline_key_pair: + community.general.bitbucket_pipeline_key_pair: repository: 'bitbucket-repo' username: bitbucket_username public_key: '{{lookup("file", "bitbucket.pub") }}' @@ -65,7 +65,7 @@ EXAMPLES = r''' state: present - name: Remove SSH key pair - bitbucket_pipeline_key_pair: + community.general.bitbucket_pipeline_key_pair: repository: bitbucket-repo username: bitbucket_username state: absent diff --git a/plugins/modules/source_control/bitbucket/bitbucket_pipeline_known_host.py b/plugins/modules/source_control/bitbucket/bitbucket_pipeline_known_host.py index f58422a53e..dba9f9aab6 100644 --- a/plugins/modules/source_control/bitbucket/bitbucket_pipeline_known_host.py +++ b/plugins/modules/source_control/bitbucket/bitbucket_pipeline_known_host.py @@ -61,7 +61,7 @@ notes: EXAMPLES = r''' - name: Create known hosts from the list - bitbucket_pipeline_known_host: + community.general.bitbucket_pipeline_known_host: repository: 'bitbucket-repo' username: bitbucket_username name: '{{ item }}' @@ -71,14 +71,14 @@ EXAMPLES = r''' - example.com - name: Remove known host - bitbucket_pipeline_known_host: + community.general.bitbucket_pipeline_known_host: repository: bitbucket-repo username: bitbucket_username name: bitbucket.org state: absent - name: Specify public key file - bitbucket_pipeline_known_host: + community.general.bitbucket_pipeline_known_host: repository: bitbucket-repo username: bitbucket_username name: bitbucket.org diff --git a/plugins/modules/source_control/bitbucket/bitbucket_pipeline_variable.py b/plugins/modules/source_control/bitbucket/bitbucket_pipeline_variable.py index bbb1688214..d0eb86e6da 100644 --- a/plugins/modules/source_control/bitbucket/bitbucket_pipeline_variable.py +++ b/plugins/modules/source_control/bitbucket/bitbucket_pipeline_variable.py @@ -64,7 +64,7 @@ notes: EXAMPLES = r''' - name: Create or update pipeline variables from the list - bitbucket_pipeline_variable: + community.general.bitbucket_pipeline_variable: repository: 'bitbucket-repo' username: bitbucket_username name: '{{ item.name }}' @@ -76,7 +76,7 @@ EXAMPLES = r''' - { name: AWS_SECRET, value: qwe789poi123vbn0, secured: True } - name: Remove pipeline variable - bitbucket_pipeline_variable: + community.general.bitbucket_pipeline_variable: repository: bitbucket-repo username: bitbucket_username name: AWS_ACCESS_KEY diff --git a/plugins/modules/source_control/bzr.py b/plugins/modules/source_control/bzr.py index c7a1189557..7af3f27993 100644 --- a/plugins/modules/source_control/bzr.py +++ b/plugins/modules/source_control/bzr.py @@ -46,7 +46,7 @@ options: EXAMPLES = ''' - name: Checkout - bzr: + community.general.bzr: name: bzr+ssh://foosball.example.org/path/to/branch dest: /srv/checkout version: 22 diff --git a/plugins/modules/source_control/git_config.py b/plugins/modules/source_control/git_config.py index 9544063782..8784b4ddfe 100644 --- a/plugins/modules/source_control/git_config.py +++ b/plugins/modules/source_control/git_config.py @@ -60,72 +60,72 @@ options: EXAMPLES = ''' - name: Add a setting to ~/.gitconfig - git_config: + community.general.git_config: name: alias.ci scope: global value: commit - name: Add a setting to ~/.gitconfig - git_config: + community.general.git_config: name: alias.st scope: global value: status - name: Remove a setting from ~/.gitconfig - git_config: + community.general.git_config: name: alias.ci scope: global state: absent - name: Add a setting to ~/.gitconfig - git_config: + community.general.git_config: name: core.editor scope: global value: vim - name: Add a setting system-wide - git_config: + community.general.git_config: name: alias.remotev scope: system value: remote -v - name: Add a setting to a system scope (default) - git_config: + community.general.git_config: name: alias.diffc value: diff --cached - name: Add a setting to a system scope (default) - git_config: + community.general.git_config: name: color.ui value: auto - name: Make etckeeper not complaining when it is invoked by cron - git_config: + community.general.git_config: name: user.email repo: /etc scope: local value: 'root@{{ ansible_fqdn }}' - name: Read individual values from git config - git_config: + community.general.git_config: name: alias.ci scope: global - name: Scope system is also assumed when reading values, unless list_all=yes - git_config: + community.general.git_config: name: alias.diffc - name: Read all values from git config - git_config: + community.general.git_config: list_all: yes scope: global - name: When list_all is yes and no scope is specified, you get configuration from all scopes - git_config: + community.general.git_config: list_all: yes - name: Specify a repository to include local settings - git_config: + community.general.git_config: list_all: yes repo: /path/to/repo.git ''' diff --git a/plugins/modules/source_control/github/github_deploy_key.py b/plugins/modules/source_control/github/github_deploy_key.py index 8405e84fa3..8836454e05 100644 --- a/plugins/modules/source_control/github/github_deploy_key.py +++ b/plugins/modules/source_control/github/github_deploy_key.py @@ -77,7 +77,7 @@ notes: EXAMPLES = ''' - name: Add a new read-only deploy key to a GitHub repository using basic authentication - github_deploy_key: + community.general.github_deploy_key: owner: "johndoe" repo: "example" name: "new-deploy-key" @@ -87,7 +87,7 @@ EXAMPLES = ''' password: "supersecretpassword" - name: Remove an existing deploy key from a GitHub repository - github_deploy_key: + community.general.github_deploy_key: owner: "johndoe" repository: "example" name: "new-deploy-key" @@ -98,7 +98,7 @@ EXAMPLES = ''' state: absent - name: Add a new deploy key to a GitHub repository, replace an existing key, use an OAuth2 token to authenticate - github_deploy_key: + community.general.github_deploy_key: owner: "johndoe" repository: "example" name: "new-deploy-key" @@ -107,7 +107,7 @@ EXAMPLES = ''' token: "ABAQDAwXxn7kIMNWzcDfo..." - name: Re-add a deploy key to a GitHub repository but with a different name - github_deploy_key: + community.general.github_deploy_key: owner: "johndoe" repository: "example" name: "replace-deploy-key" @@ -116,7 +116,7 @@ EXAMPLES = ''' password: "supersecretpassword" - name: Add a new deploy key to a GitHub repository using 2FA - github_deploy_key: + community.general.github_deploy_key: owner: "johndoe" repo: "example" name: "new-deploy-key-2" @@ -126,7 +126,7 @@ EXAMPLES = ''' otp: 123456 - name: Add a read-only deploy key to a repository hosted on GitHub Enterprise - github_deploy_key: + community.general.github_deploy_key: github_url: "https://api.example.com" owner: "janedoe" repo: "example" diff --git a/plugins/modules/source_control/github/github_hooks.py b/plugins/modules/source_control/github/github_hooks.py index 6bc73e30c2..e326711d73 100644 --- a/plugins/modules/source_control/github/github_hooks.py +++ b/plugins/modules/source_control/github/github_hooks.py @@ -61,7 +61,7 @@ author: "Phillip Gentry, CX Inc (@pcgentry)" EXAMPLES = ''' - name: Create a new service hook ignoring duplicates - github_hooks: + community.general.github_hooks: action: create hookurl: http://11.111.111.111:2222 user: '{{ gituser }}' @@ -71,7 +71,7 @@ EXAMPLES = ''' # Cleaning all hooks for this repo that had an error on the last update. # Since this works for all hooks in a repo it is probably best that this would be called from a handler. - name: Clean all hooks - github_hooks: + community.general.github_hooks: action: cleanall user: '{{ gituser }}' oauthkey: '{{ oauthkey }}' diff --git a/plugins/modules/source_control/github/github_issue.py b/plugins/modules/source_control/github/github_issue.py index 19646ed747..8471b4190d 100644 --- a/plugins/modules/source_control/github/github_issue.py +++ b/plugins/modules/source_control/github/github_issue.py @@ -46,7 +46,7 @@ get_status: EXAMPLES = ''' - name: Check if GitHub issue is closed or not - github_issue: + community.general.github_issue: organization: ansible repo: ansible issue: 23642 diff --git a/plugins/modules/source_control/github/github_release.py b/plugins/modules/source_control/github/github_release.py index b0b6906f5d..5372d6e898 100644 --- a/plugins/modules/source_control/github/github_release.py +++ b/plugins/modules/source_control/github/github_release.py @@ -65,27 +65,27 @@ requirements: EXAMPLES = ''' - name: Get latest release of a public repository - github_release: + community.general.github_release: user: ansible repo: ansible action: latest_release - name: Get latest release of testuseer/testrepo - github_release: + community.general.github_release: token: tokenabc1234567890 user: testuser repo: testrepo action: latest_release - name: Get latest release of test repo using username and password. Ansible 2.4. - github_release: + community.general.github_release: user: testuser password: secret123 repo: testrepo action: latest_release - name: Create a new release - github_release: + community.general.github_release: token: tokenabc1234567890 user: testuser repo: testrepo diff --git a/plugins/modules/source_control/github/github_webhook.py b/plugins/modules/source_control/github/github_webhook.py index 4f78610deb..9747e0fc06 100644 --- a/plugins/modules/source_control/github/github_webhook.py +++ b/plugins/modules/source_control/github/github_webhook.py @@ -86,7 +86,7 @@ author: EXAMPLES = ''' - name: create a new webhook that triggers on push (password auth) - github_webhook: + community.general.github_webhook: repository: ansible/ansible url: https://www.example.com/hooks/ events: @@ -95,7 +95,7 @@ EXAMPLES = ''' password: "{{ github_password }}" - name: Create a new webhook in a github enterprise installation with multiple event triggers (token auth) - github_webhook: + community.general.github_webhook: repository: myorg/myrepo url: https://jenkins.example.com/ghprbhook/ content_type: json @@ -109,7 +109,7 @@ EXAMPLES = ''' github_url: https://github.example.com - name: Delete a webhook (password auth) - github_webhook: + community.general.github_webhook: repository: ansible/ansible url: https://www.example.com/hooks/ state: absent diff --git a/plugins/modules/source_control/github/github_webhook_info.py b/plugins/modules/source_control/github/github_webhook_info.py index a7a2883ce7..f99a0a0328 100644 --- a/plugins/modules/source_control/github/github_webhook_info.py +++ b/plugins/modules/source_control/github/github_webhook_info.py @@ -46,14 +46,14 @@ author: EXAMPLES = ''' - name: List hooks for a repository (password auth) - github_webhook_info: + community.general.github_webhook_info: repository: ansible/ansible user: "{{ github_user }}" password: "{{ github_password }}" register: ansible_webhooks - name: List hooks for a repository on GitHub Enterprise (token auth) - github_webhook_info: + community.general.github_webhook_info: repository: myorg/myrepo user: "{{ github_user }}" token: "{{ github_user_api_token }}" diff --git a/plugins/modules/source_control/gitlab/gitlab_deploy_key.py b/plugins/modules/source_control/gitlab/gitlab_deploy_key.py index cf26687938..a768d90251 100644 --- a/plugins/modules/source_control/gitlab/gitlab_deploy_key.py +++ b/plugins/modules/source_control/gitlab/gitlab_deploy_key.py @@ -61,7 +61,7 @@ options: EXAMPLES = ''' - name: "Adding a project deploy key" - gitlab_deploy_key: + community.general.gitlab_deploy_key: api_url: https://gitlab.example.com/ api_token: "{{ api_token }}" project: "my_group/my_project" @@ -70,7 +70,7 @@ EXAMPLES = ''' key: "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt4596k6YjzGGphH2TUxwKzxcKDKKezwkpfnxPkSMkuEspGRt/aZZ9w..." - name: "Update the above deploy key to add push access" - gitlab_deploy_key: + community.general.gitlab_deploy_key: api_url: https://gitlab.example.com/ api_token: "{{ api_token }}" project: "my_group/my_project" @@ -79,7 +79,7 @@ EXAMPLES = ''' can_push: yes - name: "Remove the previous deploy key from the project" - gitlab_deploy_key: + community.general.gitlab_deploy_key: api_url: https://gitlab.example.com/ api_token: "{{ api_token }}" project: "my_group/my_project" diff --git a/plugins/modules/source_control/gitlab/gitlab_group.py b/plugins/modules/source_control/gitlab/gitlab_group.py index 403b10f6a8..144a3956f2 100644 --- a/plugins/modules/source_control/gitlab/gitlab_group.py +++ b/plugins/modules/source_control/gitlab/gitlab_group.py @@ -65,7 +65,7 @@ options: EXAMPLES = ''' - name: "Delete GitLab Group" - gitlab_group: + community.general.gitlab_group: api_url: https://gitlab.example.com/ api_token: "{{ access_token }}" validate_certs: False @@ -73,7 +73,7 @@ EXAMPLES = ''' state: absent - name: "Create GitLab Group" - gitlab_group: + community.general.gitlab_group: api_url: https://gitlab.example.com/ validate_certs: True api_username: dj-wasabi @@ -84,7 +84,7 @@ EXAMPLES = ''' # The group will by created at https://gitlab.dj-wasabi.local/super_parent/parent/my_first_group - name: "Create GitLab SubGroup" - gitlab_group: + community.general.gitlab_group: api_url: https://gitlab.example.com/ validate_certs: True api_username: dj-wasabi diff --git a/plugins/modules/source_control/gitlab/gitlab_hook.py b/plugins/modules/source_control/gitlab/gitlab_hook.py index bdd81f141d..c8863fab57 100644 --- a/plugins/modules/source_control/gitlab/gitlab_hook.py +++ b/plugins/modules/source_control/gitlab/gitlab_hook.py @@ -110,7 +110,7 @@ options: EXAMPLES = ''' - name: "Adding a project hook" - gitlab_hook: + community.general.gitlab_hook: api_url: https://gitlab.example.com/ api_token: "{{ access_token }}" project: "my_group/my_project" @@ -122,7 +122,7 @@ EXAMPLES = ''' token: "my-super-secret-token-that-my-ci-server-will-check" - name: "Delete the previous hook" - gitlab_hook: + community.general.gitlab_hook: api_url: https://gitlab.example.com/ api_token: "{{ access_token }}" project: "my_group/my_project" @@ -130,7 +130,7 @@ EXAMPLES = ''' state: absent - name: "Delete a hook by numeric project id" - gitlab_hook: + community.general.gitlab_hook: api_url: https://gitlab.example.com/ api_token: "{{ access_token }}" project: 10 diff --git a/plugins/modules/source_control/gitlab/gitlab_project.py b/plugins/modules/source_control/gitlab/gitlab_project.py index c7a8759ced..147da77abe 100644 --- a/plugins/modules/source_control/gitlab/gitlab_project.py +++ b/plugins/modules/source_control/gitlab/gitlab_project.py @@ -99,7 +99,7 @@ options: EXAMPLES = ''' - name: Delete GitLab Project - gitlab_project: + community.general.gitlab_project: api_url: https://gitlab.example.com/ api_token: "{{ access_token }}" validate_certs: False @@ -108,7 +108,7 @@ EXAMPLES = ''' delegate_to: localhost - name: Create GitLab Project in group Ansible - gitlab_project: + community.general.gitlab_project: api_url: https://gitlab.example.com/ validate_certs: True api_username: dj-wasabi diff --git a/plugins/modules/source_control/gitlab/gitlab_project_variable.py b/plugins/modules/source_control/gitlab/gitlab_project_variable.py index 74756a9730..70d88d5f8f 100644 --- a/plugins/modules/source_control/gitlab/gitlab_project_variable.py +++ b/plugins/modules/source_control/gitlab/gitlab_project_variable.py @@ -63,7 +63,7 @@ options: EXAMPLES = ''' - name: Set or update some CI/CD variables - gitlab_project_variable: + community.general.gitlab_project_variable: api_url: https://gitlab.com api_token: secret_access_token project: markuman/dotfiles @@ -73,7 +73,7 @@ EXAMPLES = ''' SECRET_ACCESS_KEY: 321cba - name: Set or update some CI/CD variables - gitlab_project_variable: + community.general.gitlab_project_variable: api_url: https://gitlab.com api_token: secret_access_token project: markuman/dotfiles @@ -87,7 +87,7 @@ EXAMPLES = ''' variable_type: env_var - name: Delete one variable - gitlab_project_variable: + community.general.gitlab_project_variable: api_url: https://gitlab.com api_token: secret_access_token project: markuman/dotfiles diff --git a/plugins/modules/source_control/gitlab/gitlab_runner.py b/plugins/modules/source_control/gitlab/gitlab_runner.py index 1cb86352c9..54819d6702 100644 --- a/plugins/modules/source_control/gitlab/gitlab_runner.py +++ b/plugins/modules/source_control/gitlab/gitlab_runner.py @@ -98,7 +98,7 @@ options: EXAMPLES = ''' - name: "Register runner" - gitlab_runner: + community.general.gitlab_runner: api_url: https://gitlab.example.com/ api_token: "{{ access_token }}" registration_token: 4gfdsg345 @@ -110,7 +110,7 @@ EXAMPLES = ''' locked: False - name: "Delete runner" - gitlab_runner: + community.general.gitlab_runner: api_url: https://gitlab.example.com/ api_token: "{{ access_token }}" description: Docker Machine t1 diff --git a/plugins/modules/source_control/gitlab/gitlab_user.py b/plugins/modules/source_control/gitlab/gitlab_user.py index 22f3849d28..458a4734b2 100644 --- a/plugins/modules/source_control/gitlab/gitlab_user.py +++ b/plugins/modules/source_control/gitlab/gitlab_user.py @@ -105,7 +105,7 @@ options: EXAMPLES = ''' - name: "Delete GitLab User" - gitlab_user: + community.general.gitlab_user: api_url: https://gitlab.example.com/ api_token: "{{ access_token }}" validate_certs: False @@ -113,7 +113,7 @@ EXAMPLES = ''' state: absent - name: "Create GitLab User" - gitlab_user: + community.general.gitlab_user: api_url: https://gitlab.example.com/ validate_certs: True api_username: dj-wasabi @@ -129,7 +129,7 @@ EXAMPLES = ''' access_level: owner - name: "Block GitLab User" - gitlab_user: + community.general.gitlab_user: api_url: https://gitlab.example.com/ api_token: "{{ access_token }}" validate_certs: False @@ -137,7 +137,7 @@ EXAMPLES = ''' state: blocked - name: "Unblock GitLab User" - gitlab_user: + community.general.gitlab_user: api_url: https://gitlab.example.com/ api_token: "{{ access_token }}" validate_certs: False diff --git a/plugins/modules/source_control/hg.py b/plugins/modules/source_control/hg.py index c75b9ca94c..968cef18f2 100644 --- a/plugins/modules/source_control/hg.py +++ b/plugins/modules/source_control/hg.py @@ -69,14 +69,14 @@ notes: EXAMPLES = ''' - name: Ensure the current working copy is inside the stable branch and deletes untracked files if any. - hg: + community.general.hg: repo: https://bitbucket.org/user/repo1 dest: /home/user/repo1 revision: stable purge: yes - name: Get information about the repository whether or not it has already been cloned locally. - hg: + community.general.hg: repo: git://bitbucket.org/user/repo dest: /srv/checkout clone: no diff --git a/plugins/modules/storage/emc/emc_vnx_sg_member.py b/plugins/modules/storage/emc/emc_vnx_sg_member.py index a48bbe1f90..dfac03ef40 100644 --- a/plugins/modules/storage/emc/emc_vnx_sg_member.py +++ b/plugins/modules/storage/emc/emc_vnx_sg_member.py @@ -48,7 +48,7 @@ author: EXAMPLES = ''' - name: Add lun to storage group - emc_vnx_sg_member: + community.general.emc_vnx_sg_member: name: sg01 sp_address: sp1a.fqdn sp_user: sysadmin @@ -57,7 +57,7 @@ EXAMPLES = ''' state: present - name: Remove lun from storage group - emc_vnx_sg_member: + community.general.emc_vnx_sg_member: name: sg01 sp_address: sp1a.fqdn sp_user: sysadmin diff --git a/plugins/modules/storage/glusterfs/gluster_heal_info.py b/plugins/modules/storage/glusterfs/gluster_heal_info.py index 04ef234bb8..8df0682e72 100644 --- a/plugins/modules/storage/glusterfs/gluster_heal_info.py +++ b/plugins/modules/storage/glusterfs/gluster_heal_info.py @@ -35,7 +35,7 @@ requirements: EXAMPLES = ''' - name: Gather self-heal facts about all gluster hosts in the cluster - gluster_heal_info: + community.general.gluster_heal_info: name: test_volume status_filter: self-heal register: self_heal_status @@ -43,7 +43,7 @@ EXAMPLES = ''' var: self_heal_status - name: Gather rebalance facts about all gluster hosts in the cluster - gluster_heal_info: + community.general.gluster_heal_info: name: test_volume status_filter: rebalance register: rebalance_status diff --git a/plugins/modules/storage/glusterfs/gluster_peer.py b/plugins/modules/storage/glusterfs/gluster_peer.py index 0aea9cc6a6..23e24a0c92 100644 --- a/plugins/modules/storage/glusterfs/gluster_peer.py +++ b/plugins/modules/storage/glusterfs/gluster_peer.py @@ -48,20 +48,20 @@ notes: EXAMPLES = ''' - name: Create a trusted storage pool - gluster_peer: + community.general.gluster_peer: state: present nodes: - 10.0.1.5 - 10.0.1.10 - name: Delete a node from the trusted storage pool - gluster_peer: + community.general.gluster_peer: state: absent nodes: - 10.0.1.10 - name: Delete a node from the trusted storage pool by force - gluster_peer: + community.general.gluster_peer: state: absent nodes: - 10.0.0.1 diff --git a/plugins/modules/storage/glusterfs/gluster_volume.py b/plugins/modules/storage/glusterfs/gluster_volume.py index 182e940e94..56126a1ab6 100644 --- a/plugins/modules/storage/glusterfs/gluster_volume.py +++ b/plugins/modules/storage/glusterfs/gluster_volume.py @@ -87,7 +87,7 @@ author: EXAMPLES = """ - name: Create gluster volume - gluster_volume: + community.general.gluster_volume: state: present name: test1 bricks: /bricks/brick1/g1 @@ -98,14 +98,14 @@ EXAMPLES = """ run_once: true - name: Tune - gluster_volume: + community.general.gluster_volume: state: present name: test1 options: performance.cache-size: 256MB - name: Set multiple options on GlusterFS volume - gluster_volume: + community.general.gluster_volume: state: present name: test1 options: @@ -115,29 +115,29 @@ EXAMPLES = """ } - name: Start gluster volume - gluster_volume: + community.general.gluster_volume: state: started name: test1 - name: Limit usage - gluster_volume: + community.general.gluster_volume: state: present name: test1 directory: /foo quota: 20.0MB - name: Stop gluster volume - gluster_volume: + community.general.gluster_volume: state: stopped name: test1 - name: Remove gluster volume - gluster_volume: + community.general.gluster_volume: state: absent name: test1 - name: Create gluster volume with multiple bricks - gluster_volume: + community.general.gluster_volume: state: present name: test2 bricks: /bricks/brick1/g2,/bricks/brick2/g2 @@ -147,7 +147,7 @@ EXAMPLES = """ run_once: true - name: Remove the bricks from gluster volume - gluster_volume: + community.general.gluster_volume: state: present name: testvol bricks: /bricks/brick1/b1,/bricks/brick2/b2 @@ -157,7 +157,7 @@ EXAMPLES = """ run_once: true - name: Reduce cluster configuration - gluster_volume: + community.general.gluster_volume: state: present name: testvol bricks: /bricks/brick3/b1,/bricks/brick4/b2 diff --git a/plugins/modules/storage/hpe3par/ss_3par_cpg.py b/plugins/modules/storage/hpe3par/ss_3par_cpg.py index b9830e705a..04604c0966 100644 --- a/plugins/modules/storage/hpe3par/ss_3par_cpg.py +++ b/plugins/modules/storage/hpe3par/ss_3par_cpg.py @@ -93,7 +93,7 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Create CPG sample_cpg - ss_3par_cpg: + community.general.ss_3par_cpg: storage_system_ip: 10.10.10.1 storage_system_username: username storage_system_password: password @@ -110,7 +110,7 @@ EXAMPLES = r''' secure: no - name: Delete CPG sample_cpg - ss_3par_cpg: + community.general.ss_3par_cpg: storage_system_ip: 10.10.10.1 storage_system_username: username storage_system_password: password diff --git a/plugins/modules/storage/ibm/ibm_sa_domain.py b/plugins/modules/storage/ibm/ibm_sa_domain.py index 28206524ca..03a0d4c806 100644 --- a/plugins/modules/storage/ibm/ibm_sa_domain.py +++ b/plugins/modules/storage/ibm/ibm_sa_domain.py @@ -80,7 +80,7 @@ author: EXAMPLES = ''' - name: Define new domain. - ibm_sa_domain: + community.general.ibm_sa_domain: domain: domain_name size: domain_size state: present @@ -89,7 +89,7 @@ EXAMPLES = ''' endpoints: hostdev-system - name: Delete domain. - ibm_sa_domain: + community.general.ibm_sa_domain: domain: domain_name state: absent username: admin diff --git a/plugins/modules/storage/ibm/ibm_sa_host.py b/plugins/modules/storage/ibm/ibm_sa_host.py index 80bb727a79..8d30210b80 100644 --- a/plugins/modules/storage/ibm/ibm_sa_host.py +++ b/plugins/modules/storage/ibm/ibm_sa_host.py @@ -59,7 +59,7 @@ author: EXAMPLES = ''' - name: Define new host. - ibm_sa_host: + community.general.ibm_sa_host: host: host_name state: present username: admin @@ -67,7 +67,7 @@ EXAMPLES = ''' endpoints: hostdev-system - name: Delete host. - ibm_sa_host: + community.general.ibm_sa_host: host: host_name state: absent username: admin diff --git a/plugins/modules/storage/ibm/ibm_sa_host_ports.py b/plugins/modules/storage/ibm/ibm_sa_host_ports.py index 19aa4446d0..3ab082f4a7 100644 --- a/plugins/modules/storage/ibm/ibm_sa_host_ports.py +++ b/plugins/modules/storage/ibm/ibm_sa_host_ports.py @@ -52,7 +52,7 @@ author: EXAMPLES = ''' - name: Add ports for host. - ibm_sa_host_ports: + community.general.ibm_sa_host_ports: host: test_host iscsi_name: iqn.1994-05.com*** username: admin @@ -61,7 +61,7 @@ EXAMPLES = ''' state: present - name: Remove ports for host. - ibm_sa_host_ports: + community.general.ibm_sa_host_ports: host: test_host iscsi_name: iqn.1994-05.com*** username: admin diff --git a/plugins/modules/storage/ibm/ibm_sa_pool.py b/plugins/modules/storage/ibm/ibm_sa_pool.py index 4324fbe037..e4864ef113 100644 --- a/plugins/modules/storage/ibm/ibm_sa_pool.py +++ b/plugins/modules/storage/ibm/ibm_sa_pool.py @@ -55,7 +55,7 @@ author: EXAMPLES = ''' - name: Create new pool. - ibm_sa_pool: + community.general.ibm_sa_pool: name: pool_name size: 300 state: present @@ -64,7 +64,7 @@ EXAMPLES = ''' endpoints: hostdev-system - name: Delete pool. - ibm_sa_pool: + community.general.ibm_sa_pool: name: pool_name state: absent username: admin diff --git a/plugins/modules/storage/ibm/ibm_sa_vol.py b/plugins/modules/storage/ibm/ibm_sa_vol.py index b6a993b89a..588018a8f3 100644 --- a/plugins/modules/storage/ibm/ibm_sa_vol.py +++ b/plugins/modules/storage/ibm/ibm_sa_vol.py @@ -47,7 +47,7 @@ author: EXAMPLES = ''' - name: Create a new volume. - ibm_sa_vol: + community.general.ibm_sa_vol: vol: volume_name pool: pool_name size: 17 @@ -57,7 +57,7 @@ EXAMPLES = ''' endpoints: hostdev-system - name: Delete an existing volume. - ibm_sa_vol: + community.general.ibm_sa_vol: vol: volume_name state: absent username: admin diff --git a/plugins/modules/storage/ibm/ibm_sa_vol_map.py b/plugins/modules/storage/ibm/ibm_sa_vol_map.py index 991b5975bb..cd6816dcea 100644 --- a/plugins/modules/storage/ibm/ibm_sa_vol_map.py +++ b/plugins/modules/storage/ibm/ibm_sa_vol_map.py @@ -58,7 +58,7 @@ author: EXAMPLES = ''' - name: Map volume to host. - ibm_sa_vol_map: + community.general.ibm_sa_vol_map: vol: volume_name lun: 1 host: host_name @@ -68,7 +68,7 @@ EXAMPLES = ''' state: present - name: Map volume to cluster. - ibm_sa_vol_map: + community.general.ibm_sa_vol_map: vol: volume_name lun: 1 cluster: cluster_name @@ -78,7 +78,7 @@ EXAMPLES = ''' state: present - name: Unmap volume. - ibm_sa_vol_map: + community.general.ibm_sa_vol_map: host: host_name username: admin password: secret diff --git a/plugins/modules/storage/netapp/na_cdot_aggregate.py b/plugins/modules/storage/netapp/na_cdot_aggregate.py index d6a7da267b..f82bd7eae6 100644 --- a/plugins/modules/storage/netapp/na_cdot_aggregate.py +++ b/plugins/modules/storage/netapp/na_cdot_aggregate.py @@ -50,7 +50,7 @@ options: EXAMPLES = """ - name: Manage Aggregates - na_cdot_aggregate: + community.general.na_cdot_aggregate: state: present name: ansibleAggr disk_count: 1 @@ -59,7 +59,7 @@ EXAMPLES = """ password: "{{ netapp_password }}" - name: Manage Aggregates - na_cdot_aggregate: + community.general.na_cdot_aggregate: state: present name: ansibleAggr hostname: "{{ netapp_hostname }}" diff --git a/plugins/modules/storage/netapp/na_cdot_license.py b/plugins/modules/storage/netapp/na_cdot_license.py index dccdfeab77..bc70ff7c3f 100644 --- a/plugins/modules/storage/netapp/na_cdot_license.py +++ b/plugins/modules/storage/netapp/na_cdot_license.py @@ -96,7 +96,7 @@ options: EXAMPLES = """ - name: Add licenses - na_cdot_license: + community.general.na_cdot_license: hostname: "{{ netapp_hostname }}" username: "{{ netapp_username }}" password: "{{ netapp_password }}" @@ -110,7 +110,7 @@ EXAMPLES = """ flexclone: ################# - name: Remove licenses - na_cdot_license: + community.general.na_cdot_license: hostname: "{{ netapp_hostname }}" username: "{{ netapp_username }}" password: "{{ netapp_password }}" diff --git a/plugins/modules/storage/netapp/na_cdot_lun.py b/plugins/modules/storage/netapp/na_cdot_lun.py index ecfd62f513..3236dbeeb5 100644 --- a/plugins/modules/storage/netapp/na_cdot_lun.py +++ b/plugins/modules/storage/netapp/na_cdot_lun.py @@ -81,7 +81,7 @@ options: EXAMPLES = """ - name: Create LUN - na_cdot_lun: + community.general.na_cdot_lun: state: present name: ansibleLUN flexvol_name: ansibleVolume @@ -93,7 +93,7 @@ EXAMPLES = """ password: "{{ netapp_password }}" - name: Resize Lun - na_cdot_lun: + community.general.na_cdot_lun: state: present name: ansibleLUN force_resize: True diff --git a/plugins/modules/storage/netapp/na_cdot_qtree.py b/plugins/modules/storage/netapp/na_cdot_qtree.py index 077290c2fa..9f7ce60d0a 100644 --- a/plugins/modules/storage/netapp/na_cdot_qtree.py +++ b/plugins/modules/storage/netapp/na_cdot_qtree.py @@ -51,7 +51,7 @@ options: EXAMPLES = """ - name: Create QTree - na_cdot_qtree: + community.general.na_cdot_qtree: state: present name: ansibleQTree flexvol_name: ansibleVolume @@ -61,7 +61,7 @@ EXAMPLES = """ password: "{{ netapp_password }}" - name: Rename QTree - na_cdot_qtree: + community.general.na_cdot_qtree: state: present name: ansibleQTree flexvol_name: ansibleVolume diff --git a/plugins/modules/storage/netapp/na_cdot_svm.py b/plugins/modules/storage/netapp/na_cdot_svm.py index f4754bffe7..0227a014fa 100644 --- a/plugins/modules/storage/netapp/na_cdot_svm.py +++ b/plugins/modules/storage/netapp/na_cdot_svm.py @@ -63,7 +63,7 @@ options: EXAMPLES = """ - name: Create SVM - na_cdot_svm: + community.general.na_cdot_svm: state: present name: ansibleVServer root_volume: vol1 diff --git a/plugins/modules/storage/netapp/na_cdot_user.py b/plugins/modules/storage/netapp/na_cdot_user.py index 77b4dc4e23..626e0aa04c 100644 --- a/plugins/modules/storage/netapp/na_cdot_user.py +++ b/plugins/modules/storage/netapp/na_cdot_user.py @@ -82,7 +82,7 @@ options: EXAMPLES = """ - name: Create User - na_cdot_user: + community.general.na_cdot_user: state: present name: SampleUser application: ssh diff --git a/plugins/modules/storage/netapp/na_cdot_user_role.py b/plugins/modules/storage/netapp/na_cdot_user_role.py index c575c40d6b..8813320036 100644 --- a/plugins/modules/storage/netapp/na_cdot_user_role.py +++ b/plugins/modules/storage/netapp/na_cdot_user_role.py @@ -59,7 +59,7 @@ options: EXAMPLES = """ - name: Create User Role - na_cdot_user_role: + community.general.na_cdot_user_role: state: present name: ansibleRole command_directory_name: DEFAULT diff --git a/plugins/modules/storage/netapp/na_cdot_volume.py b/plugins/modules/storage/netapp/na_cdot_volume.py index 8e6c73bc0e..c10911d406 100644 --- a/plugins/modules/storage/netapp/na_cdot_volume.py +++ b/plugins/modules/storage/netapp/na_cdot_volume.py @@ -91,7 +91,7 @@ options: EXAMPLES = """ - name: Create FlexVol - na_cdot_volume: + community.general.na_cdot_volume: state: present name: ansibleVolume infinite: False @@ -107,7 +107,7 @@ EXAMPLES = """ snapshot_policy: daily - name: Make FlexVol offline - na_cdot_volume: + community.general.na_cdot_volume: state: present name: ansibleVolume infinite: False diff --git a/plugins/modules/storage/netapp/na_ontap_gather_facts.py b/plugins/modules/storage/netapp/na_ontap_gather_facts.py index 765da6b9de..640e5d5f14 100644 --- a/plugins/modules/storage/netapp/na_ontap_gather_facts.py +++ b/plugins/modules/storage/netapp/na_ontap_gather_facts.py @@ -49,7 +49,7 @@ options: EXAMPLES = ''' - name: Get NetApp info (Password Authentication) - na_ontap_gather_facts: + community.general.na_ontap_gather_facts: state: info hostname: "na-vsim" username: "admin" @@ -57,14 +57,14 @@ EXAMPLES = ''' - debug: var: ontap_facts - name: Limit Fact Gathering to Aggregate Information - na_ontap_gather_facts: + community.general.na_ontap_gather_facts: state: info hostname: "na-vsim" username: "admin" password: "admins_password" gather_subset: "aggregate_info" - name: Limit Fact Gathering to Volume and Lun Information - na_ontap_gather_facts: + community.general.na_ontap_gather_facts: state: info hostname: "na-vsim" username: "admin" @@ -73,7 +73,7 @@ EXAMPLES = ''' - volume_info - lun_info - name: Gather all facts except for volume and lun information - na_ontap_gather_facts: + community.general.na_ontap_gather_facts: state: info hostname: "na-vsim" username: "admin" diff --git a/plugins/modules/storage/netapp/sf_account_manager.py b/plugins/modules/storage/netapp/sf_account_manager.py index 378da07931..58c6962b25 100644 --- a/plugins/modules/storage/netapp/sf_account_manager.py +++ b/plugins/modules/storage/netapp/sf_account_manager.py @@ -67,7 +67,7 @@ options: EXAMPLES = """ - name: Create Account - sf_account_manager: + community.general.sf_account_manager: hostname: "{{ solidfire_hostname }}" username: "{{ solidfire_username }}" password: "{{ solidfire_password }}" @@ -75,7 +75,7 @@ EXAMPLES = """ name: TenantA - name: Modify Account - sf_account_manager: + community.general.sf_account_manager: hostname: "{{ solidfire_hostname }}" username: "{{ solidfire_username }}" password: "{{ solidfire_password }}" @@ -84,7 +84,7 @@ EXAMPLES = """ new_name: TenantA-Renamed - name: Delete Account - sf_account_manager: + community.general.sf_account_manager: hostname: "{{ solidfire_hostname }}" username: "{{ solidfire_username }}" password: "{{ solidfire_password }}" diff --git a/plugins/modules/storage/netapp/sf_check_connections.py b/plugins/modules/storage/netapp/sf_check_connections.py index c323a2456a..cfe2483230 100644 --- a/plugins/modules/storage/netapp/sf_check_connections.py +++ b/plugins/modules/storage/netapp/sf_check_connections.py @@ -45,7 +45,7 @@ options: EXAMPLES = """ - name: Check connections to MVIP and SVIP - sf_check_connections: + community.general.sf_check_connections: hostname: "{{ solidfire_hostname }}" username: "{{ solidfire_username }}" password: "{{ solidfire_password }}" diff --git a/plugins/modules/storage/netapp/sf_snapshot_schedule_manager.py b/plugins/modules/storage/netapp/sf_snapshot_schedule_manager.py index 1696d548d7..296e50bd29 100644 --- a/plugins/modules/storage/netapp/sf_snapshot_schedule_manager.py +++ b/plugins/modules/storage/netapp/sf_snapshot_schedule_manager.py @@ -93,7 +93,7 @@ options: EXAMPLES = """ - name: Create Snapshot schedule - sf_snapshot_schedule_manager: + community.general.sf_snapshot_schedule_manager: hostname: "{{ solidfire_hostname }}" username: "{{ solidfire_username }}" password: "{{ solidfire_password }}" @@ -104,7 +104,7 @@ EXAMPLES = """ volumes: 7 - name: Update Snapshot schedule - sf_snapshot_schedule_manager: + community.general.sf_snapshot_schedule_manager: hostname: "{{ solidfire_hostname }}" username: "{{ solidfire_username }}" password: "{{ solidfire_password }}" @@ -114,7 +114,7 @@ EXAMPLES = """ snapshot_name: AnsibleSnapshots - name: Delete Snapshot schedule - sf_snapshot_schedule_manager: + community.general.sf_snapshot_schedule_manager: hostname: "{{ solidfire_hostname }}" username: "{{ solidfire_username }}" password: "{{ solidfire_password }}" diff --git a/plugins/modules/storage/netapp/sf_volume_access_group_manager.py b/plugins/modules/storage/netapp/sf_volume_access_group_manager.py index 4c26bca20c..78e3097d48 100644 --- a/plugins/modules/storage/netapp/sf_volume_access_group_manager.py +++ b/plugins/modules/storage/netapp/sf_volume_access_group_manager.py @@ -62,7 +62,7 @@ options: EXAMPLES = """ - name: Create Volume Access Group - sf_volume_access_group_manager: + community.general.sf_volume_access_group_manager: hostname: "{{ solidfire_hostname }}" username: "{{ solidfire_username }}" password: "{{ solidfire_password }}" @@ -71,7 +71,7 @@ EXAMPLES = """ volumes: [7,8] - name: Modify Volume Access Group - sf_volume_access_group_manager: + community.general.sf_volume_access_group_manager: hostname: "{{ solidfire_hostname }}" username: "{{ solidfire_username }}" password: "{{ solidfire_password }}" @@ -81,7 +81,7 @@ EXAMPLES = """ attributes: {"volumes": [1,2,3], "virtual_network_id": 12345} - name: Delete Volume Access Group - sf_volume_access_group_manager: + community.general.sf_volume_access_group_manager: hostname: "{{ solidfire_hostname }}" username: "{{ solidfire_username }}" password: "{{ solidfire_password }}" diff --git a/plugins/modules/storage/netapp/sf_volume_manager.py b/plugins/modules/storage/netapp/sf_volume_manager.py index bb2f4aabe0..9d5378a251 100644 --- a/plugins/modules/storage/netapp/sf_volume_manager.py +++ b/plugins/modules/storage/netapp/sf_volume_manager.py @@ -83,7 +83,7 @@ options: EXAMPLES = """ - name: Create Volume - sf_volume_manager: + community.general.sf_volume_manager: hostname: "{{ solidfire_hostname }}" username: "{{ solidfire_username }}" password: "{{ solidfire_password }}" @@ -96,7 +96,7 @@ EXAMPLES = """ size_unit: gb - name: Update Volume - sf_volume_manager: + community.general.sf_volume_manager: hostname: "{{ solidfire_hostname }}" username: "{{ solidfire_username }}" password: "{{ solidfire_password }}" @@ -106,7 +106,7 @@ EXAMPLES = """ access: readWrite - name: Delete Volume - sf_volume_manager: + community.general.sf_volume_manager: hostname: "{{ solidfire_hostname }}" username: "{{ solidfire_username }}" password: "{{ solidfire_password }}" diff --git a/plugins/modules/storage/purestorage/purefa_facts.py b/plugins/modules/storage/purestorage/purefa_facts.py index f21529bd6e..5e8b593260 100644 --- a/plugins/modules/storage/purestorage/purefa_facts.py +++ b/plugins/modules/storage/purestorage/purefa_facts.py @@ -40,12 +40,12 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Collect default set of facts - purefa_facts: + community.general.purefa_facts: fa_url: 10.10.10.2 api_token: e31060a7-21fc-e277-6240-25983c6c4592 - name: Collect configuration and capacity facts - purefa_facts: + community.general.purefa_facts: gather_subset: - config - capacity @@ -53,7 +53,7 @@ EXAMPLES = r''' api_token: e31060a7-21fc-e277-6240-25983c6c4592 - name: Collect all facts - purefa_facts: + community.general.purefa_facts: gather_subset: - all fa_url: 10.10.10.2 diff --git a/plugins/modules/storage/purestorage/purefb_facts.py b/plugins/modules/storage/purestorage/purefb_facts.py index 642f3d4da2..8c5a40c0dc 100644 --- a/plugins/modules/storage/purestorage/purefb_facts.py +++ b/plugins/modules/storage/purestorage/purefb_facts.py @@ -40,12 +40,12 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Collect default set of facts - purefb_facts: + community.general.purefb_facts: fb_url: 10.10.10.2 api_token: T-55a68eb5-c785-4720-a2ca-8b03903bf641 - name: Collect configuration and capacity facts - purefb_facts: + community.general.purefb_facts: gather_subset: - config - capacity @@ -53,7 +53,7 @@ EXAMPLES = r''' api_token: T-55a68eb5-c785-4720-a2ca-8b03903bf641 - name: Collect all facts - purefb_facts: + community.general.purefb_facts: gather_subset: - all fb_url: 10.10.10.2 diff --git a/plugins/modules/storage/vexata/vexata_eg.py b/plugins/modules/storage/vexata/vexata_eg.py index 289ebda9a3..54bb8c29a7 100644 --- a/plugins/modules/storage/vexata/vexata_eg.py +++ b/plugins/modules/storage/vexata/vexata_eg.py @@ -50,7 +50,7 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Create export group named db_export. - vexata_eg: + community.general.vexata_eg: name: db_export vg: dbvols ig: dbhosts @@ -61,7 +61,7 @@ EXAMPLES = r''' password: secret - name: Delete export group named db_export - vexata_eg: + community.general.vexata_eg: name: db_export state: absent array: vx100_ultra.test.com diff --git a/plugins/modules/storage/vexata/vexata_volume.py b/plugins/modules/storage/vexata/vexata_volume.py index c9f088f783..1cf4cd7b5c 100644 --- a/plugins/modules/storage/vexata/vexata_volume.py +++ b/plugins/modules/storage/vexata/vexata_volume.py @@ -39,7 +39,7 @@ extends_documentation_fragment: EXAMPLES = r''' - name: Create new 2 TiB volume named foo - vexata_volume: + community.general.vexata_volume: name: foo size: 2T state: present @@ -48,7 +48,7 @@ EXAMPLES = r''' password: secret - name: Expand volume named foo to 4 TiB - vexata_volume: + community.general.vexata_volume: name: foo size: 4T state: present @@ -57,7 +57,7 @@ EXAMPLES = r''' password: secret - name: Delete volume named foo - vexata_volume: + community.general.vexata_volume: name: foo state: absent array: vx100_ultra.test.com diff --git a/plugins/modules/storage/zfs/zfs.py b/plugins/modules/storage/zfs/zfs.py index a173a0eff5..0536ece19d 100644 --- a/plugins/modules/storage/zfs/zfs.py +++ b/plugins/modules/storage/zfs/zfs.py @@ -39,39 +39,39 @@ author: EXAMPLES = ''' - name: Create a new file system called myfs in pool rpool with the setuid property turned off - zfs: + community.general.zfs: name: rpool/myfs state: present extra_zfs_properties: setuid: off - name: Create a new volume called myvol in pool rpool. - zfs: + community.general.zfs: name: rpool/myvol state: present extra_zfs_properties: volsize: 10M - name: Create a snapshot of rpool/myfs file system. - zfs: + community.general.zfs: name: rpool/myfs@mysnapshot state: present - name: Create a new file system called myfs2 with snapdir enabled - zfs: + community.general.zfs: name: rpool/myfs2 state: present extra_zfs_properties: snapdir: enabled - name: Create a new file system by cloning a snapshot - zfs: + community.general.zfs: name: rpool/cloned_fs state: present origin: rpool/myfs@mysnapshot - name: Destroy a filesystem - zfs: + community.general.zfs: name: rpool/myfs state: absent ''' diff --git a/plugins/modules/storage/zfs/zfs_delegate_admin.py b/plugins/modules/storage/zfs/zfs_delegate_admin.py index 840a1da8bf..6b3efd1aae 100644 --- a/plugins/modules/storage/zfs/zfs_delegate_admin.py +++ b/plugins/modules/storage/zfs/zfs_delegate_admin.py @@ -70,27 +70,27 @@ author: EXAMPLES = r''' - name: Grant `zfs allow` and `unallow` permission to the `adm` user with the default local+descendents scope - zfs_delegate_admin: + community.general.zfs_delegate_admin: name: rpool/myfs users: adm permissions: allow,unallow - name: Grant `zfs send` to everyone, plus the group `backup` - zfs_delegate_admin: + community.general.zfs_delegate_admin: name: rpool/myvol groups: backup everyone: yes permissions: send - name: Grant `zfs send,receive` to users `foo` and `bar` with local scope only - zfs_delegate_admin: + community.general.zfs_delegate_admin: name: rpool/myfs users: foo,bar permissions: send,receive local: yes - name: Revoke all permissions from everyone (permissions specifically assigned to users and groups remain) - zfs_delegate_admin: + community.general.zfs_delegate_admin: name: rpool/myfs everyone: yes state: absent diff --git a/plugins/modules/storage/zfs/zfs_facts.py b/plugins/modules/storage/zfs/zfs_facts.py index 9036565f8c..960a5faf97 100644 --- a/plugins/modules/storage/zfs/zfs_facts.py +++ b/plugins/modules/storage/zfs/zfs_facts.py @@ -52,11 +52,11 @@ options: EXAMPLES = ''' - name: Gather facts about ZFS dataset rpool/export/home - zfs_facts: + community.general.zfs_facts: dataset: rpool/export/home - name: Report space usage on ZFS filesystems under data/home - zfs_facts: + community.general.zfs_facts: name: data/home recurse: yes type: filesystem diff --git a/plugins/modules/storage/zfs/zpool_facts.py b/plugins/modules/storage/zfs/zpool_facts.py index 1e9332568a..55f00bb2f5 100644 --- a/plugins/modules/storage/zfs/zpool_facts.py +++ b/plugins/modules/storage/zfs/zpool_facts.py @@ -39,10 +39,10 @@ options: EXAMPLES = ''' - name: Gather facts about ZFS pool rpool - zpool_facts: pool=rpool + community.general.zpool_facts: pool=rpool - name: Gather space usage about all imported ZFS pools - zpool_facts: properties='free,size' + community.general.zpool_facts: properties='free,size' - name: Print gathered information debug: diff --git a/plugins/modules/system/aix_devices.py b/plugins/modules/system/aix_devices.py index e4099e4656..851070e932 100644 --- a/plugins/modules/system/aix_devices.py +++ b/plugins/modules/system/aix_devices.py @@ -49,55 +49,55 @@ options: EXAMPLES = r''' - name: Scan new devices - aix_devices: + community.general.aix_devices: device: all state: available - name: Scan new virtual devices (vio0) - aix_devices: + community.general.aix_devices: device: vio0 state: available - name: Removing IP alias to en0 - aix_devices: + community.general.aix_devices: device: en0 attributes: delalias4: 10.0.0.100,255.255.255.0 - name: Removes ent2 - aix_devices: + community.general.aix_devices: device: ent2 state: removed - name: Put device en2 in Defined - aix_devices: + community.general.aix_devices: device: en2 state: defined - name: Removes ent4 (inexistent). - aix_devices: + community.general.aix_devices: device: ent4 state: removed - name: Put device en4 in Defined (inexistent) - aix_devices: + community.general.aix_devices: device: en4 state: defined - name: Put vscsi1 and children devices in Defined state. - aix_devices: + community.general.aix_devices: device: vscsi1 recursive: yes state: defined - name: Removes vscsi1 and children devices. - aix_devices: + community.general.aix_devices: device: vscsi1 recursive: yes state: removed - name: Changes en1 mtu to 9000 and disables arp. - aix_devices: + community.general.aix_devices: device: en1 attributes: mtu: 900 @@ -105,7 +105,7 @@ EXAMPLES = r''' state: available - name: Configure IP, netmask and set en1 up. - aix_devices: + community.general.aix_devices: device: en1 attributes: netaddr: 192.168.0.100 @@ -114,7 +114,7 @@ EXAMPLES = r''' state: available - name: Adding IP alias to en0 - aix_devices: + community.general.aix_devices: device: en0 attributes: alias4: 10.0.0.100,255.255.255.0 diff --git a/plugins/modules/system/aix_filesystem.py b/plugins/modules/system/aix_filesystem.py index 1293fee5ce..f22577c828 100644 --- a/plugins/modules/system/aix_filesystem.py +++ b/plugins/modules/system/aix_filesystem.py @@ -103,57 +103,57 @@ notes: EXAMPLES = r''' - name: Create filesystem in a previously defined logical volume. - aix_filesystem: + community.general.aix_filesystem: device: testlv - filesystem: /testfs + community.general.filesystem: /testfs state: present - name: Creating NFS filesystem from nfshost. - aix_filesystem: + community.general.aix_filesystem: device: /home/ftp nfs_server: nfshost - filesystem: /home/ftp + community.general.filesystem: /home/ftp state: present - name: Creating a new file system without a previously logical volume. - aix_filesystem: - filesystem: /newfs + community.general.aix_filesystem: + community.general.filesystem: /newfs size: 1G state: present vg: datavg - name: Unmounting /testfs. - aix_filesystem: - filesystem: /testfs + community.general.aix_filesystem: + community.general.filesystem: /testfs state: unmounted - name: Resizing /mksysb to +512M. - aix_filesystem: - filesystem: /mksysb + community.general.aix_filesystem: + community.general.filesystem: /mksysb size: +512M state: present - name: Resizing /mksysb to 11G. - aix_filesystem: - filesystem: /mksysb + community.general.aix_filesystem: + community.general.filesystem: /mksysb size: 11G state: present - name: Resizing /mksysb to -2G. - aix_filesystem: - filesystem: /mksysb + community.general.aix_filesystem: + community.general.filesystem: /mksysb size: -2G state: present - name: Remove NFS filesystem /home/ftp. - aix_filesystem: - filesystem: /home/ftp + community.general.aix_filesystem: + community.general.filesystem: /home/ftp rm_mount_point: yes state: absent - name: Remove /newfs. - aix_filesystem: - filesystem: /newfs + community.general.aix_filesystem: + community.general.filesystem: /newfs rm_mount_point: yes state: absent ''' @@ -179,7 +179,7 @@ def _fs_exists(module, filesystem): Check if file system already exists on /etc/filesystems. :param module: Ansible module. - :param filesystem: filesystem name. + :param community.general.filesystem: filesystem name. :return: True or False. """ lsfs_cmd = module.get_bin_path('lsfs', True) diff --git a/plugins/modules/system/aix_inittab.py b/plugins/modules/system/aix_inittab.py index 3043b2992c..7692339ddd 100644 --- a/plugins/modules/system/aix_inittab.py +++ b/plugins/modules/system/aix_inittab.py @@ -71,7 +71,7 @@ requirements: EXAMPLES = ''' # Add service startmyservice to the inittab, directly after service existingservice. - name: Add startmyservice to inittab - aix_inittab: + community.general.aix_inittab: name: startmyservice runlevel: 4 action: once @@ -82,7 +82,7 @@ EXAMPLES = ''' # Change inittab entry startmyservice to runlevel "2" and processaction "wait". - name: Change startmyservice to inittab - aix_inittab: + community.general.aix_inittab: name: startmyservice runlevel: 2 action: wait @@ -91,7 +91,7 @@ EXAMPLES = ''' become: yes - name: Remove startmyservice from inittab - aix_inittab: + community.general.aix_inittab: name: startmyservice runlevel: 2 action: wait diff --git a/plugins/modules/system/aix_lvg.py b/plugins/modules/system/aix_lvg.py index 971ec14a8a..137f701563 100644 --- a/plugins/modules/system/aix_lvg.py +++ b/plugins/modules/system/aix_lvg.py @@ -55,25 +55,25 @@ notes: EXAMPLES = r''' - name: Create a volume group datavg - aix_lvg: + community.general.aix_lvg: vg: datavg pp_size: 128 vg_type: scalable state: present - name: Removing a volume group datavg - aix_lvg: + community.general.aix_lvg: vg: datavg state: absent - name: Extending rootvg - aix_lvg: + community.general.aix_lvg: vg: rootvg pvs: hdisk1 state: present - name: Reducing rootvg - aix_lvg: + community.general.aix_lvg: vg: rootvg pvs: hdisk1 state: absent diff --git a/plugins/modules/system/aix_lvol.py b/plugins/modules/system/aix_lvol.py index 1fc4654717..2a1a612a3e 100644 --- a/plugins/modules/system/aix_lvol.py +++ b/plugins/modules/system/aix_lvol.py @@ -69,47 +69,47 @@ options: EXAMPLES = r''' - name: Create a logical volume of 512M - aix_lvol: + community.general.aix_lvol: vg: testvg lv: testlv size: 512M - name: Create a logical volume of 512M with disks hdisk1 and hdisk2 - aix_lvol: + community.general.aix_lvol: vg: testvg lv: test2lv size: 512M pvs: [ hdisk1, hdisk2 ] - name: Create a logical volume of 512M mirrored - aix_lvol: + community.general.aix_lvol: vg: testvg lv: test3lv size: 512M copies: 2 - name: Create a logical volume of 1G with a minimum placement policy - aix_lvol: + community.general.aix_lvol: vg: rootvg lv: test4lv size: 1G policy: minimum - name: Create a logical volume with special options like mirror pool - aix_lvol: + community.general.aix_lvol: vg: testvg lv: testlv size: 512M opts: -p copy1=poolA -p copy2=poolB - name: Extend the logical volume to 1200M - aix_lvol: + community.general.aix_lvol: vg: testvg lv: test4lv size: 1200M - name: Remove the logical volume - aix_lvol: + community.general.aix_lvol: vg: testvg lv: testlv state: absent diff --git a/plugins/modules/system/alternatives.py b/plugins/modules/system/alternatives.py index 0727321c71..56db6dc69c 100644 --- a/plugins/modules/system/alternatives.py +++ b/plugins/modules/system/alternatives.py @@ -46,18 +46,18 @@ requirements: [ update-alternatives ] EXAMPLES = r''' - name: Correct java version selected - alternatives: + community.general.alternatives: name: java path: /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java - name: Alternatives link created - alternatives: + community.general.alternatives: name: hadoop-conf link: /etc/hadoop/conf path: /etc/hadoop/conf.ansible - name: Make java 32 bit an alternative with low priority - alternatives: + community.general.alternatives: name: java path: /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java priority: -10 diff --git a/plugins/modules/system/awall.py b/plugins/modules/system/awall.py index 848d0d0fb6..d05f531dff 100644 --- a/plugins/modules/system/awall.py +++ b/plugins/modules/system/awall.py @@ -38,12 +38,12 @@ options: EXAMPLES = r''' - name: Enable "foo" and "bar" policy - awall: + community.general.awall: name: [ foo bar ] state: enabled - name: Disable "foo" and "bar" policy and activate new rules - awall: + community.general.awall: name: - foo - bar @@ -51,7 +51,7 @@ EXAMPLES = r''' activate: no - name: Activate currently enabled firewall rules - awall: + community.general.awall: activate: yes ''' diff --git a/plugins/modules/system/beadm.py b/plugins/modules/system/beadm.py index d7b6ba5b4a..131af6ce65 100644 --- a/plugins/modules/system/beadm.py +++ b/plugins/modules/system/beadm.py @@ -58,41 +58,41 @@ options: EXAMPLES = r''' - name: Create ZFS boot environment - beadm: + community.general.beadm: name: upgrade-be state: present - name: Create ZFS boot environment from existing inactive boot environment - beadm: + community.general.beadm: name: upgrade-be snapshot: be@old state: present - name: Create ZFS boot environment with compression enabled and description "upgrade" - beadm: + community.general.beadm: name: upgrade-be options: "compression=on" description: upgrade state: present - name: Delete ZFS boot environment - beadm: + community.general.beadm: name: old-be state: absent - name: Mount ZFS boot environment on /tmp/be - beadm: + community.general.beadm: name: BE mountpoint: /tmp/be state: mounted - name: Unmount ZFS boot environment - beadm: + community.general.beadm: name: BE state: unmounted - name: Activate ZFS boot environment - beadm: + community.general.beadm: name: upgrade-be state: activated ''' diff --git a/plugins/modules/system/capabilities.py b/plugins/modules/system/capabilities.py index 2649a460f4..9643aadbce 100644 --- a/plugins/modules/system/capabilities.py +++ b/plugins/modules/system/capabilities.py @@ -43,13 +43,13 @@ author: EXAMPLES = r''' - name: Set cap_sys_chroot+ep on /foo - capabilities: + community.general.capabilities: path: /foo capability: cap_sys_chroot+ep state: present - name: Remove cap_net_bind_service from /bar - capabilities: + community.general.capabilities: path: /bar capability: cap_net_bind_service state: absent diff --git a/plugins/modules/system/cronvar.py b/plugins/modules/system/cronvar.py index 4d86a40b94..a76f6a7891 100644 --- a/plugins/modules/system/cronvar.py +++ b/plugins/modules/system/cronvar.py @@ -75,17 +75,17 @@ author: EXAMPLES = r''' - name: Ensure entry like "EMAIL=doug@ansibmod.con.com" exists - cronvar: + community.general.cronvar: name: EMAIL value: doug@ansibmod.con.com - name: Ensure a variable does not exist. This may remove any variable named "LEGACY" - cronvar: + community.general.cronvar: name: LEGACY state: absent - name: Add a variable to a file under /etc/cron.d - cronvar: + community.general.cronvar: name: LOGFILE value: /var/log/yum-autoupdate.log user: root @@ -318,13 +318,13 @@ class CronVar(object): def main(): # The following example playbooks: # - # - cronvar: name="SHELL" value="/bin/bash" + # - community.general.cronvar: name="SHELL" value="/bin/bash" # # - name: Set the email - # cronvar: name="EMAILTO" value="doug@ansibmod.con.com" + # community.general.cronvar: name="EMAILTO" value="doug@ansibmod.con.com" # # - name: Get rid of the old new host variable - # cronvar: name="NEW_HOST" state=absent + # community.general.cronvar: name="NEW_HOST" state=absent # # Would produce: # SHELL = /bin/bash diff --git a/plugins/modules/system/crypttab.py b/plugins/modules/system/crypttab.py index 43df99ab36..9841a786c1 100644 --- a/plugins/modules/system/crypttab.py +++ b/plugins/modules/system/crypttab.py @@ -58,13 +58,13 @@ author: EXAMPLES = r''' - name: Set the options explicitly a device which must already exist - crypttab: + community.general.crypttab: name: luks-home state: present opts: discard,cipher=aes-cbc-essiv:sha256 - name: Add the 'discard' option to any existing options for all devices - crypttab: + community.general.crypttab: name: '{{ item.device }}' state: opts_present opts: discard diff --git a/plugins/modules/system/dconf.py b/plugins/modules/system/dconf.py index 88d8de8c1f..abb09f6bd3 100644 --- a/plugins/modules/system/dconf.py +++ b/plugins/modules/system/dconf.py @@ -76,41 +76,41 @@ value: EXAMPLES = """ - name: Configure available keyboard layouts in Gnome - dconf: + community.general.dconf: key: "/org/gnome/desktop/input-sources/sources" value: "[('xkb', 'us'), ('xkb', 'se')]" state: present - name: Read currently available keyboard layouts in Gnome - dconf: + community.general.dconf: key: "/org/gnome/desktop/input-sources/sources" state: read register: keyboard_layouts - name: Reset the available keyboard layouts in Gnome - dconf: + community.general.dconf: key: "/org/gnome/desktop/input-sources/sources" state: absent - name: Configure available keyboard layouts in Cinnamon - dconf: + community.general.dconf: key: "/org/gnome/libgnomekbd/keyboard/layouts" value: "['us', 'se']" state: present - name: Read currently available keyboard layouts in Cinnamon - dconf: + community.general.dconf: key: "/org/gnome/libgnomekbd/keyboard/layouts" state: read register: keyboard_layouts - name: Reset the available keyboard layouts in Cinnamon - dconf: + community.general.dconf: key: "/org/gnome/libgnomekbd/keyboard/layouts" state: absent - name: Disable desktop effects in Cinnamon - dconf: + community.general.dconf: key: "/org/cinnamon/desktop-effects" value: "false" state: present diff --git a/plugins/modules/system/filesystem.py b/plugins/modules/system/filesystem.py index f4feb50b93..3707d800db 100644 --- a/plugins/modules/system/filesystem.py +++ b/plugins/modules/system/filesystem.py @@ -59,12 +59,12 @@ notes: EXAMPLES = ''' - name: Create a ext2 filesystem on /dev/sdb1 - filesystem: + community.general.filesystem: fstype: ext2 dev: /dev/sdb1 - name: Create a ext4 filesystem on /dev/sdb1 and check disk blocks - filesystem: + community.general.filesystem: fstype: ext4 dev: /dev/sdb1 opts: -cc diff --git a/plugins/modules/system/firewalld.py b/plugins/modules/system/firewalld.py index bb5c0f896c..86187c589b 100644 --- a/plugins/modules/system/firewalld.py +++ b/plugins/modules/system/firewalld.py @@ -108,74 +108,74 @@ author: ''' EXAMPLES = r''' -- firewalld: +- community.general.firewalld: service: https permanent: yes state: enabled -- firewalld: +- community.general.firewalld: port: 8081/tcp permanent: yes state: disabled -- firewalld: +- community.general.firewalld: port: 161-162/udp permanent: yes state: enabled -- firewalld: +- community.general.firewalld: zone: dmz service: http permanent: yes state: enabled -- firewalld: +- community.general.firewalld: rich_rule: rule service name="ftp" audit limit value="1/m" accept permanent: yes state: enabled -- firewalld: +- community.general.firewalld: source: 192.0.2.0/24 zone: internal state: enabled -- firewalld: +- community.general.firewalld: zone: trusted interface: eth2 permanent: yes state: enabled -- firewalld: +- community.general.firewalld: masquerade: yes state: enabled permanent: yes zone: dmz -- firewalld: +- community.general.firewalld: zone: custom state: present permanent: yes -- firewalld: +- community.general.firewalld: zone: drop state: enabled permanent: yes icmp_block_inversion: yes -- firewalld: +- community.general.firewalld: zone: drop state: enabled permanent: yes icmp_block: echo-request -- firewalld: +- community.general.firewalld: zone: internal state: present permanent: yes target: ACCEPT - name: Redirect port 443 to 8443 with Rich Rule - firewalld: + community.general.firewalld: rich_rule: rule family=ipv4 forward-port port=443 protocol=tcp to-port=8443 zone: public permanent: yes diff --git a/plugins/modules/system/gconftool2.py b/plugins/modules/system/gconftool2.py index 7c84316fe8..f9e4a2d746 100644 --- a/plugins/modules/system/gconftool2.py +++ b/plugins/modules/system/gconftool2.py @@ -51,7 +51,7 @@ options: EXAMPLES = """ - name: Change the widget font to "Serif 12" - gconftool2: + community.general.gconftool2: key: "/desktop/gnome/interface/font_name" value_type: "string" value: "Serif 12" diff --git a/plugins/modules/system/interfaces_file.py b/plugins/modules/system/interfaces_file.py index bd130593e7..7684bf485e 100644 --- a/plugins/modules/system/interfaces_file.py +++ b/plugins/modules/system/interfaces_file.py @@ -124,7 +124,7 @@ ifaces: EXAMPLES = ''' - name: Set eth1 mtu configuration value to 8000 - interfaces_file: + community.general.interfaces_file: dest: /etc/network/interfaces.d/eth1.cfg iface: eth1 option: mtu diff --git a/plugins/modules/system/java_cert.py b/plugins/modules/system/java_cert.py index 6e882c8abb..8f56e2b426 100644 --- a/plugins/modules/system/java_cert.py +++ b/plugins/modules/system/java_cert.py @@ -89,7 +89,7 @@ author: EXAMPLES = r''' - name: Import SSL certificate from google.com to a given cacerts keystore - java_cert: + community.general.java_cert: cert_url: google.com cert_port: 443 keystore_path: /usr/lib/jvm/jre7/lib/security/cacerts @@ -97,7 +97,7 @@ EXAMPLES = r''' state: present - name: Remove certificate with given alias from a keystore - java_cert: + community.general.java_cert: cert_url: google.com keystore_path: /usr/lib/jvm/jre7/lib/security/cacerts keystore_pass: changeit @@ -105,7 +105,7 @@ EXAMPLES = r''' state: absent - name: Import trusted CA from SSL certificate - java_cert: + community.general.java_cert: cert_path: /opt/certs/rootca.crt keystore_path: /tmp/cacerts keystore_pass: changeit @@ -115,7 +115,7 @@ EXAMPLES = r''' trust_cacert: True - name: Import SSL certificate from google.com to a keystore, create it if it doesn't exist - java_cert: + community.general.java_cert: cert_url: google.com keystore_path: /tmp/cacerts keystore_pass: changeit @@ -123,7 +123,7 @@ EXAMPLES = r''' state: present - name: Import a pkcs12 keystore with a specified alias, create it if it doesn't exist - java_cert: + community.general.java_cert: pkcs12_path: "/tmp/importkeystore.p12" cert_alias: default keystore_path: /opt/wildfly/standalone/configuration/defaultkeystore.jks @@ -132,7 +132,7 @@ EXAMPLES = r''' state: present - name: Import SSL certificate to JCEKS keystore - java_cert: + community.general.java_cert: pkcs12_path: "/tmp/importkeystore.p12" pkcs12_alias: default pkcs12_password: somepass diff --git a/plugins/modules/system/java_keystore.py b/plugins/modules/system/java_keystore.py index 6581527f51..d8f4fdf435 100644 --- a/plugins/modules/system/java_keystore.py +++ b/plugins/modules/system/java_keystore.py @@ -65,7 +65,7 @@ author: Guillaume Grossetie (@Mogztter) EXAMPLES = ''' - name: Create a key store for the given certificate (inline) - java_keystore: + community.general.java_keystore: name: example certificate: | -----BEGIN CERTIFICATE----- @@ -81,7 +81,7 @@ EXAMPLES = ''' dest: /etc/security/keystore.jks - name: Create a key store for the given certificate (lookup) - java_keystore: + community.general.java_keystore: name: example certificate: "{{lookup('file', '/path/to/certificate.crt') }}" private_key: "{{lookup('file', '/path/to/private.key') }}" diff --git a/plugins/modules/system/kernel_blacklist.py b/plugins/modules/system/kernel_blacklist.py index 34a61f600f..490d215697 100644 --- a/plugins/modules/system/kernel_blacklist.py +++ b/plugins/modules/system/kernel_blacklist.py @@ -33,7 +33,7 @@ options: EXAMPLES = ''' - name: Blacklist the nouveau driver module - kernel_blacklist: + community.general.kernel_blacklist: name: nouveau state: present ''' diff --git a/plugins/modules/system/lbu.py b/plugins/modules/system/lbu.py index 75f17560a1..9bd6a27ce5 100644 --- a/plugins/modules/system/lbu.py +++ b/plugins/modules/system/lbu.py @@ -38,19 +38,19 @@ author: EXAMPLES = ''' # Commit changed files (if any) - name: Commit - lbu: + community.general.lbu: commit: true # Exclude path and commit - name: Exclude directory - lbu: + community.general.lbu: commit: true exclude: - /etc/opt # Include paths without committing - name: Include file and directory - lbu: + community.general.lbu: include: - /root/.ssh/authorized_keys - /var/lib/misc diff --git a/plugins/modules/system/listen_ports_facts.py b/plugins/modules/system/listen_ports_facts.py index 527129261a..efa925a2c8 100644 --- a/plugins/modules/system/listen_ports_facts.py +++ b/plugins/modules/system/listen_ports_facts.py @@ -22,7 +22,7 @@ short_description: Gather facts on processes listening on TCP and UDP ports. EXAMPLES = r''' - name: Gather facts on listening ports - listen_ports_facts: + community.general.listen_ports_facts: - name: TCP whitelist violation debug: diff --git a/plugins/modules/system/locale_gen.py b/plugins/modules/system/locale_gen.py index 3b93adffe1..cb227b707e 100644 --- a/plugins/modules/system/locale_gen.py +++ b/plugins/modules/system/locale_gen.py @@ -28,7 +28,7 @@ options: EXAMPLES = ''' - name: Ensure a locale exists - locale_gen: + community.general.locale_gen: name: de_CH.UTF-8 state: present ''' diff --git a/plugins/modules/system/lvg.py b/plugins/modules/system/lvg.py index 6551920d77..0800c72b79 100644 --- a/plugins/modules/system/lvg.py +++ b/plugins/modules/system/lvg.py @@ -71,13 +71,13 @@ notes: EXAMPLES = r''' - name: Create a volume group on top of /dev/sda1 with physical extent size = 32MB - lvg: + community.general.lvg: vg: vg.services pvs: /dev/sda1 pesize: 32 - name: Create a volume group on top of /dev/sdb with physical extent size = 128KiB - lvg: + community.general.lvg: vg: vg.services pvs: /dev/sdb pesize: 128K @@ -87,17 +87,17 @@ EXAMPLES = r''' # top of /dev/sda5, we first extend it with /dev/sdb1 and /dev/sdc5, # and then reduce by /dev/sda5. - name: Create or resize a volume group on top of /dev/sdb1 and /dev/sdc5. - lvg: + community.general.lvg: vg: vg.services pvs: /dev/sdb1,/dev/sdc5 - name: Remove a volume group with name vg.services - lvg: + community.general.lvg: vg: vg.services state: absent - name: Create a volume group on top of /dev/sda3 and resize the volume group /dev/sda3 to the maximum possible - lvg: + community.general.lvg: vg: resizableVG pvs: /dev/sda3 pvresize: yes diff --git a/plugins/modules/system/lvol.py b/plugins/modules/system/lvol.py index fd3f929f60..ba6e9c70c9 100644 --- a/plugins/modules/system/lvol.py +++ b/plugins/modules/system/lvol.py @@ -75,119 +75,119 @@ notes: EXAMPLES = ''' - name: Create a logical volume of 512m - lvol: + community.general.lvol: vg: firefly lv: test size: 512 - name: Create a logical volume of 512m with disks /dev/sda and /dev/sdb - lvol: + community.general.lvol: vg: firefly lv: test size: 512 pvs: /dev/sda,/dev/sdb - name: Create cache pool logical volume - lvol: + community.general.lvol: vg: firefly lv: lvcache size: 512m opts: --type cache-pool - name: Create a logical volume of 512g. - lvol: + community.general.lvol: vg: firefly lv: test size: 512g - name: Create a logical volume the size of all remaining space in the volume group - lvol: + community.general.lvol: vg: firefly lv: test size: 100%FREE - name: Create a logical volume with special options - lvol: + community.general.lvol: vg: firefly lv: test size: 512g opts: -r 16 - name: Extend the logical volume to 1024m. - lvol: + community.general.lvol: vg: firefly lv: test size: 1024 - name: Extend the logical volume to consume all remaining space in the volume group - lvol: + community.general.lvol: vg: firefly lv: test size: +100%FREE - name: Extend the logical volume to take all remaining space of the PVs and resize the underlying filesystem - lvol: + community.general.lvol: vg: firefly lv: test size: 100%PVS resizefs: true - name: Resize the logical volume to % of VG - lvol: + community.general.lvol: vg: firefly lv: test size: 80%VG force: yes - name: Reduce the logical volume to 512m - lvol: + community.general.lvol: vg: firefly lv: test size: 512 force: yes - name: Set the logical volume to 512m and do not try to shrink if size is lower than current one - lvol: + community.general.lvol: vg: firefly lv: test size: 512 shrink: no - name: Remove the logical volume. - lvol: + community.general.lvol: vg: firefly lv: test state: absent force: yes - name: Create a snapshot volume of the test logical volume. - lvol: + community.general.lvol: vg: firefly lv: test snapshot: snap1 size: 100m - name: Deactivate a logical volume - lvol: + community.general.lvol: vg: firefly lv: test active: false - name: Create a deactivated logical volume - lvol: + community.general.lvol: vg: firefly lv: test size: 512g active: false - name: Create a thin pool of 512g - lvol: + community.general.lvol: vg: firefly thinpool: testpool size: 512g - name: Create a thin volume of 128g - lvol: + community.general.lvol: vg: firefly lv: test thinpool: testpool diff --git a/plugins/modules/system/make.py b/plugins/modules/system/make.py index 9633245841..c8d4107c6f 100644 --- a/plugins/modules/system/make.py +++ b/plugins/modules/system/make.py @@ -44,17 +44,17 @@ options: EXAMPLES = r''' - name: Build the default target - make: + community.general.make: chdir: /home/ubuntu/cool-project - name: Run 'install' target as root - make: + community.general.make: chdir: /home/ubuntu/cool-project target: install become: yes - name: Build 'all' target with extra arguments - make: + community.general.make: chdir: /home/ubuntu/cool-project target: all params: @@ -62,7 +62,7 @@ EXAMPLES = r''' BACKEND: lapack - name: Build 'all' target with a custom Makefile - make: + community.general.make: chdir: /home/ubuntu/cool-project target: all file: /some-project/Makefile diff --git a/plugins/modules/system/mksysb.py b/plugins/modules/system/mksysb.py index cf5b149897..fce9be176e 100644 --- a/plugins/modules/system/mksysb.py +++ b/plugins/modules/system/mksysb.py @@ -75,7 +75,7 @@ options: EXAMPLES = ''' - name: Running a backup image mksysb - mksysb: + community.general.mksysb: name: myserver storage_path: /repository/images exclude_files: yes diff --git a/plugins/modules/system/modprobe.py b/plugins/modules/system/modprobe.py index c0902ece5f..1165c1a48a 100644 --- a/plugins/modules/system/modprobe.py +++ b/plugins/modules/system/modprobe.py @@ -35,12 +35,12 @@ options: EXAMPLES = ''' - name: Add the 802.1q module - modprobe: + community.general.modprobe: name: 8021q state: present - name: Add the dummy module - modprobe: + community.general.modprobe: name: dummy state: present params: 'numdummies=2' diff --git a/plugins/modules/system/nosh.py b/plugins/modules/system/nosh.py index a3a9813a8c..818887c3ff 100644 --- a/plugins/modules/system/nosh.py +++ b/plugins/modules/system/nosh.py @@ -61,34 +61,34 @@ notes: EXAMPLES = ''' - name: Start dnscache if not running - nosh: name=dnscache state=started + community.general.nosh: name=dnscache state=started - name: Stop mpd, if running - nosh: name=mpd state=stopped + community.general.nosh: name=mpd state=stopped - name: Restart unbound or start it if not already running - nosh: + community.general.nosh: name: unbound state: restarted - name: Reload fail2ban or start it if not already running - nosh: + community.general.nosh: name: fail2ban state: reloaded - name: Disable nsd - nosh: name=nsd enabled=no + community.general.nosh: name=nsd enabled=no - name: For package installers, set nginx running state according to local enable settings, preset and reset - nosh: name=nginx preset=True state=reset + community.general.nosh: name=nginx preset=True state=reset - name: Reboot the host if nosh is the system manager, would need a "wait_for*" task at least, not recommended as-is - nosh: name=reboot state=started + community.general.nosh: name=reboot state=started - name: Using conditionals with the module facts tasks: - name: Obtain information on tinydns service - nosh: name=tinydns + community.general.nosh: name=tinydns register: result - name: Fail if service not loaded diff --git a/plugins/modules/system/open_iscsi.py b/plugins/modules/system/open_iscsi.py index f109f9b8c6..36bcce951d 100644 --- a/plugins/modules/system/open_iscsi.py +++ b/plugins/modules/system/open_iscsi.py @@ -73,31 +73,31 @@ options: EXAMPLES = r''' - name: Perform a discovery on sun.com and show available target nodes - open_iscsi: + community.general.open_iscsi: show_nodes: yes discover: yes portal: sun.com - name: Perform a discovery on 10.1.2.3 and show available target nodes - open_iscsi: + community.general.open_iscsi: show_nodes: yes discover: yes ip: 10.1.2.3 # NOTE: Only works if exactly one target is exported to the initiator - name: Discover targets on portal and login to the one available - open_iscsi: + community.general.open_iscsi: portal: '{{ iscsi_target }}' login: yes discover: yes - name: Connect to the named target, after updating the local persistent database (cache) - open_iscsi: + community.general.open_iscsi: login: yes target: iqn.1986-03.com.sun:02:f8c1f9e0-c3ec-ec84-c9c9-8bfb0cd5de3d - name: Disconnect from the cached named target - open_iscsi: + community.general.open_iscsi: login: no target: iqn.1986-03.com.sun:02:f8c1f9e0-c3ec-ec84-c9c9-8bfb0cd5de3d ''' diff --git a/plugins/modules/system/openwrt_init.py b/plugins/modules/system/openwrt_init.py index fe873db27d..0880e3c6b0 100644 --- a/plugins/modules/system/openwrt_init.py +++ b/plugins/modules/system/openwrt_init.py @@ -43,22 +43,22 @@ requirements: EXAMPLES = ''' - name: Start service httpd, if not running - openwrt_init: + community.general.openwrt_init: state: started name: httpd - name: Stop service cron, if running - openwrt_init: + community.general.openwrt_init: name: cron state: stopped - name: Reload service httpd, in all cases - openwrt_init: + community.general.openwrt_init: name: httpd state: reloaded - name: Enable service httpd - openwrt_init: + community.general.openwrt_init: name: httpd enabled: yes ''' diff --git a/plugins/modules/system/osx_defaults.py b/plugins/modules/system/osx_defaults.py index 3df1860fba..c8db2b8b55 100644 --- a/plugins/modules/system/osx_defaults.py +++ b/plugins/modules/system/osx_defaults.py @@ -72,47 +72,47 @@ notes: EXAMPLES = r''' # TODO: Describe what happens in each example -- osx_defaults: +- community.general.osx_defaults: domain: com.apple.Safari key: IncludeInternalDebugMenu type: bool value: true state: present -- osx_defaults: +- community.general.osx_defaults: domain: NSGlobalDomain key: AppleMeasurementUnits type: string value: Centimeters state: present -- osx_defaults: +- community.general.osx_defaults: domain: /Library/Preferences/com.apple.SoftwareUpdate key: AutomaticCheckEnabled type: int value: 1 become: yes -- osx_defaults: +- community.general.osx_defaults: domain: com.apple.screensaver host: currentHost key: showClock type: int value: 1 -- osx_defaults: +- community.general.osx_defaults: key: AppleMeasurementUnits type: string value: Centimeters -- osx_defaults: +- community.general.osx_defaults: key: AppleLanguages type: array value: - en - nl -- osx_defaults: +- community.general.osx_defaults: domain: com.geekchimp.macable key: ExampleKeyToRemove state: absent diff --git a/plugins/modules/system/pam_limits.py b/plugins/modules/system/pam_limits.py index adba5e63dc..6dd623e931 100644 --- a/plugins/modules/system/pam_limits.py +++ b/plugins/modules/system/pam_limits.py @@ -95,14 +95,14 @@ notes: EXAMPLES = ''' - name: Add or modify nofile soft limit for the user joe - pam_limits: + community.general.pam_limits: domain: joe limit_type: soft limit_item: nofile value: 64000 - name: Add or modify fsize hard limit for the user smith. Keep or set the maximal value. - pam_limits: + community.general.pam_limits: domain: smith limit_type: hard limit_item: fsize @@ -110,7 +110,7 @@ EXAMPLES = ''' use_max: yes - name: Add or modify memlock, both soft and hard, limit for the user james with a comment. - pam_limits: + community.general.pam_limits: domain: james limit_type: '-' limit_item: memlock @@ -118,7 +118,7 @@ EXAMPLES = ''' comment: unlimited memory lock for james - name: Add or modify hard nofile limits for wildcard domain - pam_limits: + community.general.pam_limits: domain: '*' limit_type: hard limit_item: nofile diff --git a/plugins/modules/system/pamd.py b/plugins/modules/system/pamd.py index 60b62374cc..b1c8dc48ee 100644 --- a/plugins/modules/system/pamd.py +++ b/plugins/modules/system/pamd.py @@ -96,7 +96,7 @@ options: EXAMPLES = r''' - name: Update pamd rule's control in /etc/pam.d/system-auth - pamd: + community.general.pamd: name: system-auth type: auth control: required @@ -104,7 +104,7 @@ EXAMPLES = r''' new_control: sufficient - name: Update pamd rule's complex control in /etc/pam.d/system-auth - pamd: + community.general.pamd: name: system-auth type: session control: '[success=1 default=ignore]' @@ -112,7 +112,7 @@ EXAMPLES = r''' new_control: '[success=2 default=ignore]' - name: Insert a new rule before an existing rule - pamd: + community.general.pamd: name: system-auth type: auth control: required @@ -124,7 +124,7 @@ EXAMPLES = r''' - name: Insert a new rule pam_wheel.so with argument 'use_uid' after an \ existing rule pam_rootok.so - pamd: + community.general.pamd: name: su type: auth control: sufficient @@ -136,7 +136,7 @@ EXAMPLES = r''' state: after - name: Remove module arguments from an existing rule - pamd: + community.general.pamd: name: system-auth type: auth control: required @@ -145,7 +145,7 @@ EXAMPLES = r''' state: updated - name: Replace all module arguments in an existing rule - pamd: + community.general.pamd: name: system-auth type: auth control: required @@ -158,7 +158,7 @@ EXAMPLES = r''' state: updated - name: Remove specific arguments from a rule - pamd: + community.general.pamd: name: system-auth type: session control: '[success=1 default=ignore]' @@ -167,7 +167,7 @@ EXAMPLES = r''' state: args_absent - name: Ensure specific arguments are present in a rule - pamd: + community.general.pamd: name: system-auth type: session control: '[success=1 default=ignore]' @@ -176,7 +176,7 @@ EXAMPLES = r''' state: args_present - name: Ensure specific arguments are present in a rule (alternative) - pamd: + community.general.pamd: name: system-auth type: session control: '[success=1 default=ignore]' @@ -187,7 +187,7 @@ EXAMPLES = r''' state: args_present - name: Module arguments requiring commas must be listed as a Yaml list - pamd: + community.general.pamd: name: special-module type: account control: required @@ -197,7 +197,7 @@ EXAMPLES = r''' state: args_present - name: Update specific argument value in a rule - pamd: + community.general.pamd: name: system-auth type: auth control: required @@ -206,7 +206,7 @@ EXAMPLES = r''' state: args_present - name: Add pam common-auth rule for duo - pamd: + community.general.pamd: name: common-auth new_type: auth new_control: '[success=1 default=ignore]' diff --git a/plugins/modules/system/parted.py b/plugins/modules/system/parted.py index a962ee1963..6e35e5880e 100644 --- a/plugins/modules/system/parted.py +++ b/plugins/modules/system/parted.py @@ -160,27 +160,27 @@ partition_info: EXAMPLES = r''' - name: Create a new ext4 primary partition - parted: + community.general.parted: device: /dev/sdb number: 1 state: present fs_type: ext4 - name: Remove partition number 1 - parted: + community.general.parted: device: /dev/sdb number: 1 state: absent - name: Create a new primary partition with a size of 1GiB - parted: + community.general.parted: device: /dev/sdb number: 1 state: present part_end: 1GiB - name: Create a new primary partition for LVM - parted: + community.general.parted: device: /dev/sdb number: 2 flags: [ lvm ] @@ -188,7 +188,7 @@ EXAMPLES = r''' part_start: 1GiB - name: Create a new primary partition with a size of 1GiB at disk's end - parted: + community.general.parted: device: /dev/sdb number: 3 state: present @@ -197,11 +197,11 @@ EXAMPLES = r''' # Example on how to read info and reuse it in subsequent task - name: Read device information (always use unit when probing) - parted: device=/dev/sdb unit=MiB + community.general.parted: device=/dev/sdb unit=MiB register: sdb_info - name: Remove all partitions from disk - parted: + community.general.parted: device: /dev/sdb number: '{{ item.num }}' state: absent diff --git a/plugins/modules/system/pids.py b/plugins/modules/system/pids.py index bf0be9da47..a8b9440630 100644 --- a/plugins/modules/system/pids.py +++ b/plugins/modules/system/pids.py @@ -22,7 +22,7 @@ options: EXAMPLES = ''' # Pass the process name - name: Getting process IDs of the process - pids: + community.general.pids: name: python register: pids_of_python diff --git a/plugins/modules/system/puppet.py b/plugins/modules/system/puppet.py index 4735157faa..cdbc9a9d3e 100644 --- a/plugins/modules/system/puppet.py +++ b/plugins/modules/system/puppet.py @@ -95,36 +95,36 @@ author: EXAMPLES = r''' - name: Run puppet agent and fail if anything goes wrong - puppet: + community.general.puppet: - name: Run puppet and timeout in 5 minutes - puppet: + community.general.puppet: timeout: 5m - name: Run puppet using a different environment - puppet: + community.general.puppet: environment: testing - name: Run puppet using a specific certname - puppet: + community.general.puppet: certname: agent01.example.com - name: Run puppet using a specific piece of Puppet code. Has no effect with a puppetmaster - puppet: + community.general.puppet: execute: include ::mymodule - name: Run puppet using a specific tags - puppet: + community.general.puppet: tags: - update - nginx - name: Run puppet agent in noop mode - puppet: + community.general.puppet: noop: yes - name: Run a manifest with debug, log to both syslog and stdout, specify module path - puppet: + community.general.puppet: modulepath: /etc/puppet/modules:/opt/stack/puppet-modules:/usr/share/openstack-puppet/modules logdest: all manifest: /var/lib/example/puppet_step_config.pp diff --git a/plugins/modules/system/python_requirements_info.py b/plugins/modules/system/python_requirements_info.py index e9a2f7a579..7d7679f846 100644 --- a/plugins/modules/system/python_requirements_info.py +++ b/plugins/modules/system/python_requirements_info.py @@ -25,10 +25,10 @@ author: EXAMPLES = ''' - name: Show python lib/site paths - python_requirements_info: + community.general.python_requirements_info: - name: Check for modern boto3 and botocore versions - python_requirements_info: + community.general.python_requirements_info: dependencies: - boto3>1.6 - botocore<2 diff --git a/plugins/modules/system/runit.py b/plugins/modules/system/runit.py index 4acacaf0cf..e2e4f8d979 100644 --- a/plugins/modules/system/runit.py +++ b/plugins/modules/system/runit.py @@ -49,32 +49,32 @@ options: EXAMPLES = r''' - name: Start sv dnscache, if not running - runit: + community.general.runit: name: dnscache state: started - name: Stop sv dnscache, if running - runit: + community.general.runit: name: dnscache state: stopped - name: Kill sv dnscache, in all cases - runit: + community.general.runit: name: dnscache state: killed - name: Restart sv dnscache, in all cases - runit: + community.general.runit: name: dnscache state: restarted - name: Reload sv dnscache, in all cases - runit: + community.general.runit: name: dnscache state: reloaded - name: Use alternative sv directory location - runit: + community.general.runit: name: dnscache state: reloaded service_dir: /run/service diff --git a/plugins/modules/system/sefcontext.py b/plugins/modules/system/sefcontext.py index 33558f079a..6a399a0782 100644 --- a/plugins/modules/system/sefcontext.py +++ b/plugins/modules/system/sefcontext.py @@ -86,7 +86,7 @@ author: EXAMPLES = r''' - name: Allow apache to modify files in /srv/git_repos - sefcontext: + community.general.sefcontext: target: '/srv/git_repos(/.*)?' setype: httpd_git_rw_content_t state: present diff --git a/plugins/modules/system/selinux_permissive.py b/plugins/modules/system/selinux_permissive.py index c6fb8f2eed..0d1f9f5985 100644 --- a/plugins/modules/system/selinux_permissive.py +++ b/plugins/modules/system/selinux_permissive.py @@ -47,7 +47,7 @@ author: EXAMPLES = r''' - name: Change the httpd_t domain to permissive - selinux_permissive: + community.general.selinux_permissive: name: httpd_t permissive: true ''' diff --git a/plugins/modules/system/selogin.py b/plugins/modules/system/selogin.py index 99e088cc17..8aeaf04456 100644 --- a/plugins/modules/system/selogin.py +++ b/plugins/modules/system/selogin.py @@ -66,20 +66,20 @@ author: EXAMPLES = ''' - name: Modify the default user on the system to the guest_u user - selogin: + community.general.selogin: login: __default__ seuser: guest_u state: present - name: Assign gijoe user on an MLS machine a range and to the staff_u user - selogin: + community.general.selogin: login: gijoe seuser: staff_u serange: SystemLow-Secret state: present - name: Assign all users in the engineering group to the staff_u user - selogin: + community.general.selogin: login: '%engineering' seuser: staff_u state: present diff --git a/plugins/modules/system/seport.py b/plugins/modules/system/seport.py index 03c8526e5f..5628292f72 100644 --- a/plugins/modules/system/seport.py +++ b/plugins/modules/system/seport.py @@ -59,28 +59,28 @@ author: EXAMPLES = r''' - name: Allow Apache to listen on tcp port 8888 - seport: + community.general.seport: ports: 8888 proto: tcp setype: http_port_t state: present - name: Allow sshd to listen on tcp port 8991 - seport: + community.general.seport: ports: 8991 proto: tcp setype: ssh_port_t state: present - name: Allow memcached to listen on tcp ports 10000-10100 and 10112 - seport: + community.general.seport: ports: 10000-10100,10112 proto: tcp setype: memcache_port_t state: present - name: Allow memcached to listen on tcp ports 10000-10100 and 10112 - seport: + community.general.seport: ports: - 10000-10100 - 10112 @@ -118,7 +118,7 @@ def get_runtime_status(ignore_selinux_state=False): def semanage_port_get_ports(seport, setype, proto): """ Get the list of ports that have the specified type definition. - :param seport: Instance of seobject.portRecords + :param community.general.seport: Instance of seobject.portRecords :type setype: str :param setype: SELinux type. @@ -139,7 +139,7 @@ def semanage_port_get_ports(seport, setype, proto): def semanage_port_get_type(seport, port, proto): """ Get the SELinux type of the specified port. - :param seport: Instance of seobject.portRecords + :param community.general.seport: Instance of seobject.portRecords :type port: str :param port: Port or port range (example: "8080", "8080-9090") diff --git a/plugins/modules/system/solaris_zone.py b/plugins/modules/system/solaris_zone.py index 6af8bebaf3..c188fea326 100644 --- a/plugins/modules/system/solaris_zone.py +++ b/plugins/modules/system/solaris_zone.py @@ -93,7 +93,7 @@ options: EXAMPLES = ''' - name: Create and install a zone, but don't boot it - solaris_zone: + community.general.solaris_zone: name: zone1 state: present path: /zones/zone1 @@ -102,7 +102,7 @@ EXAMPLES = ''' config: 'set autoboot=true; add net; set physical=bge0; set address=10.1.1.1; end' - name: Create and install a zone and boot it - solaris_zone: + community.general.solaris_zone: name: zone1 state: running path: /zones/zone1 @@ -110,27 +110,27 @@ EXAMPLES = ''' config: 'set autoboot=true; add net; set physical=bge0; set address=10.1.1.1; end' - name: Boot an already installed zone - solaris_zone: + community.general.solaris_zone: name: zone1 state: running - name: Stop a zone - solaris_zone: + community.general.solaris_zone: name: zone1 state: stopped - name: Destroy a zone - solaris_zone: + community.general.solaris_zone: name: zone1 state: absent - name: Detach a zone - solaris_zone: + community.general.solaris_zone: name: zone1 state: detached - name: Configure a zone, ready to be attached - solaris_zone: + community.general.solaris_zone: name: zone1 state: configured path: /zones/zone1 @@ -138,7 +138,7 @@ EXAMPLES = ''' config: 'set autoboot=true; add net; set physical=bge0; set address=10.1.1.1; end' - name: Attach zone1 - solaris_zone: + community.general.solaris_zone: name: zone1 state: attached attach_options: -u diff --git a/plugins/modules/system/svc.py b/plugins/modules/system/svc.py index b3ac8b3683..5eaf965ed1 100644 --- a/plugins/modules/system/svc.py +++ b/plugins/modules/system/svc.py @@ -56,32 +56,32 @@ options: EXAMPLES = ''' - name: Start svc dnscache, if not running - svc: + community.general.svc: name: dnscache state: started - name: Stop svc dnscache, if running - svc: + community.general.svc: name: dnscache state: stopped - name: Kill svc dnscache, in all cases - svc: + community.general.svc: name: dnscache state: killed - name: Restart svc dnscache, in all cases - svc: + community.general.svc: name: dnscache state: restarted - name: Reload svc dnscache, in all cases - svc: + community.general.svc: name: dnscache state: reloaded - name: Using alternative svc directory location - svc: + community.general.svc: name: dnscache state: reloaded service_dir: /var/service diff --git a/plugins/modules/system/syspatch.py b/plugins/modules/system/syspatch.py index 5d09324f40..5dbfff4546 100644 --- a/plugins/modules/system/syspatch.py +++ b/plugins/modules/system/syspatch.py @@ -35,20 +35,20 @@ author: EXAMPLES = ''' - name: Apply all available system patches - syspatch: + community.general.syspatch: apply: true - name: Revert last patch - syspatch: + community.general.syspatch: revert: one - name: Revert all patches - syspatch: + community.general.syspatch: revert: all # NOTE: You can reboot automatically if a patch requires it: - name: Apply all patches and store result - syspatch: + community.general.syspatch: apply: true register: syspatch diff --git a/plugins/modules/system/timezone.py b/plugins/modules/system/timezone.py index 371e95efe3..054cfc4763 100644 --- a/plugins/modules/system/timezone.py +++ b/plugins/modules/system/timezone.py @@ -67,7 +67,7 @@ diff: EXAMPLES = r''' - name: Set timezone to Asia/Tokyo - timezone: + community.general.timezone: name: Asia/Tokyo ''' diff --git a/plugins/modules/system/ufw.py b/plugins/modules/system/ufw.py index cd0b3ad51c..eb3d5d69c8 100644 --- a/plugins/modules/system/ufw.py +++ b/plugins/modules/system/ufw.py @@ -157,18 +157,18 @@ options: EXAMPLES = r''' - name: Allow everything and enable UFW - ufw: + community.general.ufw: state: enabled policy: allow - name: Set logging - ufw: + community.general.ufw: logging: 'on' # Sometimes it is desirable to let the sender know when traffic is # being denied, rather than simply ignoring it. In these cases, use # reject instead of deny. In addition, log rejected connections: -- ufw: +- community.general.ufw: rule: reject port: auth log: yes @@ -178,7 +178,7 @@ EXAMPLES = r''' # address has attempted to initiate 6 or more connections in the last # 30 seconds. See http://www.debian-administration.org/articles/187 # for details. Typical usage is: -- ufw: +- community.general.ufw: rule: limit port: ssh proto: tcp @@ -186,35 +186,35 @@ EXAMPLES = r''' # Allow OpenSSH. (Note that as ufw manages its own state, simply removing # a rule=allow task can leave those ports exposed. Either use delete=yes # or a separate state=reset task) -- ufw: +- community.general.ufw: rule: allow name: OpenSSH - name: Delete OpenSSH rule - ufw: + community.general.ufw: rule: allow name: OpenSSH delete: yes - name: Deny all access to port 53 - ufw: + community.general.ufw: rule: deny port: '53' - name: Allow port range 60000-61000 - ufw: + community.general.ufw: rule: allow port: 60000:61000 proto: tcp - name: Allow all access to tcp port 80 - ufw: + community.general.ufw: rule: allow port: '80' proto: tcp - name: Allow all access from RFC1918 networks to this host - ufw: + community.general.ufw: rule: allow src: '{{ item }}' loop: @@ -223,7 +223,7 @@ EXAMPLES = r''' - 192.168.0.0/16 - name: Deny access to udp port 514 from host 1.2.3.4 and include a comment - ufw: + community.general.ufw: rule: deny proto: udp src: 1.2.3.4 @@ -231,7 +231,7 @@ EXAMPLES = r''' comment: Block syslog - name: Allow incoming access to eth0 from 1.2.3.5 port 5469 to 1.2.3.4 port 5469 - ufw: + community.general.ufw: rule: allow interface: eth0 direction: in @@ -243,7 +243,7 @@ EXAMPLES = r''' # Note that IPv6 must be enabled in /etc/default/ufw for IPv6 firewalling to work. - name: Deny all traffic from the IPv6 2001:db8::/32 to tcp port 25 on this host - ufw: + community.general.ufw: rule: deny proto: tcp src: 2001:db8::/32 @@ -251,7 +251,7 @@ EXAMPLES = r''' - name: Deny all IPv6 traffic to tcp port 20 on this host # this should be the first IPv6 rule - ufw: + community.general.ufw: rule: deny proto: tcp port: '20' @@ -265,7 +265,7 @@ EXAMPLES = r''' # so the new rule will be inserted before the second # to last IPv4 rule, and will be come the third to last # IPv4 rule.) - ufw: + community.general.ufw: rule: deny proto: tcp port: '20' @@ -275,7 +275,7 @@ EXAMPLES = r''' # Can be used to further restrict a global FORWARD policy set to allow - name: Deny forwarded/routed traffic from subnet 1.2.3.0/24 to subnet 4.5.6.0/24 - ufw: + community.general.ufw: rule: deny route: yes src: 1.2.3.0/24 diff --git a/plugins/modules/system/vdo.py b/plugins/modules/system/vdo.py index 4ce6a4b47c..6cba6efbfc 100644 --- a/plugins/modules/system/vdo.py +++ b/plugins/modules/system/vdo.py @@ -268,14 +268,14 @@ requirements: EXAMPLES = r''' - name: Create 2 TB VDO volume vdo1 on device /dev/md0 - vdo: + community.general.vdo: name: vdo1 state: present device: /dev/md0 logicalsize: 2T - name: Remove VDO volume vdo1 - vdo: + community.general.vdo: name: vdo1 state: absent ''' diff --git a/plugins/modules/system/xfconf.py b/plugins/modules/system/xfconf.py index aa9e89fc03..8f1970829a 100644 --- a/plugins/modules/system/xfconf.py +++ b/plugins/modules/system/xfconf.py @@ -46,7 +46,7 @@ options: EXAMPLES = """ - name: Change the DPI to "192" - xfconf: + community.general.xfconf: channel: "xsettings" property: "/Xft/DPI" value_type: "int" diff --git a/plugins/modules/system/xfs_quota.py b/plugins/modules/system/xfs_quota.py index a4323f0430..907f1bae8f 100644 --- a/plugins/modules/system/xfs_quota.py +++ b/plugins/modules/system/xfs_quota.py @@ -81,7 +81,7 @@ requirements: EXAMPLES = r''' - name: Set default project soft and hard limit on /opt of 1g - xfs_quota: + community.general.xfs_quota: type: project mountpoint: /opt bsoft: 1g @@ -89,13 +89,13 @@ EXAMPLES = r''' state: present - name: Remove the default limits on /opt - xfs_quota: + community.general.xfs_quota: type: project mountpoint: /opt state: absent - name: Set default soft user inode limits on /home of 1024 inodes and hard of 2048 - xfs_quota: + community.general.xfs_quota: type: user mountpoint: /home isoft: 1024 diff --git a/plugins/modules/web_infrastructure/apache2_mod_proxy.py b/plugins/modules/web_infrastructure/apache2_mod_proxy.py index fbd5484590..cff5283ecc 100644 --- a/plugins/modules/web_infrastructure/apache2_mod_proxy.py +++ b/plugins/modules/web_infrastructure/apache2_mod_proxy.py @@ -55,23 +55,23 @@ options: EXAMPLES = ''' - name: Get all current balancer pool members attributes - apache2_mod_proxy: + community.general.apache2_mod_proxy: balancer_vhost: 10.0.0.2 - name: Get a specific member attributes - apache2_mod_proxy: + community.general.apache2_mod_proxy: balancer_vhost: myws.mydomain.org balancer_suffix: /lb/ member_host: node1.myws.mydomain.org # Enable all balancer pool members: - name: Get attributes - apache2_mod_proxy: + community.general.apache2_mod_proxy: balancer_vhost: '{{ myloadbalancer_host }}' register: result - name: Enable all balancer pool members - apache2_mod_proxy: + community.general.apache2_mod_proxy: balancer_vhost: '{{ myloadbalancer_host }}' member_host: '{{ item.host }}' state: present @@ -79,7 +79,7 @@ EXAMPLES = ''' # Gracefully disable a member from a loadbalancer node: - name: Step 1 - apache2_mod_proxy: + community.general.apache2_mod_proxy: balancer_vhost: '{{ vhost_host }}' member_host: '{{ member.host }}' state: drained @@ -93,7 +93,7 @@ EXAMPLES = ''' delegate_to: myloadbalancernode - name: Step 3 - apache2_mod_proxy: + community.general.apache2_mod_proxy: balancer_vhost: '{{ vhost_host }}' member_host: '{{ member.host }}' state: absent diff --git a/plugins/modules/web_infrastructure/apache2_module.py b/plugins/modules/web_infrastructure/apache2_module.py index 29c2983061..c4cb365faf 100644 --- a/plugins/modules/web_infrastructure/apache2_module.py +++ b/plugins/modules/web_infrastructure/apache2_module.py @@ -50,29 +50,29 @@ requirements: ["a2enmod","a2dismod"] EXAMPLES = ''' - name: Enable the Apache2 module wsgi - apache2_module: + community.general.apache2_module: state: present name: wsgi - name: Disables the Apache2 module wsgi - apache2_module: + community.general.apache2_module: state: absent name: wsgi - name: Disable default modules for Debian - apache2_module: + community.general.apache2_module: state: absent name: autoindex force: True - name: Disable mpm_worker and ignore warnings about missing mpm module - apache2_module: + community.general.apache2_module: state: absent name: mpm_worker ignore_configcheck: True - name: Enable dump_io module, which is identified as dumpio_module inside apache2 - apache2_module: + community.general.apache2_module: state: present name: dump_io identifier: dumpio_module diff --git a/plugins/modules/web_infrastructure/deploy_helper.py b/plugins/modules/web_infrastructure/deploy_helper.py index 27062a1a73..8622a79949 100644 --- a/plugins/modules/web_infrastructure/deploy_helper.py +++ b/plugins/modules/web_infrastructure/deploy_helper.py @@ -145,7 +145,7 @@ EXAMPLES = ''' # Typical usage - name: Initialize the deploy root and gather facts - deploy_helper: + community.general.deploy_helper: path: /path/to/root - name: Clone the project to the new release folder git: @@ -178,83 +178,83 @@ EXAMPLES = ''' - path: web/uploads src: uploads - name: Finalize the deploy, removing the unfinished file and switching the symlink - deploy_helper: + community.general.deploy_helper: path: /path/to/root release: '{{ deploy_helper.new_release }}' state: finalize # Retrieving facts before running a deploy - name: Run 'state=query' to gather facts without changing anything - deploy_helper: + community.general.deploy_helper: path: /path/to/root state: query # Remember to set the 'release' parameter when you actually call 'state=present' later - name: Initialize the deploy root - deploy_helper: + community.general.deploy_helper: path: /path/to/root release: '{{ deploy_helper.new_release }}' state: present # all paths can be absolute or relative (to the 'path' parameter) -- deploy_helper: +- community.general.deploy_helper: path: /path/to/root releases_path: /var/www/project/releases shared_path: /var/www/shared current_path: /var/www/active # Using your own naming strategy for releases (a version tag in this case): -- deploy_helper: +- community.general.deploy_helper: path: /path/to/root release: v1.1.1 state: present -- deploy_helper: +- community.general.deploy_helper: path: /path/to/root release: '{{ deploy_helper.new_release }}' state: finalize # Using a different unfinished_filename: -- deploy_helper: +- community.general.deploy_helper: path: /path/to/root unfinished_filename: README.md release: '{{ deploy_helper.new_release }}' state: finalize # Postponing the cleanup of older builds: -- deploy_helper: +- community.general.deploy_helper: path: /path/to/root release: '{{ deploy_helper.new_release }}' state: finalize clean: False -- deploy_helper: +- community.general.deploy_helper: path: /path/to/root state: clean # Or running the cleanup ahead of the new deploy -- deploy_helper: +- community.general.deploy_helper: path: /path/to/root state: clean -- deploy_helper: +- community.general.deploy_helper: path: /path/to/root state: present # Keeping more old releases: -- deploy_helper: +- community.general.deploy_helper: path: /path/to/root release: '{{ deploy_helper.new_release }}' state: finalize keep_releases: 10 # Or, if you use 'clean=false' on finalize: -- deploy_helper: +- community.general.deploy_helper: path: /path/to/root state: clean keep_releases: 10 # Removing the entire project root folder -- deploy_helper: +- community.general.deploy_helper: path: /path/to/root state: absent # Debugging the facts returned by the module -- deploy_helper: +- community.general.deploy_helper: path: /path/to/root - debug: var: deploy_helper diff --git a/plugins/modules/web_infrastructure/django_manage.py b/plugins/modules/web_infrastructure/django_manage.py index 9d45fe185a..a657d3ee25 100644 --- a/plugins/modules/web_infrastructure/django_manage.py +++ b/plugins/modules/web_infrastructure/django_manage.py @@ -98,18 +98,18 @@ author: "Scott Anderson (@tastychutney)" EXAMPLES = """ - name: Run cleanup on the application installed in django_dir - django_manage: + community.general.django_manage: command: cleanup app_path: "{{ django_dir }}" - name: Load the initial_data fixture into the application - django_manage: + community.general.django_manage: command: loaddata app_path: "{{ django_dir }}" fixtures: "{{ initial_data }}" - name: Run syncdb on the application - django_manage: + community.general.django_manage: command: syncdb app_path: "{{ django_dir }}" settings: "{{ settings_app_name }}" @@ -117,13 +117,13 @@ EXAMPLES = """ virtualenv: "{{ virtualenv_dir }}" - name: Run the SmokeTest test case from the main app. Useful for testing deploys - django_manage: + community.general.django_manage: command: test app_path: "{{ django_dir }}" apps: main.SmokeTest - name: Create an initial superuser - django_manage: + community.general.django_manage: command: "createsuperuser --noinput --username=admin --email=admin@example.com" app_path: "{{ django_dir }}" """ diff --git a/plugins/modules/web_infrastructure/ejabberd_user.py b/plugins/modules/web_infrastructure/ejabberd_user.py index 97e262a87c..7483fcd9bb 100644 --- a/plugins/modules/web_infrastructure/ejabberd_user.py +++ b/plugins/modules/web_infrastructure/ejabberd_user.py @@ -51,13 +51,13 @@ EXAMPLES = ''' # Example playbook entries using the ejabberd_user module to manage users state. - name: Create a user if it does not exist - ejabberd_user: + community.general.ejabberd_user: username: test host: server password: password - name: Delete a user if it exists - ejabberd_user: + community.general.ejabberd_user: username: test host: server state: absent diff --git a/plugins/modules/web_infrastructure/gunicorn.py b/plugins/modules/web_infrastructure/gunicorn.py index 7d31321617..b6baf6da23 100644 --- a/plugins/modules/web_infrastructure/gunicorn.py +++ b/plugins/modules/web_infrastructure/gunicorn.py @@ -56,24 +56,24 @@ notes: EXAMPLES = ''' - name: Simple gunicorn run example - gunicorn: + community.general.gunicorn: app: 'wsgi' chdir: '/workspace/example' - name: Run gunicorn on a virtualenv - gunicorn: + community.general.gunicorn: app: 'wsgi' chdir: '/workspace/example' venv: '/workspace/example/venv' - name: Run gunicorn with a config file - gunicorn: + community.general.gunicorn: app: 'wsgi' chdir: '/workspace/example' conf: '/workspace/example/gunicorn.cfg' - name: Run gunicorn as ansible user with specified pid and config file - gunicorn: + community.general.gunicorn: app: 'wsgi' chdir: '/workspace/example' conf: '/workspace/example/gunicorn.cfg' diff --git a/plugins/modules/web_infrastructure/htpasswd.py b/plugins/modules/web_infrastructure/htpasswd.py index f8e73af32f..9997ab581b 100644 --- a/plugins/modules/web_infrastructure/htpasswd.py +++ b/plugins/modules/web_infrastructure/htpasswd.py @@ -64,7 +64,7 @@ extends_documentation_fragment: files EXAMPLES = """ - name: Add a user to a password file and ensure permissions are set - htpasswd: + community.general.htpasswd: path: /etc/nginx/passwdfile name: janedoe password: '9s36?;fyNp' @@ -73,13 +73,13 @@ EXAMPLES = """ mode: 0640 - name: Remove a user from a password file - htpasswd: + community.general.htpasswd: path: /etc/apache2/passwdfile name: foobar state: absent - name: Add a user to a password file suitable for use by libpam-pwdfile - htpasswd: + community.general.htpasswd: path: /etc/mail/passwords name: alex password: oedu2eGh diff --git a/plugins/modules/web_infrastructure/jboss.py b/plugins/modules/web_infrastructure/jboss.py index be11f64428..4c077a1ddb 100644 --- a/plugins/modules/web_infrastructure/jboss.py +++ b/plugins/modules/web_infrastructure/jboss.py @@ -51,20 +51,20 @@ author: EXAMPLES = r""" - name: Deploy a hello world application to the default deploy_path - jboss: + community.general.jboss: src: /tmp/hello-1.0-SNAPSHOT.war deployment: hello.war state: present - name: Update the hello world application to the non-default deploy_path - jboss: + community.general.jboss: src: /tmp/hello-1.1-SNAPSHOT.war deploy_path: /opt/wildfly/deployment deployment: hello.war state: present - name: Undeploy the hello world application from the default deploy_path - jboss: + community.general.jboss: deployment: hello.war state: absent """ diff --git a/plugins/modules/web_infrastructure/jenkins_job.py b/plugins/modules/web_infrastructure/jenkins_job.py index 6c42af33b6..468f672b06 100644 --- a/plugins/modules/web_infrastructure/jenkins_job.py +++ b/plugins/modules/web_infrastructure/jenkins_job.py @@ -62,7 +62,7 @@ options: EXAMPLES = ''' - name: Create a jenkins job using basic authentication - jenkins_job: + community.general.jenkins_job: config: "{{ lookup('file', 'templates/test.xml') }}" name: test password: admin @@ -70,7 +70,7 @@ EXAMPLES = ''' user: admin - name: Create a jenkins job using the token - jenkins_job: + community.general.jenkins_job: config: "{{ lookup('template', 'templates/test.xml.j2') }}" name: test token: asdfasfasfasdfasdfadfasfasdfasdfc @@ -78,7 +78,7 @@ EXAMPLES = ''' user: admin - name: Delete a jenkins job using basic authentication - jenkins_job: + community.general.jenkins_job: name: test password: admin state: absent @@ -86,7 +86,7 @@ EXAMPLES = ''' user: admin - name: Delete a jenkins job using the token - jenkins_job: + community.general.jenkins_job: name: test token: asdfasfasfasdfasdfadfasfasdfasdfc state: absent @@ -94,7 +94,7 @@ EXAMPLES = ''' user: admin - name: Disable a jenkins job using basic authentication - jenkins_job: + community.general.jenkins_job: name: test password: admin enabled: False @@ -102,7 +102,7 @@ EXAMPLES = ''' user: admin - name: Disable a jenkins job using the token - jenkins_job: + community.general.jenkins_job: name: test token: asdfasfasfasdfasdfadfasfasdfasdfc enabled: False diff --git a/plugins/modules/web_infrastructure/jenkins_job_info.py b/plugins/modules/web_infrastructure/jenkins_job_info.py index c6bd57cd4b..7a4268259b 100644 --- a/plugins/modules/web_infrastructure/jenkins_job_info.py +++ b/plugins/modules/web_infrastructure/jenkins_job_info.py @@ -53,47 +53,47 @@ author: EXAMPLES = ''' # Get all Jenkins jobs using basic auth -- jenkins_job_info: +- community.general.jenkins_job_info: user: admin password: hunter2 register: my_jenkins_job_info # Get all Jenkins jobs using the token -- jenkins_job_info: +- community.general.jenkins_job_info: user: admin token: abcdefghijklmnop register: my_jenkins_job_info # Get info about a single job using basic auth -- jenkins_job_info: +- community.general.jenkins_job_info: name: some-job-name user: admin password: hunter2 register: my_jenkins_job_info # Get info about a single job in a folder using basic auth -- jenkins_job_info: +- community.general.jenkins_job_info: name: some-folder-name/some-job-name user: admin password: hunter2 register: my_jenkins_job_info # Get info about jobs matching a shell glob using basic auth -- jenkins_job_info: +- community.general.jenkins_job_info: glob: some-job-* user: admin password: hunter2 register: my_jenkins_job_info # Get info about all failing jobs using basic auth -- jenkins_job_info: +- community.general.jenkins_job_info: color: red user: admin password: hunter2 register: my_jenkins_job_info # Get info about passing jobs matching a shell glob using basic auth -- jenkins_job_info: +- community.general.jenkins_job_info: name: some-job-* color: blue user: admin @@ -101,7 +101,7 @@ EXAMPLES = ''' register: my_jenkins_job_info - name: Get the info from custom URL with token and validate_certs=False - jenkins_job_info: + community.general.jenkins_job_info: user: admin token: 126df5c60d66c66e3b75b11104a16a8a url: https://jenkins.example.com diff --git a/plugins/modules/web_infrastructure/jenkins_plugin.py b/plugins/modules/web_infrastructure/jenkins_plugin.py index 31596e53fe..34a874bc1a 100644 --- a/plugins/modules/web_infrastructure/jenkins_plugin.py +++ b/plugins/modules/web_infrastructure/jenkins_plugin.py @@ -103,46 +103,46 @@ extends_documentation_fragment: EXAMPLES = ''' - name: Install plugin - jenkins_plugin: + community.general.jenkins_plugin: name: build-pipeline-plugin - name: Install plugin without its dependencies - jenkins_plugin: + community.general.jenkins_plugin: name: build-pipeline-plugin with_dependencies: no - name: Make sure the plugin is always up-to-date - jenkins_plugin: + community.general.jenkins_plugin: name: token-macro state: latest - name: Install specific version of the plugin - jenkins_plugin: + community.general.jenkins_plugin: name: token-macro version: "1.15" - name: Pin the plugin - jenkins_plugin: + community.general.jenkins_plugin: name: token-macro state: pinned - name: Unpin the plugin - jenkins_plugin: + community.general.jenkins_plugin: name: token-macro state: unpinned - name: Enable the plugin - jenkins_plugin: + community.general.jenkins_plugin: name: token-macro state: enabled - name: Disable the plugin - jenkins_plugin: + community.general.jenkins_plugin: name: token-macro state: disabled - name: Uninstall plugin - jenkins_plugin: + community.general.jenkins_plugin: name: build-pipeline-plugin state: absent @@ -150,7 +150,7 @@ EXAMPLES = ''' # Example of how to authenticate # - name: Install plugin - jenkins_plugin: + community.general.jenkins_plugin: name: build-pipeline-plugin url_username: admin url_password: p4ssw0rd @@ -171,7 +171,7 @@ EXAMPLES = ''' enabled: yes tasks: - name: Install plugins without a specific version - jenkins_plugin: + community.general.jenkins_plugin: name: "{{ item.key }}" register: my_jenkins_plugin_unversioned when: > @@ -179,7 +179,7 @@ EXAMPLES = ''' with_dict: "{{ my_jenkins_plugins }}" - name: Install plugins with a specific version - jenkins_plugin: + community.general.jenkins_plugin: name: "{{ item.key }}" version: "{{ item.value['version'] }}" register: my_jenkins_plugin_versioned @@ -229,7 +229,7 @@ EXAMPLES = ''' when: jenkins_restart_required - name: Plugin pinning - jenkins_plugin: + community.general.jenkins_plugin: name: "{{ item.key }}" state: "{{ 'pinned' if item.value['pinned'] else 'unpinned'}}" when: > @@ -237,7 +237,7 @@ EXAMPLES = ''' with_dict: "{{ my_jenkins_plugins }}" - name: Plugin enabling - jenkins_plugin: + community.general.jenkins_plugin: name: "{{ item.key }}" state: "{{ 'enabled' if item.value['enabled'] else 'disabled'}}" when: > diff --git a/plugins/modules/web_infrastructure/jenkins_script.py b/plugins/modules/web_infrastructure/jenkins_script.py index 2f839770fc..0439242fc9 100644 --- a/plugins/modules/web_infrastructure/jenkins_script.py +++ b/plugins/modules/web_infrastructure/jenkins_script.py @@ -59,7 +59,7 @@ notes: EXAMPLES = ''' - name: Obtaining a list of plugins - jenkins_script: + community.general.jenkins_script: script: 'println(Jenkins.instance.pluginManager.plugins)' user: admin password: admin @@ -73,13 +73,13 @@ EXAMPLES = ''' instance.save() - name: Use the variable as the script - jenkins_script: + community.general.jenkins_script: script: "{{ setmaster_mode }}" args: jenkins_mode: Node.Mode.EXCLUSIVE - name: Interacting with an untrusted HTTPS connection - jenkins_script: + community.general.jenkins_script: script: "println(Jenkins.instance.pluginManager.plugins)" user: admin password: admin diff --git a/plugins/modules/web_infrastructure/jira.py b/plugins/modules/web_infrastructure/jira.py index 1e22be0dc8..e1eb6db1b9 100644 --- a/plugins/modules/web_infrastructure/jira.py +++ b/plugins/modules/web_infrastructure/jira.py @@ -142,7 +142,7 @@ author: EXAMPLES = """ # Create a new issue and add a comment to it: - name: Create an issue - jira: + community.general.jira: uri: '{{ server }}' username: '{{ user }}' password: '{{ pass }}' @@ -158,7 +158,7 @@ EXAMPLES = """ register: issue - name: Comment on issue - jira: + community.general.jira: uri: '{{ server }}' username: '{{ user }}' password: '{{ pass }}' @@ -168,7 +168,7 @@ EXAMPLES = """ # Assign an existing issue using edit - name: Assign an issue using free-form fields - jira: + community.general.jira: uri: '{{ server }}' username: '{{ user }}' password: '{{ pass }}' @@ -178,7 +178,7 @@ EXAMPLES = """ # Create an issue with an existing assignee - name: Create an assigned issue - jira: + community.general.jira: uri: '{{ server }}' username: '{{ user }}' password: '{{ pass }}' @@ -191,7 +191,7 @@ EXAMPLES = """ # Edit an issue - name: Set the labels on an issue using free-form fields - jira: + community.general.jira: uri: '{{ server }}' username: '{{ user }}' password: '{{ pass }}' @@ -205,7 +205,7 @@ EXAMPLES = """ # Updating a field using operations: add, set & remove - name: Change the value of a Select dropdown - jira: + community.general.jira: uri: '{{ server }}' username: '{{ user }}' password: '{{ pass }}' @@ -221,7 +221,7 @@ EXAMPLES = """ # Retrieve metadata for an issue and use it to create an account - name: Get an issue - jira: + community.general.jira: uri: '{{ server }}' username: '{{ user }}' password: '{{ pass }}' @@ -233,7 +233,7 @@ EXAMPLES = """ # Search for an issue # You can limit the search for specific fields by adding optional args. Note! It must be a dict, hence, lastViewed: null - name: Search for an issue - jira: + community.general.jira: uri: '{{ server }}' username: '{{ user }}' password: '{{ pass }}' @@ -255,7 +255,7 @@ EXAMPLES = """ # You can get list of valid linktypes at /rest/api/2/issueLinkType # url of your jira installation. - name: Create link from HSP-1 to MKY-1 - jira: + community.general.jira: uri: '{{ server }}' username: '{{ user }}' password: '{{ pass }}' @@ -266,7 +266,7 @@ EXAMPLES = """ # Transition an issue by target status - name: Close the issue - jira: + community.general.jira: uri: '{{ server }}' username: '{{ user }}' password: '{{ pass }}' diff --git a/plugins/modules/web_infrastructure/nginx_status_facts.py b/plugins/modules/web_infrastructure/nginx_status_facts.py index e9ce47b5f3..4300d5c7f5 100644 --- a/plugins/modules/web_infrastructure/nginx_status_facts.py +++ b/plugins/modules/web_infrastructure/nginx_status_facts.py @@ -37,12 +37,12 @@ notes: EXAMPLES = ''' # Gather status facts from nginx on localhost - name: Get current http stats - nginx_status_facts: + community.general.nginx_status_facts: url: http://localhost/nginx_status # Gather status facts from nginx on localhost with a custom timeout of 20 seconds - name: Get current http stats - nginx_status_facts: + community.general.nginx_status_facts: url: http://localhost/nginx_status timeout: 20 ''' diff --git a/plugins/modules/web_infrastructure/nginx_status_info.py b/plugins/modules/web_infrastructure/nginx_status_info.py index 865cdb90e3..a13a57a637 100644 --- a/plugins/modules/web_infrastructure/nginx_status_info.py +++ b/plugins/modules/web_infrastructure/nginx_status_info.py @@ -35,13 +35,13 @@ notes: EXAMPLES = r''' # Gather status info from nginx on localhost - name: Get current http stats - nginx_status_info: + community.general.nginx_status_info: url: http://localhost/nginx_status register: result # Gather status info from nginx on localhost with a custom timeout of 20 seconds - name: Get current http stats - nginx_status_info: + community.general.nginx_status_info: url: http://localhost/nginx_status timeout: 20 register: result diff --git a/plugins/modules/web_infrastructure/rundeck_acl_policy.py b/plugins/modules/web_infrastructure/rundeck_acl_policy.py index 9d32c22cd1..978e3da1dc 100644 --- a/plugins/modules/web_infrastructure/rundeck_acl_policy.py +++ b/plugins/modules/web_infrastructure/rundeck_acl_policy.py @@ -73,7 +73,7 @@ extends_documentation_fragment: url EXAMPLES = ''' - name: Create or update a rundeck ACL policy in project Ansible - rundeck_acl_policy: + community.general.rundeck_acl_policy: name: "Project_01" api_version: 18 url: "https://rundeck.example.org" @@ -91,7 +91,7 @@ EXAMPLES = ''' group: "build" - name: Remove a rundeck system policy - rundeck_acl_policy: + community.general.rundeck_acl_policy: name: "Project_02" url: "https://rundeck.example.org" token: "mytoken" diff --git a/plugins/modules/web_infrastructure/rundeck_project.py b/plugins/modules/web_infrastructure/rundeck_project.py index 62d21b2d29..2097d4fc00 100644 --- a/plugins/modules/web_infrastructure/rundeck_project.py +++ b/plugins/modules/web_infrastructure/rundeck_project.py @@ -66,7 +66,7 @@ extends_documentation_fragment: url EXAMPLES = ''' - name: Create a rundeck project - rundeck_project: + community.general.rundeck_project: name: "Project_01" api_version: 18 url: "https://rundeck.example.org" @@ -74,7 +74,7 @@ EXAMPLES = ''' state: present - name: Remove a rundeck project - rundeck_project: + community.general.rundeck_project: name: "Project_02" url: "https://rundeck.example.org" token: "mytoken" diff --git a/plugins/modules/web_infrastructure/sophos_utm/utm_aaa_group.py b/plugins/modules/web_infrastructure/sophos_utm/utm_aaa_group.py index 4fcfaf3c45..7f3f0cf4ca 100644 --- a/plugins/modules/web_infrastructure/sophos_utm/utm_aaa_group.py +++ b/plugins/modules/web_infrastructure/sophos_utm/utm_aaa_group.py @@ -104,7 +104,7 @@ extends_documentation_fragment: EXAMPLES = """ - name: Create UTM aaa_group - utm_aaa_group: + community.general.utm_aaa_group: utm_host: sophos.host.name utm_token: abcdefghijklmno1234 name: TestAAAGroupEntry @@ -116,7 +116,7 @@ EXAMPLES = """ state: present - name: Remove UTM aaa_group - utm_aaa_group: + community.general.utm_aaa_group: utm_host: sophos.host.name utm_token: abcdefghijklmno1234 name: TestAAAGroupEntry diff --git a/plugins/modules/web_infrastructure/sophos_utm/utm_aaa_group_info.py b/plugins/modules/web_infrastructure/sophos_utm/utm_aaa_group_info.py index 809941211a..9ee68c4895 100644 --- a/plugins/modules/web_infrastructure/sophos_utm/utm_aaa_group_info.py +++ b/plugins/modules/web_infrastructure/sophos_utm/utm_aaa_group_info.py @@ -34,7 +34,7 @@ extends_documentation_fragment: EXAMPLES = """ - name: Remove UTM aaa_group - utm_aaa_group_info: + community.general.utm_aaa_group_info: utm_host: sophos.host.name utm_token: abcdefghijklmno1234 name: TestAAAGroupEntry 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 2e06b0aed7..e1dd27237b 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 @@ -57,7 +57,7 @@ extends_documentation_fragment: EXAMPLES = """ - name: Create a ca_host_key_cert entry - utm_ca_host_key_cert: + community.general.utm_ca_host_key_cert: utm_host: sophos.host.name utm_token: abcdefghijklmno1234 name: TestHostKeyCertEntry @@ -72,14 +72,14 @@ EXAMPLES = """ state: present - name: Remove a ca_host_key_cert entry - utm_ca_host_key_cert: + community.general.utm_ca_host_key_cert: utm_host: sophos.host.name utm_token: abcdefghijklmno1234 name: TestHostKeyCertEntry state: absent - name: Read a ca_host_key_cert entry - utm_ca_host_key_cert: + community.general.utm_ca_host_key_cert: utm_host: sophos.host.name utm_token: abcdefghijklmno1234 name: TestHostKeyCertEntry diff --git a/plugins/modules/web_infrastructure/sophos_utm/utm_ca_host_key_cert_info.py b/plugins/modules/web_infrastructure/sophos_utm/utm_ca_host_key_cert_info.py index d493189088..cee7e084f1 100644 --- a/plugins/modules/web_infrastructure/sophos_utm/utm_ca_host_key_cert_info.py +++ b/plugins/modules/web_infrastructure/sophos_utm/utm_ca_host_key_cert_info.py @@ -33,7 +33,7 @@ extends_documentation_fragment: EXAMPLES = """ - name: Get info for a ca host_key_cert entry - utm_ca_host_key_cert_info: + community.general.utm_ca_host_key_cert_info: utm_host: sophos.host.name utm_token: abcdefghijklmno1234 name: TestHostKeyCertEntry 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 ddadafd378..7f75230281 100644 --- a/plugins/modules/web_infrastructure/sophos_utm/utm_dns_host.py +++ b/plugins/modules/web_infrastructure/sophos_utm/utm_dns_host.py @@ -64,7 +64,7 @@ extends_documentation_fragment: EXAMPLES = """ - name: Create UTM dns host entry - utm_dns_host: + community.general.utm_dns_host: utm_host: sophos.host.name utm_token: abcdefghijklmno1234 name: TestDNSEntry @@ -72,7 +72,7 @@ EXAMPLES = """ state: present - name: Remove UTM dns host entry - utm_dns_host: + community.general.utm_dns_host: utm_host: sophos.host.name utm_token: abcdefghijklmno1234 name: TestDNSEntry 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 d51566a904..d222c214f6 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 @@ -165,7 +165,7 @@ extends_documentation_fragment: EXAMPLES = """ - name: Create UTM proxy_auth_profile - utm_proxy_auth_profile: + community.general.utm_proxy_auth_profile: utm_host: sophos.host.name utm_token: abcdefghijklmno1234 name: TestAuthProfileEntry @@ -176,14 +176,14 @@ EXAMPLES = """ state: present - name: Remove UTM proxy_auth_profile - utm_proxy_auth_profile: + community.general.utm_proxy_auth_profile: utm_host: sophos.host.name utm_token: abcdefghijklmno1234 name: TestAuthProfileEntry state: absent - name: Read UTM proxy_auth_profile - utm_proxy_auth_profile: + community.general.utm_proxy_auth_profile: utm_host: sophos.host.name utm_token: abcdefghijklmno1234 name: TestAuthProfileEntry 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 1ac36aeeff..0ea25ddf6a 100644 --- a/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_exception.py +++ b/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_exception.py @@ -122,7 +122,7 @@ extends_documentation_fragment: EXAMPLES = """ - name: Create UTM proxy_exception - utm_proxy_exception: + community.general.utm_proxy_exception: utm_host: sophos.host.name utm_token: abcdefghijklmno1234 name: TestExceptionEntry @@ -130,7 +130,7 @@ EXAMPLES = """ state: present - name: Remove UTM proxy_exception - utm_proxy_exception: + community.general.utm_proxy_exception: utm_host: sophos.host.name utm_token: abcdefghijklmno1234 name: TestExceptionEntry 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 76a14caf11..81153f6e9d 100644 --- a/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_frontend.py +++ b/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_frontend.py @@ -125,7 +125,7 @@ extends_documentation_fragment: EXAMPLES = """ - name: Create utm proxy_frontend - utm_proxy_frontend: + community.general.utm_proxy_frontend: utm_host: sophos.host.name utm_token: abcdefghijklmno1234 name: TestFrontendEntry @@ -133,7 +133,7 @@ EXAMPLES = """ state: present - name: Remove utm proxy_frontend - utm_proxy_frontend: + community.general.utm_proxy_frontend: utm_host: sophos.host.name utm_token: abcdefghijklmno1234 name: TestFrontendEntry diff --git a/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_frontend_info.py b/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_frontend_info.py index 05c661e03c..0e85b7aca8 100644 --- a/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_frontend_info.py +++ b/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_frontend_info.py @@ -34,7 +34,7 @@ extends_documentation_fragment: EXAMPLES = """ - name: Get utm proxy_frontend - utm_proxy_frontend_info: + community.general.utm_proxy_frontend_info: utm_host: sophos.host.name utm_token: abcdefghijklmno1234 name: TestBackendEntry diff --git a/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_location_info.py b/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_location_info.py index 1fa69c2927..066eb562a1 100644 --- a/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_location_info.py +++ b/plugins/modules/web_infrastructure/sophos_utm/utm_proxy_location_info.py @@ -34,7 +34,7 @@ extends_documentation_fragment: EXAMPLES = """ - name: Remove UTM proxy_location - utm_proxy_location_info: + community.general.utm_proxy_location_info: utm_host: sophos.host.name utm_token: abcdefghijklmno1234 name: TestLocationEntry diff --git a/plugins/modules/web_infrastructure/supervisorctl.py b/plugins/modules/web_infrastructure/supervisorctl.py index d96d8a8a1c..4aed046c96 100644 --- a/plugins/modules/web_infrastructure/supervisorctl.py +++ b/plugins/modules/web_infrastructure/supervisorctl.py @@ -56,23 +56,23 @@ author: EXAMPLES = ''' - name: Manage the state of program to be in started state - supervisorctl: + community.general.supervisorctl: name: my_app state: started - name: Manage the state of program group to be in started state - supervisorctl: + community.general.supervisorctl: name: 'my_apps:' state: started - name: Restart my_app, reading supervisorctl configuration from a specified file - supervisorctl: + community.general.supervisorctl: name: my_app state: restarted config: /var/opt/my_project/supervisord.conf - name: Restart my_app, connecting to supervisord with credentials and server URL - supervisorctl: + community.general.supervisorctl: name: my_app state: restarted username: test @@ -80,7 +80,7 @@ EXAMPLES = ''' server_url: http://localhost:9001 - name: Send a signal to my_app via supervisorctl - supervisorctl: + community.general.supervisorctl: name: my_app state: signalled signal: USR1 diff --git a/plugins/modules/web_infrastructure/taiga_issue.py b/plugins/modules/web_infrastructure/taiga_issue.py index f149552494..cf0f6d1ce9 100644 --- a/plugins/modules/web_infrastructure/taiga_issue.py +++ b/plugins/modules/web_infrastructure/taiga_issue.py @@ -73,7 +73,7 @@ notes: EXAMPLES = ''' - name: Create an issue in the my hosted Taiga environment and attach an error log - taiga_issue: + community.general.taiga_issue: taiga_host: https://mytaigahost.example.com project: myproject subject: An error has been found @@ -90,7 +90,7 @@ EXAMPLES = ''' state: present - name: Deletes the previously created issue - taiga_issue: + community.general.taiga_issue: taiga_host: https://mytaigahost.example.com project: myproject subject: An error has been found