automatics.automatics.automatics_login module – Login to an automatics server

Note

This module is part of the automatics.automatics collection (version version_filler).

To install it, use: ansible-galaxy collection install automatics.automatics.

To use it in a playbook, specify: automatics.automatics.automatics_login.

Synopsis

  • Login to an automatics server

Parameters

Parameter

Comments

hostname

string / required

Hostname of the automatics server.

password

string / required

Password to use for automatics login.

username

string / required

Username to use for automatics login.

validate_certs

boolean

Verify the https certificate of the automatics server.

Choices:

  • false

  • true ← (default)

Examples

- name: Login to automatics
  automatics.automatics.automatics_login:
    hostname: automatics.example.org
    username: ansible
    password: password

- name: Login to automatics without certificate verification.
  automatics.automatics.automatics_login:
    hostname: automatics.example.org
    username: ansible
    password: password
    validate_certs: false

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key

Description

token

string

The automatics authentication bearer token.

Returned: always

Sample: "aW4iLCJlbWFpbCI6ImFkbWluIiw..."

Authors

  • Manuel Sanz