Skip to content

Instantly share code, notes, and snippets.

@kovacshuni
Created March 10, 2014 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kovacshuni/9466066 to your computer and use it in GitHub Desktop.
Save kovacshuni/9466066 to your computer and use it in GitHub Desktop.
Ansible command ran directly
## So this is how i copied a file from src to dest through an Ansible command.
ansible -i poc gitlab-servers -m file -a "name=copying src=/home/git/gitlab/lib/support/logrotate/gitlab dest=/etc/logrotate./gitlab mode=0640 owner=root group=git"
server | success >> {
"changed": false,
"path": "copying",
"state": "absent"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment