On 08.12.2017 10:10, SK wrote:
Excellent! Many thanks for the pointer and it is working now. Is there
any link that you could provide me regarding the best practices for
indendations?

You have the YAML specification that says it must be space and you need to be consistent on the number of spaces you use.

For Ansible you have the list[1] that list all directives and where you can use them.
What you can use on the module it self is documented under each module.

So for register, you'll not find that documented under ios_command so you can't have under the module. But if you check the link you'll see that register on can be used on the task.


[1] http://docs.ansible.com/ansible/latest/playbooks_keywords.html

--
Kai Stian Olstad

--
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/129c2b284d5f705e4bdaa9787cb622f3%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to