Skip to content

Add custom gitlab-runner module

Tristan Lucas requested to merge runner_module into master

This is a first try in developing a custom Ansible module.

The main motivation was to introduce the capability of marking runners as only running for protected branches without the extensive use of Ansible's uri module (2-3 times per runner), which would have resulted in a mess.

I tried to follow Ansible's guidelines for modules (1,2,3 and 4) as sane as possible.

For awesomeness:

graph LR
    Ansible-->Coffee;
    Ansible -->Python;
    Coffee-->done;
    Python-->done;
    done-->$$$;

Cheers! Tristan

Edited by Tristan Lucas

Merge request reports