From 4b262e39f0bc6c4bdce394b355dd72d33b352478 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Mon, 20 Feb 2023 17:30:53 +0100 Subject: [PATCH] Add attributes to more modules (4/4) (#5968) * Add attributes to more modules. * Adjust indentation. Co-authored-by: Kristian Heljas <11139388+kristianheljas@users.noreply.github.com> --------- Co-authored-by: Kristian Heljas <11139388+kristianheljas@users.noreply.github.com> --- plugins/modules/solaris_zone.py | 9 ++++++++- plugins/modules/sorcery.py | 7 +++++++ plugins/modules/spotinst_aws_elastigroup.py | 7 +++++++ plugins/modules/stackdriver.py | 7 +++++++ plugins/modules/stacki_host.py | 7 +++++++ plugins/modules/statsd.py | 7 +++++++ plugins/modules/statusio_maintenance.py | 7 +++++++ plugins/modules/supervisorctl.py | 9 ++++++++- plugins/modules/svc.py | 7 +++++++ plugins/modules/swdepot.py | 7 +++++++ plugins/modules/swupd.py | 7 +++++++ plugins/modules/terraform.py | 11 +++++++++-- plugins/modules/uptimerobot.py | 7 +++++++ plugins/modules/urpmi.py | 7 +++++++ plugins/modules/vmadm.py | 7 +++++++ 15 files changed, 109 insertions(+), 4 deletions(-) diff --git a/plugins/modules/solaris_zone.py b/plugins/modules/solaris_zone.py index 5d07dbfc60..0f970704ef 100644 --- a/plugins/modules/solaris_zone.py +++ b/plugins/modules/solaris_zone.py @@ -16,9 +16,16 @@ description: - Create, start, stop and delete Solaris zones. - This module does not currently allow changing of options for a zone that is already been created. author: -- Paul Markham (@pmarkham) + - Paul Markham (@pmarkham) requirements: - Solaris 10 or 11 +extends_documentation_fragment: + - community.general.attributes +attributes: + check_mode: + support: full + diff_mode: + support: none options: state: description: diff --git a/plugins/modules/sorcery.py b/plugins/modules/sorcery.py index bd16da1f52..3278ce0abd 100644 --- a/plugins/modules/sorcery.py +++ b/plugins/modules/sorcery.py @@ -24,6 +24,13 @@ notes: yet supported. requirements: - bash +extends_documentation_fragment: + - community.general.attributes +attributes: + check_mode: + support: full + diff_mode: + support: none options: name: description: diff --git a/plugins/modules/spotinst_aws_elastigroup.py b/plugins/modules/spotinst_aws_elastigroup.py index 481ba70cb9..02f2d3c5c2 100644 --- a/plugins/modules/spotinst_aws_elastigroup.py +++ b/plugins/modules/spotinst_aws_elastigroup.py @@ -21,6 +21,13 @@ description: requirements: - python >= 2.7 - spotinst_sdk >= 1.0.38 +extends_documentation_fragment: + - community.general.attributes +attributes: + check_mode: + support: none + diff_mode: + support: none options: credentials_path: diff --git a/plugins/modules/stackdriver.py b/plugins/modules/stackdriver.py index 6fe2a7caa9..cf7cb2f475 100644 --- a/plugins/modules/stackdriver.py +++ b/plugins/modules/stackdriver.py @@ -15,6 +15,13 @@ short_description: Send code deploy and annotation events to stackdriver description: - Send code deploy and annotation events to Stackdriver author: "Ben Whaley (@bwhaley)" +extends_documentation_fragment: + - community.general.attributes +attributes: + check_mode: + support: full + diff_mode: + support: none options: key: type: str diff --git a/plugins/modules/stacki_host.py b/plugins/modules/stacki_host.py index d5f968c909..e286bc9617 100644 --- a/plugins/modules/stacki_host.py +++ b/plugins/modules/stacki_host.py @@ -15,6 +15,13 @@ short_description: Add or remove host to stacki front-end description: - Use this module to add or remove hosts to a stacki front-end via API. - Information on stacki can be found at U(https://github.com/StackIQ/stacki). +extends_documentation_fragment: + - community.general.attributes +attributes: + check_mode: + support: none + diff_mode: + support: none options: name: description: diff --git a/plugins/modules/statsd.py b/plugins/modules/statsd.py index aed1c08397..65d33b7099 100644 --- a/plugins/modules/statsd.py +++ b/plugins/modules/statsd.py @@ -19,6 +19,13 @@ description: author: "Mark Mercado (@mamercad)" requirements: - statsd +extends_documentation_fragment: + - community.general.attributes +attributes: + check_mode: + support: none + diff_mode: + support: none options: state: type: str diff --git a/plugins/modules/statusio_maintenance.py b/plugins/modules/statusio_maintenance.py index b884a943aa..31b422453e 100644 --- a/plugins/modules/statusio_maintenance.py +++ b/plugins/modules/statusio_maintenance.py @@ -21,6 +21,13 @@ notes: capture API traffic - Use start_date and start_time with minutes to set future maintenance window author: Benjamin Copeland (@bhcopeland) +extends_documentation_fragment: + - community.general.attributes +attributes: + check_mode: + support: full + diff_mode: + support: none options: title: type: str diff --git a/plugins/modules/supervisorctl.py b/plugins/modules/supervisorctl.py index e108ebb81d..e9df16108a 100644 --- a/plugins/modules/supervisorctl.py +++ b/plugins/modules/supervisorctl.py @@ -14,7 +14,14 @@ DOCUMENTATION = ''' module: supervisorctl short_description: Manage the state of a program or group of programs running via supervisord description: - - Manage the state of a program or group of programs running via supervisord + - Manage the state of a program or group of programs running via supervisord +extends_documentation_fragment: + - community.general.attributes +attributes: + check_mode: + support: full + diff_mode: + support: none options: name: type: str diff --git a/plugins/modules/svc.py b/plugins/modules/svc.py index 4d92892ce3..bd2eaeb22e 100644 --- a/plugins/modules/svc.py +++ b/plugins/modules/svc.py @@ -16,6 +16,13 @@ author: short_description: Manage daemontools services description: - Controls daemontools services on remote hosts using the svc utility. +extends_documentation_fragment: + - community.general.attributes +attributes: + check_mode: + support: full + diff_mode: + support: none options: name: description: diff --git a/plugins/modules/swdepot.py b/plugins/modules/swdepot.py index 17d0157bb5..c4660c70d5 100644 --- a/plugins/modules/swdepot.py +++ b/plugins/modules/swdepot.py @@ -20,6 +20,13 @@ description: - Will install, upgrade and remove packages with swdepot package manager (HP-UX) notes: [] author: "Raul Melo (@melodous)" +extends_documentation_fragment: + - community.general.attributes +attributes: + check_mode: + support: full + diff_mode: + support: none options: name: description: diff --git a/plugins/modules/swupd.py b/plugins/modules/swupd.py index a47dd667ae..efd7ca7c1f 100644 --- a/plugins/modules/swupd.py +++ b/plugins/modules/swupd.py @@ -18,6 +18,13 @@ description: - Manages updates and bundles with the swupd bundle manager, which is used by the Clear Linux Project for Intel Architecture. author: Alberto Murillo (@albertomurillo) +extends_documentation_fragment: + - community.general.attributes +attributes: + check_mode: + support: full + diff_mode: + support: none options: contenturl: description: diff --git a/plugins/modules/terraform.py b/plugins/modules/terraform.py index 9d1cc2ed02..0247da68cf 100644 --- a/plugins/modules/terraform.py +++ b/plugins/modules/terraform.py @@ -13,8 +13,15 @@ DOCUMENTATION = r''' module: terraform short_description: Manages a Terraform deployment (and plans) description: - - Provides support for deploying resources with Terraform and pulling - resource information back into Ansible. + - Provides support for deploying resources with Terraform and pulling + resource information back into Ansible. +extends_documentation_fragment: + - community.general.attributes +attributes: + check_mode: + support: full + diff_mode: + support: none options: state: choices: ['planned', 'present', 'absent'] diff --git a/plugins/modules/uptimerobot.py b/plugins/modules/uptimerobot.py index 527e59ac1f..c1894e90a0 100644 --- a/plugins/modules/uptimerobot.py +++ b/plugins/modules/uptimerobot.py @@ -17,6 +17,13 @@ description: author: "Nate Kingsley (@nate-kingsley)" requirements: - Valid Uptime Robot API Key +extends_documentation_fragment: + - community.general.attributes +attributes: + check_mode: + support: none + diff_mode: + support: none options: state: type: str diff --git a/plugins/modules/urpmi.py b/plugins/modules/urpmi.py index 7b1db9c415..34e099e4d5 100644 --- a/plugins/modules/urpmi.py +++ b/plugins/modules/urpmi.py @@ -17,6 +17,13 @@ module: urpmi short_description: Urpmi manager description: - Manages packages with I(urpmi) (such as for Mageia or Mandriva) +extends_documentation_fragment: + - community.general.attributes +attributes: + check_mode: + support: none + diff_mode: + support: none options: name: description: diff --git a/plugins/modules/vmadm.py b/plugins/modules/vmadm.py index d6110726f4..56ade17e49 100644 --- a/plugins/modules/vmadm.py +++ b/plugins/modules/vmadm.py @@ -16,6 +16,13 @@ short_description: Manage SmartOS virtual machines and zones description: - Manage SmartOS virtual machines through vmadm(1M). author: Jasper Lievisse Adriaanse (@jasperla) +extends_documentation_fragment: + - community.general.attributes +attributes: + check_mode: + support: full + diff_mode: + support: none options: archive_on_delete: required: false