Red Hat EX407 - Questions & Answers
Free preview · every answer includes a full explanation
Product page: https://prepkeys.com/ex407.html
Examine the following inventory excerpt file named /home/user/ansible/inventory. [dbservers] db1.
example.com Which of the following files does Ansible check for variables related to that inventory?
(Choose all that apply.)
Which flags must be accepted as input for a dynamic inventory script?
A dynamic inventory must return data in what format?
Which is the default inventory file used by Ansible?
Observe the details of the following dynamic inventory file.
$ ls -l dynamic.py -rw-rw-r--. 1 user user 1928 Mar 30 08:21 dynamic.py
Why will this inventory file cause the ansible command to fail?
Is it possible to specify multiple inventory files at once?
What keyword stores a command's output into a variable?
What does the lineinfile module do?
Consider the following playbook.
---
- hosts: local
become: yes
tasks:
- name: create users
user: name: "{{item}}" with_items:
- sam
- john
- bob
How many times is the user module invoked?
What command is used to run a playbook?