diff --git a/docs/source/modules/cmci_action.rst b/docs/source/modules/cmci_action.rst index 2d9d41a..043bdf7 100644 --- a/docs/source/modules/cmci_action.rst +++ b/docs/source/modules/cmci_action.rst @@ -374,16 +374,15 @@ Examples - name: install a bundle in a CICS region cmci_action: cmci_host: "example.com" - cmci_port: "12345" - context: "plex_or_applid" - type: CICSBundle - action_name: install - resource: + scheme: "http" + cmci_port: 1234 + context: "plex or applid" + scope: "regionName" + type: "CICSBundle" + action_name: DISABLE + resources: filter: - name: "PONGALT" - action_parameters: - - name: "usage" - value: "local" + name: "bundle" diff --git a/docs/source/modules/cmci_create.rst b/docs/source/modules/cmci_create.rst index 916342f..a8294b3 100644 --- a/docs/source/modules/cmci_create.rst +++ b/docs/source/modules/cmci_create.rst @@ -226,6 +226,7 @@ Examples cmci_port: 12345 context: "plex_or_applid" type: "CICSDefinitionBundle" + scope: "cics region" attributes: name: PONGALT bundledir: /u/ibmuser/bundle/pong/pongbundle_1.0.0 diff --git a/docs/source/modules/cmci_delete.rst b/docs/source/modules/cmci_delete.rst index f25a9ab..5d3e0f2 100644 --- a/docs/source/modules/cmci_delete.rst +++ b/docs/source/modules/cmci_delete.rst @@ -326,7 +326,7 @@ Examples cmci_port: 12345 context: "plex_or_applid" type: CICSBundle - resource: + resources: filter: name: "PONGALT" @@ -336,6 +336,7 @@ Examples cmci_port: 12345 context: "plex_or_applid" type: CICSDefinitionBundle + scope: "cics region" resource: filter: name: "PONGALT" diff --git a/docs/source/modules/cmci_get.rst b/docs/source/modules/cmci_get.rst index 83fd343..f965642 100644 --- a/docs/source/modules/cmci_get.rst +++ b/docs/source/modules/cmci_get.rst @@ -395,6 +395,7 @@ Examples cmci_cert: "./sec/ansible.pem" cmci_key: "./sec/ansible.key" context: "plex_or_applid" + scope: "cics region" type: cicsdefinitionbundle resources: filter: diff --git a/docs/source/modules/cmci_update.rst b/docs/source/modules/cmci_update.rst index 5851a34..5c8ee98 100644 --- a/docs/source/modules/cmci_update.rst +++ b/docs/source/modules/cmci_update.rst @@ -362,12 +362,13 @@ Examples cmci_host: "example.com" cmci_port: "12345" context: "plex_or_applid" + scope: "cics region name" type: "CICSDefinitionBundle" attributes: description: "New description" update_parameters: - name: csd - resource: + resources: filter: name: "PONGALT" get_parameters: diff --git a/plugins/modules/cmci_action.py b/plugins/modules/cmci_action.py index adbc694..93f6c05 100644 --- a/plugins/modules/cmci_action.py +++ b/plugins/modules/cmci_action.py @@ -84,16 +84,15 @@ - name: install a bundle in a CICS region cmci_action: cmci_host: "example.com" - cmci_port: "12345" - context: "plex_or_applid" - type: CICSBundle - action_name: install - resource: + scheme: "http" + cmci_port: 1234 + context: "plex or applid" + scope: "regionName" + type: "CICSBundle" + action_name: DISABLE + resources: filter: - name: "PONGALT" - action_parameters: - - name: "usage" - value: "local" + name: "bundle" """ diff --git a/plugins/modules/cmci_create.py b/plugins/modules/cmci_create.py index fc77269..ce32058 100644 --- a/plugins/modules/cmci_create.py +++ b/plugins/modules/cmci_create.py @@ -63,6 +63,7 @@ cmci_port: 12345 context: "plex_or_applid" type: "CICSDefinitionBundle" + scope: "cics region" attributes: name: PONGALT bundledir: /u/ibmuser/bundle/pong/pongbundle_1.0.0 diff --git a/plugins/modules/cmci_delete.py b/plugins/modules/cmci_delete.py index 5a58c48..547eba2 100644 --- a/plugins/modules/cmci_delete.py +++ b/plugins/modules/cmci_delete.py @@ -38,7 +38,7 @@ cmci_port: 12345 context: "plex_or_applid" type: CICSBundle - resource: + resources: filter: name: "PONGALT" @@ -48,6 +48,7 @@ cmci_port: 12345 context: "plex_or_applid" type: CICSDefinitionBundle + scope: "cics region" resource: filter: name: "PONGALT" diff --git a/plugins/modules/cmci_get.py b/plugins/modules/cmci_get.py index 4e24df6..dc5f4c8 100644 --- a/plugins/modules/cmci_get.py +++ b/plugins/modules/cmci_get.py @@ -104,6 +104,7 @@ cmci_cert: "./sec/ansible.pem" cmci_key: "./sec/ansible.key" context: "plex_or_applid" + scope: "cics region" type: cicsdefinitionbundle resources: filter: diff --git a/plugins/modules/cmci_update.py b/plugins/modules/cmci_update.py index 444fd11..a0eccc0 100644 --- a/plugins/modules/cmci_update.py +++ b/plugins/modules/cmci_update.py @@ -63,12 +63,13 @@ cmci_host: "example.com" cmci_port: "12345" context: "plex_or_applid" + scope: "cics region name" type: "CICSDefinitionBundle" attributes: description: "New description" update_parameters: - name: csd - resource: + resources: filter: name: "PONGALT" get_parameters: