purestorage.flashblade.purefb_certs (1.17.0) — module

Manage FlashBlade SSL Certificates

| "added in version" 1.4.0 of purestorage.flashblade"

Authors: Pure Storage Ansible Team (@sdodsley) <pure-ansible-team@purestorage.com>

preview | supported by community

Install collection

Install with ansible-galaxy collection install purestorage.flashblade:==1.17.0


Add to requirements.yml

  collections:
    - name: purestorage.flashblade
      version: 1.17.0

Description

Manage SSL certificates for FlashBlades


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create a SSL certificate
  purestorage.flashblade.purefb_certs:
    name: test_cert
    contents: "{{lookup('file', 'certificate_file_name') }}"
    fb_url: 10.10.10.2
    api_token: T-9f276a18-50ab-446e-8a0c-666a3529a1b6
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete a SSL certificate
  purestorage.flashblade.purefb_certs:
    name: test_cert
    state: absent
    fb_url: 10.10.10.2
    api_token: T-9f276a18-50ab-446e-8a0c-666a3529a1b6
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Update SSL certificate
  purestorage.flashblade.purefb_certs:
    name: global
    contents: "{{ lookup('file', 'certificate_file_name') }}"
    private_key: "{{ lookup('file', 'certificate_key_file_name') }}"
    passphrase: 'mypassword'
    fb_url: 10.10.10.2
    api_token: T-9f276a18-50ab-446e-8a0c-666a3529a1b6

Inputs

    
name:
    description:
    - Name of the certificate
    type: str

state:
    choices:
    - absent
    - present
    default: present
    description:
    - Create or delete certificate
    type: str

fb_url:
    description:
    - FlashBlade management IP address or Hostname.
    type: str

contents:
    description:
    - SSL certificate text
    type: str

api_token:
    description:
    - FlashBlade API token for admin privileged user.
    type: str

passphrase:
    description:
    - Passphrase for the private_key
    type: str

private_key:
    description:
    - SSL certificate private key test
    type: str