Skip to content

Instantly share code, notes, and snippets.

@cespare
Created January 15, 2014 15:56
Show Gist options
  • Save cespare/8438767 to your computer and use it in GitHub Desktop.
Save cespare/8438767 to your computer and use it in GitHub Desktop.
---
- name: hang test
hosts: "{{ hosts }}"
tasks:
- name: hang test 1
local_action: command ssh {{ inventory_hostname }} ls
when: task_to_run == "1"
- name: hang test 2
local_action: shell ssh {{ inventory_hostname }} ls 2>/dev/null
when: task_to_run == "2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment