- name: copy file
raw: "{{item}};"
with_items:
- conf t
- int gi0/0
- shutdown
cat file.txt | ssh user@host_name
raw: "conf t\n int gi0/0\n shutdow" ssh username@host "conf t\n int gi0/0\n shutdow"ssh send "conf t\n int gi0/0\n shutdow" as one command, without \n sequences.
paramiko has same behaviour.