If starting from scratch, would you suggest learning BASH or Ansible?
-
Hi there,
While I'm preparing for RedHat certification, I was thinking to learn BASH, for general use and also exam has requirement to write simple bash scripts.
But, in long run and to be more efficient, I feel deep learning of Ansible is better than BASH? If I left BASH, and go with Ansible do I lose anything? I assume Ansible covers what BASH can do?
Appreciate your suggestions.
-
I think Ansible and Bash both can go hand in hand. Bash can help you learn how to navigate and automate things without the overhead of having an ansible set up.
But, if you have Ansible configured, automating things with bash and pushing out a bash script or other automation to your entire infrastructure just became a lot easier.
-
@openit said in If starting from scratch, would you suggest learning BASH or Ansible?:
Hi there,
While I'm preparing for RedHat certification, I was thinking to learn BASH, for general use and also exam has requirement to write simple bash scripts.
But, in long run and to be more efficient, I feel deep learning of Ansible is better than BASH? If I left BASH, and go with Ansible do I lose anything? I assume Ansible covers what BASH can do?
Appreciate your suggestions.
I don't think that's an either/or question, it's which one should I learn first. Ansible is so good because it doesn't try to do everything for you, it does a lot for sure, but not everything. Knowing both BASH and Ansible lets you automate anything you could possibly want to do.
If starting from scratch, I'd say to learn the basics of BASH. Then really dig into Ansible. I think you'll find that if you use Ansible to it's full potential, you'll also have to learn to use the shell (BASH is only one.)
-
@openit said in If starting from scratch, would you suggest learning BASH or Ansible?:
While I'm preparing for RedHat certification, I was thinking to learn BASH, for general use and also exam has requirement to write simple bash scripts.
But, in long run and to be more efficient, I feel deep learning of Ansible is better than BASH? If I left BASH, and go with Ansible do I lose anything? I assume Ansible covers what BASH can do?
These aren't competitive technologies. One is for working at the command line, one is for remote automation. You will always need both realistically.
-
@openit said in If starting from scratch, would you suggest learning BASH or Ansible?:
Hi there,
While I'm preparing for RedHat certification, I was thinking to learn BASH, for general use and also exam has requirement to write simple bash scripts.
But, in long run and to be more efficient, I feel deep learning of Ansible is better than BASH? If I left BASH, and go with Ansible do I lose anything? I assume Ansible covers what BASH can do?
Appreciate your suggestions.
They different, complementary things that are both used for administering RHEL systems (and other systems as well, but you mentioned Red Hat certs). There will be times when you will use Ansible to execute the same commands on a remote system as you would with BASH when there isn't a specific Ansible module available to do the thing you want.
If you're learning about administering RHEL and other Linux systems (which I assume you are since you're seeking those certs), there is no realistic "leaving" of BASH. You could use other shells to run the commands needed to work on your skills, but if you're training for the real world of working on RHEL, why not use BASH?
Consider the first two certs in the Red Hat path, RHSCA and RHCE. RHCSA is designed to teach fundamentals of managing RHEL. RHCE is teaching the fundamentals of Ansible for the purpose of taking the things you learned with RHCSA and automating them potentially at scale.
-
Besides anisble there are other tools for remote tooling. In a linux world you need bash. this is a basic need.
On top of bash, it really depends on the environmnet you're in. I would suggest python on top of this. You can use python in ansible, chef, terraform, etc... Also on non linux environments, python is availlable (bsd, windows). -
@IgnaceQ said in If starting from scratch, would you suggest learning BASH or Ansible?:
Besides anisble there are other tools for remote tooling. In a linux world you need bash. this is a basic need.
On top of bash, it really depends on the environmnet you're in. I would suggest python on top of this. You can use python in ansible, chef, terraform, etc... Also on non linux environments, python is availlable (bsd, windows).He needs Ansible because he's doing an Ansible based certification path.