mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-01 06:41:26 -07:00
PR to introduce cp_network and cp_publish as modules (#57621)
* network and install policy modules for example network and install policy modules for example * revert the changes in version revert the changes in version * documentation_fragment documentation_fragment * Checking the status code of the set request * delete some of Rikis' files * retrieve Rikis' files and call equals API method * adding blanck line between functions * implement host, address-range and group * mostly sintax fixes * try again with the old host and access rule * small changes * adding service udp and publish * publish command * little fix * choises for state parameter * support wait_for_task and API version * imports * refactor of function's name * network module * rename modules and return value from modules * PR before examples to: tests, lookup, check_mode * small fixes * fixes for code review * small fixes * state parameter in examples and many /n * white spaces * 4 tries for how choices should be, and turn true to True
This commit is contained in:
parent
8c3382ec70
commit
bab1a3ceda
6 changed files with 521 additions and 1 deletions
34
lib/ansible/plugins/doc_fragments/checkpoint_objects.py
Normal file
34
lib/ansible/plugins/doc_fragments/checkpoint_objects.py
Normal file
|
@ -0,0 +1,34 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright: (c) 2019, Or Soffer <orso@checkpoint.com>
|
||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
|
||||
|
||||
class ModuleDocFragment(object):
|
||||
|
||||
# Standard files documentation fragment
|
||||
DOCUMENTATION = r'''
|
||||
options:
|
||||
state:
|
||||
description:
|
||||
- State of the access rule (present or absent). Defaults to present.
|
||||
type: str
|
||||
required: True
|
||||
choices:
|
||||
- 'present'
|
||||
- 'absent'
|
||||
auto_publish_session:
|
||||
description:
|
||||
- Publish the current session if changes have been performed
|
||||
after task completes.
|
||||
type: bool
|
||||
wait_for_task:
|
||||
description:
|
||||
- Wait for the task to end. Such as publish task.
|
||||
type: bool
|
||||
default: True
|
||||
version:
|
||||
description:
|
||||
- Version of checkpoint. If not given one, the latest version taken.
|
||||
type: str
|
||||
'''
|
Loading…
Add table
Add a link
Reference in a new issue