senhasegura.pam.senhasegura_credential_info (1.0.0) — module

Module for get information about credentials in senhasegura PAM

Authors: Lucas Fraga (@lfraga)

Install collection

Install with ansible-galaxy collection install senhasegura.pam:==1.0.0


Add to requirements.yml

  collections:
    - name: senhasegura.pam
      version: 1.0.0

Description

Authenticates in senhasegura PAM to get credentials

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get informations about credential with identifier 'example_credential'
  senhasegura.pam.senhasegura_credential_info:
    identifier: example_credential
  register: senhasegura_example_credential
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get informations about credential with id_credential '9172'
  senhasegura.pam.senhasegura_credential_info:
    id_credential: 9172
  register: senhasegura_9172_credential

Inputs

    
client_id:
    description:
    - A2A OAuth2 client_id, SENHASEGURA_CLIENT_ID environment variable may also be used
    type: str

identifier:
    description:
    - The credential identifier to get information
    type: str

system_url:
    description:
    - senhasegura's environment URL used for authentication, SENHASEGURA_URL environment
      variable may also be used
    type: str

client_secret:
    description:
    - A2A OAuth2 client_secret, SENHASEGURA_CLIENT_SECRET environment variable may also
      be used
    type: str

id_credential:
    description:
    - The credential ID to get information
    type: str

validate_certs:
    description:
    - Whether to validate or not the HTTPS certificate
    type: bool

Outputs

changed:
  description: Whether there was a change done.
  returned: always
  type: bool
senhasegura:
  description: Dictionary containing result properties.
  returned: always
  sample:
    credential:
      description: credentials properties, based on senhasegura informations
      returned: success
      type: complex
  type: dict
status_code:
  description: Result HTTP Status code
  returned: always
  sample: 200
  type: int