Good initiative.
But, why don't you use some automation tools (ansible etc) rather than bash ?
Bash is error prone when doing complex tasks and loops and difficult to validate the results and next step.
I agree with you. Ansible would be more appropriate for such task. However, i chose bash because its easy to understand with zero dependency. Here, the task also was pretty simple. People not knowing Ansible would have had to learn it first before understanding those simple bash commands.
Good initiative.
But, why don't you use some automation tools (ansible etc) rather than bash ?
Bash is error prone when doing complex tasks and loops and difficult to validate the results and next step.
Anyway, will see more update on this :)
I agree with you. Ansible would be more appropriate for such task. However, i chose bash because its easy to understand with zero dependency. Here, the task also was pretty simple. People not knowing Ansible would have had to learn it first before understanding those simple bash commands.
Understood. thanks for sharing :)