deploymentansiblesap-commerce-cloudbamboobamboo-artifacts

How to avoid downtime while running job simultaneously in bamboo


Service has stopped in both the nodes, I just want everything else to be done simultaneously but there should not be any down time, Could someone please help me to solve this. Job is set up in Bamboo


Solution

  • Configure ansible to provision the hosts one by one by adding this to your playbook:

    serial: 1
    

    Docs: https://docs.ansible.com/ansible/latest/user_guide/playbooks_strategies.html#setting-the-batch-size-with-serial

    This assumes that your playbook has tasks for bringing the service up after stopping it and before proceeding to the next host.