One of the most basic things to do in a Linux Server. We can use just
Continue reading Ansible to change user password
passwd <user> to change the password of a user. But to do that in 100s of server can be a tricky one. Ansible is the savior on that perspective.
I am recently playing the role as an SRE and that is why I have to deal with a lot of servers. Not only cloud once or clusters but also bare metals as well as Virtual Machines. For more systematic environment preparation, I have Gitlab pipeline. But for basic tasks like change the config on demand or check a specific directory or search something or any other unpredictable or repeated tasks, I need Ansible for better grasp from my local machine or Bastion server. So, what do I have to do?
- Create an entry to the .ssh/config file
- Create an entry ansible host file as inventory
Repeated tasks? For me, yes. I needed to manage these. So, created a python script
Continue reading SSH Config and Ansible Host Generator and Why I am doing it this way?