I need to Bash script which will install few packages. For Example: I need install packages: Molecule and Ansible
Bash script should do it and I need it for Ubuntu/Debian:
If Molecule exist > print "Molecule Installed"
else
apt-get install Molecule
then
if Ansible exist > print "Ansible installed"
else
apt-get install Ansible
Can you tell me how will look script in bash, which will contain the above instructions?
Thank you in advance!