nerdexam
Network_Appliance

NS0-404 · Question #63

101.You are creating an Ansible playbook to deploy a NetApp ONTAP cluster. You want to take advantage of a loop to automate the creation of several volumes. What would accomplish this task?

The correct answer is A. - name: Volume Create na_ontap_volume: state: present name: "{{ item }}" vserver: "my_svm" aggregate_name: "aggr0" size: 10 size_unit: gb policy: default junction_path: "/{{ item }}" loop: - vol1 - vol2 - vol3. You've hit your limit · resets 5am (America/New_York)

Cloud Resources Implementation

Question

101.You are creating an Ansible playbook to deploy a NetApp ONTAP cluster. You want to take advantage of a loop to automate the creation of several volumes. What would accomplish this task?

Options

  • A
    • name: Volume Create na_ontap_volume: state: present name: "{{ item }}" vserver: "my_svm" aggregate_name: "aggr0" size: 10 size_unit: gb policy: default junction_path: "/{{ item }}" loop:
    • vol1
    • vol2
    • vol3
  • B
    • name: Volume Create na_ontap_aggregate: state: present name: "{{ item }}" vserver: "my_svm" aggregate_name: "aggr0" size: 10 size_unit: gb policy: default junction_path: "/{{ item }}" loop:
    • vol1
    • vol2
    • vol3
  • C
    • name: Volume Create na_ontap_volume: state: present name: "{{ vol1,vol2,vol3 }}" vserver: "my_svm" aggregate_name: "aggr0" size: 10 size_unit: gb policy: default junction_path: "/{{ vol1,vol2,vol3 }}"
  • D
    • name: Volume Create na_ontap_volume: state: present name: "{{ item }}" vserver: "my_svm" aggregate_name: "aggr0" size: 10 size_unit: gb policy: default junction_path: "/{{ item }}" loop:
    • vol1
    • vol2
    • vol3

How the community answered

(32 responses)
  • A
    78% (25)
  • B
    6% (2)
  • C
    13% (4)
  • D
    3% (1)

Explanation

You've hit your limit · resets 5am (America/New_York)

Topics

#Ansible#na_ontap_volume#loop automation#playbook syntax

Community Discussion

No community discussion yet for this question.

Full NS0-404 Practice