nerdexam
Cisco

350-901 · Question #80

Drag and Drop the code from the bottom onto the box where the code is missing the snippet to complete this Ansible Playbook. Not all options are used.

hosts: ios gather_facts: no vars: dns_servers: - -ip name-server 208.67.222.222 - -ip name-server 208.67.220.220 tasks: - name: set name-server commands ios_config: lines: - "-{{ item }}" with_items: "{{ dns_servers }}" register: set_dns

Infrastructure and Automation

Question

Drag and Drop the code from the bottom onto the box where the code is missing the snippet to complete this Ansible Playbook. Not all options are used.

Exhibit

350-901 question #80 exhibit

Explanation

  • hosts: ios gather_facts: no vars: dns_servers: - -ip name-server 208.67.222.222 - -ip name-server 208.67.220.220

    tasks:

    • name: set name-server commands ios_config: lines: - "-{{ item }}" with_items: "{{ dns_servers }}" register: set_dns

Topics

#Ansible#Playbook#Automation#Configuration Management

Community Discussion

No community discussion yet for this question.

Full 350-901 Practice