Initial commit

This commit is contained in:
2024-02-25 01:14:24 +03:00
commit 1f9873579c
12 changed files with 174 additions and 0 deletions

26
README.md Normal file
View File

@@ -0,0 +1,26 @@
# gitlab-runner
Simple Ansible role for gitlab-runner installation.
## Usage (example)
```yaml
- role: gitlab-runner
gitlab_runner_registration_token: "secret_string"
gitlab_runner_executor: "shell"
```
## Available parameters
### Main
| Param | Default | Description |
| -------- | -------- | -------- |
| `gitlab_runner_registration_token` | `""` | GitLab runner registration token. |
| `gitlab_runner_executor` | `""` | GitLab runner executor. Support: `shell` or `docker` |
| `gitlab_runner_user` | `gitlab-runner` | Running GitLab runner under the user |
| `gitlab_runner_instance_url` | `https://gitlab.com` | GitLab instance URL |
| `gitlab_runner_working_directory` | `/home/gitlab-runner` | GitLab Runner working directory |
| `gitlab_runner_runner_description` | `The runner was registered using ansible.` | GitLab runner description |
| `gitlab_runner_docker_default_image` | `alpine` | GitLab runner default image |
| `gitlab_runner_tags` | `""` | GitLab runner tags |