relaxdiego (Mark Maglana's Technical Blog)

Writing Ansible Modules Complete With Tests

Jun 10, 2016
Est. read: 1 minute

Co-Written by Andreas Hubert

While writing my first ansible module, I noticed that there wasn’t any resource that completely described how to get started on my local dev environment. This article documents the steps that I took to get up and running. Hopefully it will be a helpful resource for you too.

I should mention though that the following resources helped me get started quickly in certain aspects. So a big thanks to the these folks! This article builds on the foundations that they’ve started.

Please don’t hesitate to file a bug at my website’s Github repo. Feel free to submit a pull request too if you like!

Contents

  1. Preparing Your Environment
  2. Write Your First Module
  3. Complete the Module
  4. Submitting Code Upstream
  5. Helpful Resources