Ansible One-liners
Jump to navigation
Jump to search
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/