t_systems_mms.mongodb_atlas.atlas_whitelist (0.3.3) — module

Manage IP whitelists in Atlas

Authors: Martin Schurz (@schurzi)

preview | supported by community

Install collection

Install with ansible-galaxy collection install t_systems_mms.mongodb_atlas:==0.3.3


Add to requirements.yml

  collections:
    - name: t_systems_mms.mongodb_atlas
      version: 0.3.3

Description

The whitelist module manages a Atlas project's IP whitelist.

L(API Documentation,https://docs.atlas.mongodb.com/reference/api/whitelist/)

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
    - name: test whitelist
      atlas_whitelist:
        apiUsername: "API_user"
        apiPassword: "API_passwort_or_token"
        groupId: "GROUP_ID"
        cidrBlock: "192.168.0.0/24"
        comment: "test"

Inputs

    
state:
    choices:
    - present
    - absent
    default: present
    description:
    - State of the ressource.
    type: str

comment:
    default: created by Ansible
    description:
    - Optional Comment associated with the whitelist entry.
    type: str

groupId:
    description:
    - Unique identifier for the Atlas project.
    required: true
    type: str

cidrBlock:
    description:
    - Whitelist entry in Classless Inter-Domain Routing (CIDR) notation.
    required: true
    type: str

apiPassword:
    description:
    - The password for use in authentication with the Atlas API.
    - Can use API users and tokens (private key is password)
    required: true
    type: str

apiUsername:
    description:
    - The username for use in authentication with the Atlas API.
    - Can use API users and tokens (public key is username)
    required: true
    type: str