Skip to content

Instantly share code, notes, and snippets.

@dpkirchner
Created October 2, 2014 13:27
Show Gist options
  • Save dpkirchner/c5092daa208df081fc25 to your computer and use it in GitHub Desktop.
Save dpkirchner/c5092daa208df081fc25 to your computer and use it in GitHub Desktop.
Playbook that demonstrates ssh pipelining not working as expected
- name: Make a host list
hosts: localhost
gather_facts: no
connection: local
tasks:
- name: add host
add_host: hostname=1.2.3.4 groupname=foo
- name: Do the do
hosts: foo
connection: ssh
gather_facts: no
sudo: yes
remote_user: dpk
tasks:
- name: thing one
copy: src=/etc/passwd dest=/tmp/passwd
- name: thing two
copy: src=/etc/hosts dest=/tmp/hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment