` for details.
To use it in a playbook, specify: :code:`codeaffen.phpipam.tag`.
.. version_added
.. rst-class:: ansible-version-added
New in codeaffen.phpipam 1.4.0
.. contents::
:local:
:depth: 1
.. Deprecated
Synopsis
--------
.. Description
- create, update and delete tags
.. Aliases
.. Requirements
.. _ansible_collections.codeaffen.phpipam.tag_module_requirements:
Requirements
------------
The below requirements are needed on the host that executes this module.
- colour
- 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.tag_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.tag_module__parameter-bg_color:
.. rst-class:: ansible-option-title
**bg_color**
.. raw:: html
.. ansible-option-type-line::
:ansible-option-type:`string` / :ansible-option-required:`required`
.. raw:: html
- .. raw:: html
Background color of the given tag
Can be a valid color name or a hex code
.. raw:: html
* - .. raw:: html
.. _ansible_collections.codeaffen.phpipam.tag_module__parameter-compress_range:
.. rst-class:: ansible-option-title
**compress_range**
.. raw:: html
.. ansible-option-type-line::
:ansible-option-type:`boolean`
.. raw:: html
- .. raw:: html
Compress range or not
.. 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.tag_module__parameter-fg_color:
.. rst-class:: ansible-option-title
**fg_color**
.. raw:: html
.. ansible-option-type-line::
:ansible-option-type:`string` / :ansible-option-required:`required`
.. raw:: html
- .. raw:: html
Foreground color of the given tag
Can be a valid color name or a hex code
.. raw:: html
* - .. raw:: html
.. _ansible_collections.codeaffen.phpipam.tag_module__parameter-is_locked:
.. rst-class:: ansible-option-title
**is_locked**
.. raw:: html
.. ansible-option-type-line::
:ansible-option-type:`boolean`
.. raw:: html
- .. raw:: html
Lock tag or not
.. 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.tag_module__parameter-name:
.. _ansible_collections.codeaffen.phpipam.tag_module__parameter-type:
.. rst-class:: ansible-option-title
**name**
.. raw:: html
.. ansible-option-type-line::
:ansible-option-aliases:`aliases: type`
:ansible-option-type:`string` / :ansible-option-required:`required`
.. raw:: html
- .. raw:: html
Name of the given tag
.. raw:: html
* - .. raw:: html
.. _ansible_collections.codeaffen.phpipam.tag_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.tag_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.tag_module__parameter-show_tag:
.. rst-class:: ansible-option-title
**show_tag**
.. raw:: html
.. ansible-option-type-line::
:ansible-option-type:`boolean`
.. raw:: html
- .. raw:: html
Show tag or not
.. 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.tag_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.tag_module__parameter-update_tags:
.. rst-class:: ansible-option-title
**update_tags**
.. raw:: html
.. ansible-option-type-line::
:ansible-option-type:`boolean`
.. raw:: html
- .. raw:: html
Update tags or not
.. 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.tag_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.tag_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 tag"
codeaffen.phpipam.tag:
username: "admin"
password: "s3cr3t"
server_url: "https://ipam.example.com"
name: "my tag"
bg_color: #ffffff
fg_color: #000000
state: present
- name: "Remove tag"
codeaffen.phpipam.tag:
username: "admin"
password: "s3cr3t"
server_url: "https://ipam.example.com"
name: "my tag"
state: absent
.. 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