About [2]: of your file starts with { or [ it's parsed as JSON, so if you can 
use it (if you can stand it ;-))

Yvo van Beek <[email protected]> napisał:
>Hi,
>
>First of all thank you for creating Ansible. I've been working on a few
>scripts this past week and I have a few questions / feedback.
>
>[1] Module defaults
>One of my scripts installs a couple of packages via Aptitude. For every
>call I have to specify the update check interval and that I don't want
>to install recommended packages. Yes I could merge these commands into
>one big apt-module call, but I like the separate steps. With version
>1.8.1 args: now accepts a variable, but I have to repeat that over and
>over. It would be great if I could specify something like
>"module_defaults" at the top and write "apt: <default args>" (key:
>module name, value: dict of args).
>
>[2] YAML-friendly variable notation
>Quite often I forget to wrap variables in quotes because of the
>brackets and the YAML parser gets confused. Perhaps a pre-parse could
>make this a bit friendlier or a different choice of variable notation?
>Perhaps look at JSON to replace YAML (similar to Gulp files), all the
>cool kids are doing it ;-)
>
>[3] Shortcut to this task
>If you want to check the stdout of the task for a specific text to
>report it as changed you have to register it as a variable. It would be
>nice if an task was by default registered to "this" for the scope of
>the task (so that you can check this.stdout).
>
>[4] Silent variable assignment
>In my deployment script I want to generate a folder name based on the
>current date. For this I have to make a set_fact task which isn't
>particulairly interesting during execution. The same applies to tasks
>with the stat module.
>
>[5] When "skipped" and when "ok"?
>In my script I install RVM and add "creates=~/.rvm" to prevent the
>install in consecutive runs. Ansible reports this as "skipping" the
>step. I'd rather report it as "ok", because just like my apt packages
>RVM is now present. How can I control the "when" and "creates"
>directives to output "ok"?
>
>Thank you.
>
>-- 
>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/320b2eb7-ef07-46ff-9fef-f2f9911f23da%40googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.

-- 
Wysłane za pomocą K-9 Mail.

-- 
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/9059f8c9-a709-46fb-b194-11b9353294f1%40email.android.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to