https://github.com/dell/ansible-datadomain
Ansible collection for DataDomain
https://github.com/dell/ansible-datadomain
Last synced: 7 months ago
JSON representation
Ansible collection for DataDomain
- Host: GitHub
- URL: https://github.com/dell/ansible-datadomain
- Owner: dell
- License: gpl-3.0
- Created: 2022-10-20T19:57:23.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-23T20:07:19.000Z (almost 2 years ago)
- Last Synced: 2024-09-20T00:05:57.313Z (over 1 year ago)
- Language: Python
- Size: 283 KB
- Stars: 5
- Watchers: 4
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DellEMC Data Domain Ansible Collection
Ansible collection is used to get, create, modify or delete the Data Domain resources to automate the configuration tasks easy and fast.
> **Note that the modules in this collection do not support idempotency.**
## Pre-requisites
- Python V3.8 or higher
## Installation of Ansible Collection
Use below command to install the collection.
`ansible-galaxy collection install git+https://github.com/dell/ansible-datadomain.git`
Install all packages from the requirements.txt file
`pip install -r pip install /dellemc/datadomain/requirements.txt`
## Inventory file
Build the inventory file as below
```
[dd]
10.150.15.9
[dd:vars]
ansible_port = 22
ansible_user = sysadmin
private_key_file = /root/.ssh/id_rsa
```
If you want to use user password instead of rsa certificate authentication, use `ansible_ssh_pass` parameter to specify password and remove `private_key_file` parameter. e.g
```
[dd]
10.150.15.9
[dd:vars]
ansible_port = 22
ansible_user = sysadmin
ansible_ssh_pass = 'password'
```
## Ansible Playbook
To make the rest api call or ssh call from the host you are running the playbook; use below parameter at the top of the playbook
`connection: local`
## Sample Playbook
```
- name: Data Domain Playbook.
hosts: dd
connection: local
gather_facts: false
tasks:
- name: Create Share
dellemc.datadomain.cifs:
state: create
share: backup_share
clients: '*'
path: /backup
register: status
- debug:
msg: "{{ status }}"
```
## Documentation for the collection.
Module specific document can be found here - https://github.com/dell/ansible-datadomain/blob/main/docs/document.md
#Copyright ©️ 2022 Dell Inc. or its subsidiaries.