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.

Reply via email to