I’m setting up an application using containers with ansible. I want to be able to set up the same application multiple times with a different set of variables. Is there a way how I could do this in parallel on a single host? I know I could deploy the same application n times on n different hosts, but what about n times on a single host? Is something like this possible? Doing it sequential obviously works, but it doesn’t scale well.

  • 𝕨𝕒𝕤𝕒𝕓𝕚@feddit.orgOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 months ago

    No, it’s a moderately complex role. Could I include the role with async: true? There is obviously some dependencies inside the role, but not between the different role inclusions.

    • DasFaultier
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 months ago

      I think you can use async on task level only, but the documentation would be wider than me on that detail.