cwilloughby_bw.racktables.racktables_object (1.0.9) — module

Manages objects in Racktables

| "added in version" 2.4 of cwilloughby_bw.racktables"

Authors: Chandler Willoughby (@cwilloughby-bw)

preview | supported by community

Install collection

Install with ansible-galaxy collection install cwilloughby_bw.racktables:==1.0.9


Add to requirements.yml

  collections:
    - name: cwilloughby_bw.racktables
      version: 1.0.9

Description

Create, update, and delete objects in Racktables

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Make a new object in Racktables
- name: Create a new Racktables object
  racktables_object:
    name: "test.lab1"
    label: "testingonly"
    type: "Server"
    assetnumber: "123abc"
    comment: "This is a test server"

Inputs

    
name:
    description:
    - The name of the object
    required: true

type:
    default: VM
    description:
    - Object type
    required: false

label:
    description:
    - Optional text label for the object
    required: false

state:
    default: present
    description:
    - Specify whether the object should be present or absent
    required: false

comment:
    description:
    - Optional comment for the object
    required: false

rt_host:
    description:
    - Hostname of the database server backing Racktables
    required: true

rt_port:
    description:
    - Port for the database connection, defaults to 3306
    required: false

assetnumber:
    description:
    - Optional asset tag for the object
    required: false

rt_database:
    description:
    - Name of the database which backs Racktables
    required: true

rt_password:
    description:
    - Password for the administrative user
    required: true

rt_username:
    description:
    - Username that has administrative access to the racktables database
    required: true

Outputs

message:
  description: The output message that the test module generates
  returned: always
  type: str
original_message:
  description: The original name param that was passed in
  returned: always
  type: str