t_systems_mms / t_systems_mms.mongodb_atlas / 0.3.3 / module / atlas_whitelist Manage IP whitelists in Atlas Authors: Martin Schurz (@schurzi) preview | supported by communityt_systems_mms.mongodb_atlas.atlas_whitelist (0.3.3) — module
Install with ansible-galaxy collection install t_systems_mms.mongodb_atlas:==0.3.3
collections: - name: t_systems_mms.mongodb_atlas version: 0.3.3
The whitelist module manages a Atlas project's IP whitelist.
L(API Documentation,https://docs.atlas.mongodb.com/reference/api/whitelist/)
- name: test whitelist atlas_whitelist: apiUsername: "API_user" apiPassword: "API_passwort_or_token" groupId: "GROUP_ID" cidrBlock: "192.168.0.0/24" comment: "test"
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