@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.