` for details.
To use it in a playbook, specify: :code:`codeaffen.phpipam.section`.
.. version_added
.. rst-class:: ansible-version-added
New in codeaffen.phpipam 0.0.1
.. contents::
:local:
:depth: 1
.. Deprecated
Synopsis
--------
.. Description
- create, update and delete sections
.. Aliases
.. Requirements
.. _ansible_collections.codeaffen.phpipam.section_module_requirements:
Requirements
------------
The below requirements are needed on the host that executes this module.
- inflection
- ipaddress
- phpypam\>=1.0.0
.. Options
Parameters
----------
.. tabularcolumns:: \X{1}{3}\X{2}{3}
.. list-table::
:width: 100%
:widths: auto
:header-rows: 1
:class: longtable ansible-option-table
* - Parameter
- Comments
* - .. raw:: html
.. _ansible_collections.codeaffen.phpipam.section_module__parameter-app_id:
.. rst-class:: ansible-option-title
**app_id**
.. raw:: html
.. ansible-option-type-line::
:ansible-option-type:`string`
.. raw:: html
- .. raw:: html
API app name
.. rst-class:: ansible-option-line
:ansible-option-default-bold:`Default:` :ansible-option-default:`"ansible"`
.. raw:: html
* - .. raw:: html
.. _ansible_collections.codeaffen.phpipam.section_module__parameter-description:
.. rst-class:: ansible-option-title
**description**
.. raw:: html
.. ansible-option-type-line::
:ansible-option-type:`string`
.. raw:: html
- .. raw:: html
Short descriptive text
.. rst-class:: ansible-option-line
:ansible-option-default-bold:`Default:` :ansible-option-default:`"None"`
.. raw:: html
* - .. raw:: html
.. _ansible_collections.codeaffen.phpipam.section_module__parameter-dns_resolver:
.. rst-class:: ansible-option-title
**dns_resolver**
.. raw:: html
.. ansible-option-type-line::
:ansible-option-type:`string`
.. raw:: html
- .. raw:: html
The NS resolver to be used for this section
.. raw:: html
* - .. raw:: html
.. _ansible_collections.codeaffen.phpipam.section_module__parameter-name:
.. rst-class:: ansible-option-title
**name**
.. raw:: html
.. ansible-option-type-line::
:ansible-option-type:`string` / :ansible-option-required:`required`
.. raw:: html
- .. raw:: html
Name of the section
.. raw:: html
* - .. raw:: html
.. _ansible_collections.codeaffen.phpipam.section_module__parameter-order_by:
.. rst-class:: ansible-option-title
**order_by**
.. raw:: html
.. ansible-option-type-line::
:ansible-option-type:`string`
.. raw:: html
- .. raw:: html
Specifies the field to use for sorting the returned subnets
.. rst-class:: ansible-option-line
:ansible-option-choices:`Choices:`
- :ansible-option-choices-entry:`"subnet"`
- :ansible-option-choices-entry:`"description"`
.. raw:: html
* - .. raw:: html
.. _ansible_collections.codeaffen.phpipam.section_module__parameter-order_direction:
.. rst-class:: ansible-option-title
**order_direction**
.. raw:: html
.. ansible-option-type-line::
:ansible-option-type:`string`
.. raw:: html
- .. raw:: html
Determines the sorting direction, either ascending or descending
'asc' sorts from A to Z or from smallest to largest number
'desc' sorts from Z to A or from largest to smallest number
.. rst-class:: ansible-option-line
:ansible-option-choices:`Choices:`
- :ansible-option-choices-entry:`"asc"`
- :ansible-option-choices-entry:`"desc"`
.. raw:: html
* - .. raw:: html
.. _ansible_collections.codeaffen.phpipam.section_module__parameter-master:
.. _ansible_collections.codeaffen.phpipam.section_module__parameter-master_section:
.. _ansible_collections.codeaffen.phpipam.section_module__parameter-parent:
.. rst-class:: ansible-option-title
**parent**
.. raw:: html
.. ansible-option-type-line::
:ansible-option-aliases:`aliases: master, master_section`
:ansible-option-type:`string`
.. raw:: html
- .. raw:: html
Name of the parent section
.. rst-class:: ansible-option-line
:ansible-option-default-bold:`Default:` :ansible-option-default:`"None"`
.. raw:: html
* - .. raw:: html
.. _ansible_collections.codeaffen.phpipam.section_module__parameter-password:
.. rst-class:: ansible-option-title
**password**
.. raw:: html
.. ansible-option-type-line::
:ansible-option-type:`string` / :ansible-option-required:`required`
.. raw:: html
- .. raw:: html
Password of the user to access phpIPAM server
.. raw:: html
* - .. raw:: html
.. _ansible_collections.codeaffen.phpipam.section_module__parameter-permissions:
.. rst-class:: ansible-option-title
**permissions**
.. raw:: html
.. ansible-option-type-line::
:ansible-option-type:`json`
.. raw:: html
- .. raw:: html
JSON object that represents the permissions for each user
.. rst-class:: ansible-option-line
:ansible-option-default-bold:`Default:` :ansible-option-default:`"None"`
.. raw:: html
* - .. raw:: html
.. _ansible_collections.codeaffen.phpipam.section_module__parameter-server_url:
.. rst-class:: ansible-option-title
**server_url**
.. raw:: html
.. ansible-option-type-line::
:ansible-option-type:`string` / :ansible-option-required:`required`
.. raw:: html
- .. raw:: html
URL of the phpIPAM server
.. raw:: html
* - .. raw:: html
.. _ansible_collections.codeaffen.phpipam.section_module__parameter-show_supernets_only:
.. rst-class:: ansible-option-title
**show_supernets_only**
.. raw:: html
.. ansible-option-type-line::
:ansible-option-type:`boolean`
.. raw:: html
- .. raw:: html
Show only supernets in subnet list view
.. rst-class:: ansible-option-line
:ansible-option-choices:`Choices:`
- :ansible-option-choices-entry-default:`false` :ansible-option-choices-default-mark:`← (default)`
- :ansible-option-choices-entry:`true`
.. raw:: html
* - .. raw:: html
.. _ansible_collections.codeaffen.phpipam.section_module__parameter-show_vlan:
.. rst-class:: ansible-option-title
**show_vlan**
.. raw:: html
.. ansible-option-type-line::
:ansible-option-type:`boolean`
.. raw:: html
- .. raw:: html
Show/hide VLANs in subnet list view
.. rst-class:: ansible-option-line
:ansible-option-choices:`Choices:`
- :ansible-option-choices-entry-default:`false` :ansible-option-choices-default-mark:`← (default)`
- :ansible-option-choices-entry:`true`
.. raw:: html
* - .. raw:: html
.. _ansible_collections.codeaffen.phpipam.section_module__parameter-show_vrf:
.. rst-class:: ansible-option-title
**show_vrf**
.. raw:: html
.. ansible-option-type-line::
:ansible-option-type:`boolean`
.. raw:: html
- .. raw:: html
Show/hide VRFs in subnet list view
.. rst-class:: ansible-option-line
:ansible-option-choices:`Choices:`
- :ansible-option-choices-entry-default:`false` :ansible-option-choices-default-mark:`← (default)`
- :ansible-option-choices-entry:`true`
.. raw:: html
* - .. raw:: html
.. _ansible_collections.codeaffen.phpipam.section_module__parameter-state:
.. rst-class:: ansible-option-title
**state**
.. raw:: html
.. ansible-option-type-line::
:ansible-option-type:`string`
.. raw:: html
- .. raw:: html
State of the entity
.. rst-class:: ansible-option-line
:ansible-option-choices:`Choices:`
- :ansible-option-choices-entry-default:`"present"` :ansible-option-choices-default-mark:`← (default)`
- :ansible-option-choices-entry:`"absent"`
.. raw:: html
* - .. raw:: html
.. _ansible_collections.codeaffen.phpipam.section_module__parameter-strict_mode:
.. rst-class:: ansible-option-title
**strict_mode**
.. raw:: html
.. ansible-option-type-line::
:ansible-option-type:`boolean`
.. raw:: html
- .. raw:: html
If set to true, consistency of subnets and IP addresses will be checked
.. rst-class:: ansible-option-line
:ansible-option-choices:`Choices:`
- :ansible-option-choices-entry-default:`false` :ansible-option-choices-default-mark:`← (default)`
- :ansible-option-choices-entry:`true`
.. raw:: html
* - .. raw:: html
.. _ansible_collections.codeaffen.phpipam.section_module__parameter-username:
.. rst-class:: ansible-option-title
**username**
.. raw:: html
.. ansible-option-type-line::
:ansible-option-type:`string` / :ansible-option-required:`required`
.. raw:: html
- .. raw:: html
Username to access phpIPAM server
.. raw:: html
* - .. raw:: html
.. _ansible_collections.codeaffen.phpipam.section_module__parameter-validate_certs:
.. rst-class:: ansible-option-title
**validate_certs**
.. raw:: html
.. ansible-option-type-line::
:ansible-option-type:`boolean`
.. raw:: html
- .. raw:: html
Is the TLS certificate of the phpIPAM server verified or not.
.. rst-class:: ansible-option-line
:ansible-option-choices:`Choices:`
- :ansible-option-choices-entry:`false`
- :ansible-option-choices-entry-default:`true` :ansible-option-choices-default-mark:`← (default)`
.. raw:: html
.. Attributes
.. Notes
.. Seealso
.. Examples
Examples
--------
.. code-block:: yaml+jinja
- name: "Create a section"
codeaffen.phpipam.section:
username: "admin"
password: "s3cr3t"
server_url: "https://ipam.example.com"
name: "EXAMPLE INC"
description: "Section for company EXAMPLE INC"
state: present
- name: "Create a section with parent"
codeaffen.phpipam.section:
username: "admin"
password: "s3cr3t"
server_url: "https://ipam.example.com"
name: "DEVOPS department"
parent: "EXAMPLE INC"
description: "Section for devops department in EXAMPLE INC"
state: present
.. Facts
.. Return values
.. Status (Presently only deprecated)
.. Authors
Authors
~~~~~~~
- Christian Meißner (@cmeissner)
.. Extra links
Collection links
~~~~~~~~~~~~~~~~
.. ansible-links::
- title: "Issue Tracker"
url: "https://github.com/codeaffen/phpipam-ansible-modules/issues"
external: true
- title: "Homepage"
url: "https://codeaffen.org/projects/phpipam-ansible-modules"
external: true
- title: "Repository (Sources)"
url: "https://github.com/codeaffen/phpipam-ansible-modules"
external: true
.. Parsing errors