Devops tectnical interview understanding script
Hi dont know what you have been told about devops and cloud technology but whatever it was it cannot exclude the ability to write , read and interpret code script. Now let's go . You were given the following script below in technical interview
Now the question
a. What is the intention of the below script
b. Replace A,B,C,D,E and F with the right words
c. Having done No2, how can you optimized this script suggest ways to go about this base on your experience
---
- hosts: all
become: A
tasks:
- name: install apache Ubuntu servers
apt:
name:
- B
state: C
update_cache: yes
- name: install apache on CentOS servers
D:
name:
- E
state: F
update_cache: yes