Skip to content

Instantly share code, notes, and snippets.

@srgvg
Last active August 29, 2015 13:56
Show Gist options
  • Save srgvg/9260657 to your computer and use it in GitHub Desktop.
Save srgvg/9260657 to your computer and use it in GitHub Desktop.
host1 ansible_ssh_host=host1.domain.example
host2 ansible_ssh_host=host2.domain.example
---
- hosts: host1
gather_facts: False
tasks:
- command: hostname
delegate_to: host2
---
- hosts: host1
gather_facts: False
tasks:
- command: hostname
delegate_to: some.other.host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment