Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Does the task that you run with ansible include -m command -s 'some commands', i.e. you aren't actually running a playbook? In your last example, is it one play for HOST_A and HOST_B, then run ansible command on HOST_C and HOST_D, then final play on HOST_E and HOST_F? Examples of the plays and commands would help a lot, even if you include dummy code, to understand structure. Commented Nov 22, 2017 at 21:28
  • A piece of code would greatly enrich your question... Commented Nov 23, 2017 at 6:04
  • @RichVel It's pretty simple and as you describe, except I'm using ansible-playbook instead of just ansible Commented Nov 24, 2017 at 14:00