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

24
tasks/config.yml Normal file
View File

@@ -0,0 +1,24 @@
---
- name: Create gitlab runner user
user:
name: "{{ gitlab_runner_user }}"
comment: "User for gitlab runner"
state: present
create_home: false
when: gitlab_runner_user != 'root'
- name: create gitlab runner service
template:
src: gitlab-runner.service.j2
dest: /etc/systemd/system/gitlab-runner.service
register: gitlab_runner_service
- name: Create GitLab runner work directory
ansible.builtin.file:
path: "{{ gitlab_runner_working_directory }}"
state: directory
owner: "{{ gitlab_runner_user }}"
group: "{{ gitlab_runner_user }}"
recurse: yes
- meta: flush_handlers