How to write Ansible modules

155 views
Skip to first unread message

Mark Maglana

unread,
Jun 11, 2016, 10:52:24 AM6/11/16
to Ansible Development
I'd like to share my notes on writing modules:

http://www.relaxdiego.com/2016/06/writing-ansible-modules-with-tests.html

Hoping to get some feedback on it.

jhawkesworth

unread,
Jun 13, 2016, 6:47:11 PM6/13/16
to Ansible Development
This is nice, I'd been wondering how to turn on travis on my fork for one thing.
I skimmed it a little, but two things it would be nice to add

running the integration tests (abd writing them, although that's mostly just writing playbooks)
making the docs (especially webdocs) so you can see how your documentation will render.

Jon

Mark Maglana

unread,
Jun 15, 2016, 5:39:59 PM6/15/16
to Ansible Development
Thanks for the feedback, Jon! Those items are worthy of their own articles. I'll work on those next week unless somebody beats me to the punch! :-)

Regards,

Mark

Krishna K

unread,
Jun 17, 2016, 11:45:48 AM6/17/16
to Ansible Development
Very useful. I'll use it as Iam getting started.

Mark Maglana

unread,
Jun 17, 2016, 1:45:00 PM6/17/16
to Krishna K, Ansible Development
Hi Krishna,

FYI I'll be pushing a tiny update to that article soon. Ansible uses nose instead of pytest so I will modify the testing part to use the former.

--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Development" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-devel/LwaFDy8J0KU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-deve...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vijayakumar Ramdoss

unread,
Jul 22, 2016, 9:25:09 AM7/22/16
to Ansible Development
Excellent document, 
Reply all
Reply to author
Forward
0 new messages