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

View File

@@ -0,0 +1,18 @@
{{ ansible_managed | comment }}
[Unit]
Description=GitLab Runner
ConditionFileIsExecutable={{ gitlab_runner_binary_path }}
After=syslog.target network.target
[Service]
StartLimitInterval=5
StartLimitBurst=10
ExecStart={{ gitlab_runner_binary_path }} "run" "--working-directory" "{{ gitlab_runner_working_directory }}" "--config" "{{ gitlab_runner_config_path }}" "--service" "gitlab-runner"{% if not gitlab_runner_user == "root" %} "--user" "{{ gitlab_runner_user }}" {% endif %}
Restart=always
RestartSec=120
#EnvironmentFile=-/etc/sysconfig/gitlab-runner
[Install]
WantedBy=multi-user.target