Debian Codegraph @

ansible_collections/dellemc/powerflex/playbooks/modules/protection_domain_v2.yml

raw symbols SCIP
1 ---
2 - name: Protection domain V2 Operations
3 hosts: localhost
4 connection: local
5 gather_facts: false
6 vars:
7 hostname: "x.x.x.x"
8 username: "admin"
9 password: "Password"
10 validate_certs: false
11 host_port: 443
12
13 tasks:
14 - name: Create Protection Domain
15 register: result
16 dellemc.powerflex.protection_domain_v2:
17 hostname: "{{ hostname }}"
18 username: "{{ username }}"
19 password: "{{ password }}"
20 validate_certs: "{{ validate_certs }}"
21 port: "{{ host_port }}"
22 protection_domain_name: "domain_1"
23 is_active: true
24 state: "present"
25
26 - name: Get Protection Domain
27 dellemc.powerflex.protection_domain_v2:
28 hostname: "{{ hostname }}"
29 username: "{{ username }}"
30 password: "{{ password }}"
31 validate_certs: "{{ validate_certs }}"
32 port: "{{ host_port }}"
33 protection_domain_name: "domain_1"
34 state: "present"
35
36 - name: Get Protection Domain using ID
37 dellemc.powerflex.protection_domain_v2:
38 hostname: "{{ hostname }}"
39 username: "{{ username }}"
40 password: "{{ password }}"
41 validate_certs: "{{ validate_certs }}"
42 port: "{{ host_port }}"
43 protection_domain_id: "{{ pd_id }}"
44 state: "present"
45
46 - name: Modify Protection Domain using ID
47 register: result
48 dellemc.powerflex.protection_domain_v2:
49 hostname: "{{ hostname }}"
50 username: "{{ username }}"
51 password: "{{ password }}"
52 validate_certs: "{{ validate_certs }}"
53 port: "{{ host_port }}"
54 is_active: false
55 protection_domain_id: "{{ pd_id }}"
56 protection_domain_new_name: "domain_1_renamed"
57 state: "present"
58
59 - name: Delete Protection Domain using ID
60 register: result
61 dellemc.powerflex.protection_domain_v2:
62 hostname: "{{ hostname }}"
63 username: "{{ username }}"
64 password: "{{ password }}"
65 validate_certs: "{{ validate_certs }}"
66 port: "{{ host_port }}"
67 protection_domain_id: "{{ pd_id }}"
68 state: "absent"