-
Notifications
You must be signed in to change notification settings - Fork 11
/
update_subclient_description.yaml
50 lines (45 loc) · 1.24 KB
/
update_subclient_description.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
- name: Commvault Ansible
gather_facts: no
hosts: localhost
connection: local
vars:
webconsole_hostname: 'hostname'
commcell_username: 'username'
commcell_password: 'password'
client: 'sample client'
tasks:
- name: Commvault commcell initialization
block:
- name: Login
commvault:
operation: LOGIN
entity: {
webconsole_hostname: "{{ webconsole_hostname }}",
commcell_username: "{{ commcell_username }}",
commcell_password: "{{ commcell_password }}"
}
register: commcell
- debug:
msg: "Login is done successfully"
rescue:
- debug:
msg: 'Login failed'
- name: changing subclient description
commvault:
operation: "description"
entity_type: subclient
commcell: "{{ commcell }}"
entity: {
client: "{{ client }}",
agent: "file system",
backupset: "defaultbackupset",
subclient: "default"
}
args: {
"value": "setting subclient description"
}
register: output
- debug:
msg: "Successful {{ output.output }}"
...