community.general.vertica_role (8.5.0) — module

Adds or removes Vertica database roles and assigns roles to them

Authors: Dariusz Owczarek (@dareko)

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

Adds or removes Vertica database role and, optionally, assign other roles.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Creating a new vertica role
  community.general.vertica_role: name=role_name db=db_name state=present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Creating a new vertica role with other role assigned
  community.general.vertica_role: name=role_name assigned_role=other_role_name state=present

Inputs

    
db:
    description:
    - Name of the Vertica database.
    type: str

port:
    default: '5433'
    description:
    - Vertica cluster port to connect to.
    type: str

role:
    aliases:
    - name
    description:
    - Name of the role to add or remove.
    required: true
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Whether to create V(present), drop V(absent) or lock V(locked) a role.
    type: str

cluster:
    default: localhost
    description:
    - Name of the Vertica cluster.
    type: str

login_user:
    default: dbadmin
    description:
    - The username used to authenticate with.
    type: str

assigned_roles:
    aliases:
    - assigned_role
    description:
    - Comma separated list of roles to assign to the role.
    type: str

login_password:
    description:
    - The password used to authenticate with.
    type: str