{{ 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