community / community.elastic / 1.1.2 / module / elastic_snapshot_repository Manage Elasticsearch Snapshot Repositories. | "added in version" 0.0.1 of community.elastic" Authors: Rhys Campbell (@rhysmeister)community.elastic.elastic_snapshot_repository (1.1.2) — module
Install with ansible-galaxy collection install community.elastic:==1.1.2
collections: - name: community.elastic version: 1.1.2
Manage Elasticsearch Snapshot Repositories.
Create and delete repostories.
At present no update functionality.
- name: Add a snapshot repository community.elastic.elastic_snapshot_repository: name: "my_repository" location: "/mnt/my_backup_location" state: "present"
- name: Delete a snapshot repository community.elastic.elastic_snapshot_repository: name: "my_repository" state: "absent"
name: description: - The name of the repository. required: true type: str type: default: fs description: - Repository type can include fs, source and url type: str state: choices: - present - absent default: present description: - The desired state of the user. type: str cafile: description: - Path to ca file type: str verify: default: true description: - If true, the request verifies the repository is functional on all master and data nodes in the cluster. - If false, this verification is skipped type: bool timeout: default: 30 description: - Response timeout in seconds. type: int location: description: - Location of the shared filesystem used to store and retrieve snapshots. - This location must be registered in the path.repo setting on all master and data nodes in the cluster. type: str login_port: default: 9200 description: - The Elastic server port to login to. required: false type: int login_user: description: - The Elastic user to login with. - Required when I(login_password) is specified. required: false type: str auth_method: choices: - '' - http_auth default: '' description: - Authentication Method. type: str auth_scheme: choices: - http - https default: http description: - Authentication scheme. type: str login_hosts: default: localhost description: - The Elastic hosts to connect to. elements: str required: false type: list login_password: description: - The password used to authenticate with. - Required when I(login_user) is specified. required: false type: str connection_options: default: [] description: - Additional connection options for Elasticsearch elements: dict type: list