debops / ansible-gitlab_runner

Manage GitLab Runner instances
GNU General Public License v3.0
20 stars 19 forks source link

default shell runner registration is skipped #11

Closed opichon closed 7 years ago

opichon commented 7 years ago
TASK [debops.gitlab_runner : Check if GitLab service is available] ******************************************************************************************************************************
ok: [scw-0783ca]

TASK [debops.gitlab_runner : Register new GitLab Runners] ***************************************************************************************************************************************
skipping: [scw-0783ca] => (item={u'name': u'scw-0783ca', u'executor': u'shell'})

My playbook uses the gitlab_runner role straight out of the box, with little cofiguration except to provide the Gitlab CI token.

drybjed commented 7 years ago

It seems to be a bit complex condition, you could start by checking the state of the gitlab_runner__register_api and gitlab_runner__token variables using the debug Ansible module. Also, can you show the Ansible facts file the role produces?

opichon commented 7 years ago

Thanks for your reply. My configuration was wrong, and it now works fine. Sorry to have troubled you.