Skip to content
Discussion options

You must be logged in to vote

no range syntax in spot, neither in targets nor in the inventory. For a range, generate the inventory and run against the group. Hosts in one group run in parallel with -c:

{ echo "groups:"; echo "  hpc:"; for i in $(seq 1 500); do echo "    - {host: n$i.cluster.hpc}"; done; } > inventory.yml
spot -i inventory.yml -t hpc -c 50

-i also accepts a URL, so the list can come from an HTTP endpoint.

a dynamic target resolves to one target name, so a list of hosts in the variable won't work. The name can be a group, tag or playbook target, and spot expands it to all its hosts:

tasks:
  - name: pick group
    targets: ["default"]
    options: {local: true}
    commands:
      - name: set group
   …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by umputun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants