ansible.builtin.java_cert (v2.3.2.0-1) — module

Uses keytool to import/remove key from java keystore(cacerts)

| "added in version" 2.3 of ansible.builtin"

Authors: Adam Hamsik @haad

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.3.2.0.post1

Description

This is a wrapper module around keytool. Which can be used to import/remove certificates from a given java keystore.

Inputs

    
state:
    choices:
    - present
    - absent
    default: present
    description:
    - Defines action which can be either certificate import or removal.

cert_url:
    description:
    - Basic URL to fetch SSL certificate from. One of cert_url or cert_path is required
      to load certificate.

cert_path:
    description:
    - Local path to load certificate from. One of cert_url or cert_path is required to
      load certificate.

cert_port:
    default: 443
    description:
    - Port to connect to URL. This will be used to create server URL:PORT

cert_alias:
    description:
    - Imported certificate alias.

executable:
    default: keytool
    description:
    - Path to keytool binary if not used we search in PATH for it.

keystore_pass:
    description:
    - Keystore password.
    required: true

keystore_path:
    description:
    - Path to keystore.

keystore_create:
    description:
    - Create keystore if it doesn't exist

Outputs

cmd:
  description: Executed command to get action done
  returned: success
  sample: keytool -importcert -noprompt -keystore
  type: string
msg:
  description: Output from stdout of keytool command after execution of given command.
  returned: success
  sample: Module require existing keystore at keystore_path '/tmp/test/cacerts'
  type: string
rc:
  description: Keytool command execution return value
  returned: success
  sample: '0'
  type: int