Whenever you execute any ansible command then it returns the output in different colors and there is a different meaning of these colored ...
Whenever you execute any ansible command then it returns the output in different colors and there is a different meaning of these colored outputs.
Green:- Command or Playbook is executed successfully and there is no state change. For example, if you want to install apache on a server and apache is already installed on that server then the output will be in green color.
Yellow:- Command or Playbook is executed successfully and there is a state change. For example, if you want to install apache on a server and apache is not installed on that server then the output will be in yellow color.
Red:- It represents run time errors or syntax or compilation errors. For example, if you want to create a file in a directory but that directory does not exist then it will give a run time exception in Red Color. if you have some syntax error in the code then the output will be Red color which indicates that there is some error in the code.
Pink:- It represents the warning which sometimes we ignore it if it is not major.
COMMENTS