# Satellite module in development

**URL:** <https://forum.ansible.com/t/satellite-module-in-development/21488>\
**Category:** Ansible Developer\
**Created:** [May 19, 2016, 8:41am UTC](https://forum.ansible.com/t/satellite-module-in-development/21488 "2016-05-19T08:41:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rwolters](https://avatars.discourse-cdn.com/v4/letter/r/cab0a1/32.png) [@rwolters](https://forum.ansible.com/u/rwolters)\
**Post date:** [May 19, 2016, 8:41am UTC](https://forum.ansible.com/t/satellite-module-in-development/21488/1 "2016-05-19T08:41:35Z")

</div>

Hej hej,

in case you are interested, I am currently developing my first Ansible module using the Satellite REST API. Currently it can create and delete activation keys, but my plan is to use it as a blueprint for multiple Satellite modules for the real stuff like managing hosts, life cycles, etc.

The state of the module is right now:

- using the requests python library for easier REST handling

- supporting creation and deletion of keys

- can already ignore invalid certificates

- requires key name and organization - if one of the parameters is not specific enough, this is reported as an error

- if key was already deleted or created, module does not report error or change

What is missing right now:

- more parameters for keys
- support for check mode
- re-using the basic structure of the module to create other ones managing hosts, etc.
- proper testing against Satellite 6.2 Beta
- pep/syntax checking, etc.

The code can be found at:  
[https://github.com/liquidat/ansible-modules-extras/tree/satellite\_activation\_keys/cloud/satellite](https://github.com/liquidat/ansible-modules-extras/tree/satellite_activation_keys/cloud/satellite)

Regards,

Roland

---

<div class="post-metadata">

**Author:** ![rwolters](https://avatars.discourse-cdn.com/v4/letter/r/cab0a1/32.png) [@rwolters](https://forum.ansible.com/u/rwolters)\
**Post date:** [May 20, 2016, 10:18am UTC](https://forum.ansible.com/t/satellite-module-in-development/21488/2 "2016-05-20T10:18:27Z")

</div>

Hej there,

I’ve further improved the mentioned Ansible Satellite module and created a pull request:  
[https://github.com/ansible/ansible-modules-extras/pull/2265](https://github.com/ansible/ansible-modules-extras/pull/2265)

- almost all parameters for activation key management are covered
- check mode is suported
- syntax checking was done

Only missing now is that the output is sometimes string only, sometimes JSON, that could be improved I guess.

So if the pull request goes through or at least does not uncover major issues, I will try to create more Satellite modules based on that one.

Regards,

Roland
