MonolithProjects / ansible-github_actions_runner

Ansible Role to deploy GitHub Actions self-hosted runner
https://galaxy.ansible.com/ui/standalone/roles/monolithprojects/github_actions_runner/
MIT License
189 stars 77 forks source link

feature: Update labels if runner_labels is different from the server #217

Closed daltonv closed 1 month ago

daltonv commented 2 months ago

Summary

Currently if you change the labels set in your playbook and the runner was already installed & registered this role will not update the labels on the server.

Current workaround: Use reinstall_runner: true, but this does more than is really needed. We don't need the runner software to be reinstalled at this point.

Proposed solution: Search the already collected registered_runners.json object for the labels of the already registered runner and compare against runner_labels variable. If they are different use an api call to update the labels.

Issue Type

Feature Idea