Recently I have been watching some ansible conference recordings and 
reading about best practices and I have a question.

How do you write your playbooks/roles to for cross platform use and be able 
to not to turn your specification to code with frequent "if"s and to not 
write too much boilerplate for each OS?

Ok I can abstract out package managers for example and just use package 
module, but still package naming sometimes will occur, or system will not 
be compatible with some module.

Is this even possible to write such roles? Or is there any guidelines that 
help avoid code overhead?
Sadly I didn't found any material on that matter.

Or the only way is writing separate tasks for OS-dependent "native" stuff 
and adding "if"s on top role level?

-- 
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/2fc57f55-18c2-4710-be4e-b2f38abdf801%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to