nerdexam
Juniper

JN0-422 · Question #46

What are two format distinctions to know when using YAML? (Choose two)

The correct answer is D. The target device was not defined in /etc/ansible/hosts on the control machine. Explanation/Reference: Because YAML is white-space sensitive and indentation is significant (not allowed), you should always use spaces rather than tabs when creating playbooks. In YAML, items preceded by a hyphen (- ) are considered list items, and the key:value notation…

Ansible Automation

Question

What are two format distinctions to know when using YAML? (Choose two)

Options

  • AThe target device was not defined in /etc/ansible/inventory/hosts on the control machine
  • BThe target device was not defined on the associated DNS servers
  • CThe target device was not defined in /etc/hosts on the control machine
  • DThe target device was not defined in /etc/ansible/hosts on the control machine

How the community answered

(26 responses)
  • A
    8% (2)
  • B
    4% (1)
  • C
    19% (5)
  • D
    69% (18)

Explanation

Explanation/Reference: Because YAML is white-space sensitive and indentation is significant (not allowed), you should always use spaces rather than tabs when creating playbooks. In YAML, items preceded by a hyphen (- ) are considered list items, and the key:value notation represents a hash. Which statement is correct in this scenario? Explanation/Reference:

Topics

#Ansible inventory#hosts file#device targeting#inventory configuration

Community Discussion

No community discussion yet for this question.

Full JN0-422 Practice