So I been working on an Ansible based project which basically handles the application/firmware upgrade from a Centralised Ansible Server connecting to hundreds of thousands of Linux Application Servers in order to reduce manually intervention and Human errors in telecom network operations and maintenance.
#My Current Situation:
Now after building a container with Ansible playbook in it, installing required packages with Linux OS , I fire the playbook using a Frontend , the playbook fires series of Linux commands , now there are few long running commands which takes longer time for execution compared to the other one's , now this sometime gets stuck or lets say timed out within the Docker environment.
The problem I am facing is that, some of the remote server VM HOST goes for a reboot (switches over) , the moment playbook lands execution on the remote server VM HOST.
Without Docker I do not face the VM HOST reboot problem. So what could potentially lead to this problem, are there any specific ansible configuration I need to check within ansible configuration or perhaps in the Dockerfile , how do I ensure the bash session behaves inside Docker container behaves just like as it would without Docker.
Automation Flow:
Frontend -->Linux Server --> Ansible Container ---> insider container ---> bash script(which in turn triggers the playbook) ---> Destination Linux Server --> VM HOST
If you may have run into similar setup , I would really appreciate if you can share your findings and suggestions.
Cheers Amit Kudnaver