Skip to content

Instantly share code, notes, and snippets.

@YumaInaura
Last active December 22, 2019 02:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YumaInaura/31ae6d519cb323748f9b2d21249c6fa3 to your computer and use it in GitHub Desktop.
Save YumaInaura/31ae6d519cb323748f9b2d21249c6fa3 to your computer and use it in GitHub Desktop.
"src" means "source" ( I got a sense )

In many places we found "src" keyword.

in HTML img tag

<img src="http://eample.com/some_image.jpg">

Same as HTML iframe tag

<iframe src="http://eample.com/"></iframe>

In Ansible playbook

- name: example copying file with owner and permissions
  copy:
    src: /srv/myfiles/foo.conf
    dest: /etc/foo.conf

In above case, sometime I was confused. Which is dest, which is src?

I've thought it's meaming is like "destination" near by "to". But it means "source" near by "from".

But after understood "src" means "source", I got a sense, all is clear!

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