Skip to content

Instantly share code, notes, and snippets.

@svpernova09
Created June 18, 2015 19:19
Show Gist options
  • Save svpernova09/3f085c684150896b1384 to your computer and use it in GitHub Desktop.
Save svpernova09/3f085c684150896b1384 to your computer and use it in GitHub Desktop.
Ansible task to copy file
- name: "Copy some file"
copy:
src=file-name.ext
dest=/tmp
owner=root
group=root
mode=0775
tags:
- tag
@mfrost503
Copy link

copy: src=iptables.rules dest=/home/matt/ owner=matt group=matt

Is what is in my tasks file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment