Difference between revisions of "Ansible One-liners"
Jump to navigation
Jump to search
(Created page with "ansible 'Windows' -m win_shell -i inventory.txt -a 'cp C:\tmp\a.txt C:\tmp\b.txt'") |
|||
Line 1: | Line 1: | ||
ansible 'Windows' -m win_shell -i inventory.txt -a 'cp C:\tmp\a.txt C:\tmp\b.txt' | ansible 'Windows' -m win_shell -i inventory.txt -a 'cp C:\tmp\a.txt C:\tmp\b.txt' | ||
+ | |||
+ | ansible 'Windows' -m copy -a "src=/tmp/foo.txt dest=/tmp/foo.txt" -i inventory.txt # https://www.middlewareinventory.com/blog/ansible-copy-file-or-directory-local-to-remote/ |
Revision as of 00:27, 2 July 2021
ansible 'Windows' -m win_shell -i inventory.txt -a 'cp C:\tmp\a.txt C:\tmp\b.txt'
ansible 'Windows' -m copy -a "src=/tmp/foo.txt dest=/tmp/foo.txt" -i inventory.txt # https://www.middlewareinventory.com/blog/ansible-copy-file-or-directory-local-to-remote/