From ae829ef9637eff67e8cf795ea04ff6dc72ab6dc9 Mon Sep 17 00:00:00 2001 From: abregman Date: Sun, 20 Oct 2019 09:29:53 +0300 Subject: [PATCH] Add a couple of Ansible questions --- README.md | 51 +++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 47 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 61d9d19..4b17ec9 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ :information_source:  This repository contains interview questions on various DevOps related topics -:bar_chart:  There are currently **250** questions +:bar_chart:  There are currently **257** questions :warning:  You don't need to know how to answer all the questions in this repo. DevOps is not about knowing all :) @@ -26,7 +26,7 @@ AWS
AWS

Beginner :baby:
Network
Network

Beginner :baby:
Advanced :star: Linux
Linux

Beginner :baby:
Advanced :star: - Ansible
Ansible

Beginner :baby:
+ Ansible
Ansible

Beginner :baby:
Advanced :star: Terraform
Terraform

Beginner :baby:
Docker
Docker

Beginner :baby:
@@ -965,7 +965,7 @@ Role – Ansible roles allows you to group resources based on certain functional
-What are some of Ansible best practices?
+Which Ansible best practices are you familiar with? name at least three
@@ -1102,9 +1102,52 @@ In the context of our question, the order will be extra vars (always override an A full list can be found at the link above. Also, note there is a significant difference between Ansible 1.x and 2.x.
+
+For each of the following statements determine if it's true or false: + + * A module is a collection of tasks + * It’s better to use shell or command instead of a specific module + * Host facts override play variables + * A role might include the following: vars, meta, and handlers + * Dynamic inventory is generated by extracting information from external sources + * It’s a best practice to use indention of 2 spaces instead of 4 + * ‘notify’ used to trigger handlers + * This “hosts: all:!controllers” means ‘run only on controllers group hosts
+
+ +
+What is ansible-pull? How it’s different compared to ansible-playbook?
+
+ + + +#### :star: Advanced + +
+What are filters? Do you have experience with writing filters?
+
+ +
+Write a filter to capitalize a string
+ + +def cap(self, string): + return string.capitalize() + +
+ +
+How do you test your Ansible based projects?
+
+ +
+What are callback plugins? What can you achieve by using callback plugins?
+
+ + ## Terraform - + #### :baby: Beginner