Only run a few selected commands

I will need to setup a few VPS’s in the future and I would like to automate some of the steps. For example some servers will require Docker and wordpress and some won’t.

Is there a way I can customise the options a workflow? I understand I can select which individual steps to run, but some options have a lot of steps.

thanks

Hi @admin4 ,

If I understood you correctly you want to run the same scenario in different VPSs and then you want to have different steps to be executed for different VPSs.

If my understanding is correct, It is not possible. One scenario can only be executed with same steps for each VPSs.
However ther are some ways to handle it.,

  1. Best way is to duplicate the scenario for each different configuration. Then create a job, add relevant scenarios to the job. And then asign the relevant agent.

  2. You can create If / Else conditions for each VPS. Imagine that the one which has something specific and you can add conditions like
    If Isvisible Text “VPS1”
    Click Text “Hello”
    ElseIf Isvisible Text “VPS1”
    Click Text “Hello1”

1 Like

thanks for the idea, let me try this when I get some time!