On Nov 17, 2015 3:42 PM, "Larry Fast" <[email protected]> wrote:
>
> Turns out it requires the #! at the start. Don't know if the 2nd line is
required.
>
> #!/usr/bin/python
>
> # -*- coding: utf-8 -*-
>
Ah, yeah that's needed so that ansible can tell this is a module written in
python vs ruby or perl or another language.  The second line is nice
boilerplate but not strictly needed. It tells python what encoding to use
when it reads the file.  It's usually only needed when you embed a
non-ascii literal in the file.  (For instance, someone puts their name in a
comment and their name has accents)

-Toshio

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAG9juEr9EF58w4pTYHsWjBu%3DLZGSrm%3D5bqyuLNsR3Hj84cUrAg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to