What is an Ansible playbook ? Is it like a shell script or a jupyter notebook , to make installing softwares easier ?
I know a simple ddg search will give me the answer, but im too lazy now 🙂
Community to discuss about opensource software, GNU/Linux , and news
!malayalam_movies@kerala.party !foss@kerala.party !technology@kerala.party !music@kerala.party !memes@kerala.party !gaming@kerala.party !politics@kerala.party !foodporn@kerala.party !lalsalaam@kerala.party !astronomy@kerala.party !askkerala@kerala.party !nostalgia@kerala.party !cricket@kerala.party !football@kerala.party !automobiles@kerala.party
What is an Ansible playbook ? Is it like a shell script or a jupyter notebook , to make installing softwares easier ?
I know a simple ddg search will give me the answer, but im too lazy now 🙂
It is like a very well written shell script. An Ansible playbook is a set of tasks that are executed one at a time. These tasks are highly customisable and can easily be run on multiple servers. The killer feature is idempotency : you can describe the desired state of the task you want (e.g. copy a config file to a directory) and execute the task any number of times and always get the same result (e.g. all boundary conditions like file already exists at source, parent directory missing, permissions etc. are automatically handled by the ansible file copy task. Bonus feature: you can also replace fields like passwords in this file with values you define in your encrypted vault (like docker secrets/github secrets)). Writing a shell script to handle all these special cases is madness. There is a huge collection of ansible task libraries for everything from software installation, tools, etc.