20 Questions

Redhat ansible Quiz

1 :-

Where does ansible-galaxy install place roles by default?

 

2 :-

What attribute allows you to cause a play to stop based on a certain failure threshold?

3 :-

Consider the following play excerpt: - name: deploy app config template: src: app.xml.j2 dest: /etc/app.xml notify: - restart memcached - restart apache - name: deploy httpd config template: src: httpd.conf.j2 dest: /etc/httpd/conf/httpd.conf notify: - restart apache - name: deploy httpd config template: src: site.conf.j2 dest: /etc/httpd/conf/site.confnotify: - restart apache Presuming all of the listed tasks in the play change the files they act on and the handler is correctly defined in another file, how many times is the "restart apache" handler ran?

4 :-

What special character is used to designate that you are passing a variable file to a play using the -e flag?

5 :-

What type of credential is used for accessing system accounts on your remote Linux hosts via SSH in Ansible Tower?

 

6 :-

How is Ansible Tower installed on your system?

7 :-

Which module returns Ansible facts?

8 :-

Presuming the inventory is not dynamic, Ansible inventories can be specified using what two file formats?

 

9 :-

Consider the following playbook. - hosts: webservers become: yes - name: install httpd yum: name: httpd state: latest Which line includes a syntax error?

10 :-

What switch needs to be added to prevent the following command from failing: ansible all -m user -a "name=jsmith state=present"

11 :-

Which subcommand of ansible-galaxy makes a role available for use from galaxy?

12 :-

By default, how many times can a role be applied during a play?

13 :-

Which of the following are valid ways to populate an Ansible Tower project with your source files?

14 :-

Where is the first place Ansible checks for a role definition?

15 :-

How are facts collected?

16 :-

Consider the provided dictionary variable definition: drives: name: hd1 type: physical size: 1G Which of the following are valid ways to retrieve data from this dictionary?

17 :-

What does the -f flag in the ansible command allow you to specify?

 

18 :-

Which of the following are Ansible modules?

19 :-

What are the default number of forks in Ansible?

20 :-

Which is the default inventory file used by Ansible?

 

Mock Test Completion Certificate
You scored 0 out of 20 questions.

🏅

For your extraordinary service and contributions to your profession.
We are delighted in providing this certificate to you.

Tips for improving your score:

  • Make sure to read the questions and answer choices carefully.
  • Don't try to answer any choices that you don't know. It's better to skip a question.