From d7938cc07321de8d00b2473528b5f43501c0b3aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Fra=C3=9F?= Date: Sun, 17 Dec 2023 15:10:34 +0100 Subject: [PATCH] [add] role:gitlab --- ansible/roles/gitlab/defaults/main.json | 3 +++ ansible/roles/gitlab/info.md | 9 +++++++ ansible/roles/gitlab/tasks/main.json | 31 +++++++++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 ansible/roles/gitlab/defaults/main.json create mode 100644 ansible/roles/gitlab/info.md create mode 100644 ansible/roles/gitlab/tasks/main.json diff --git a/ansible/roles/gitlab/defaults/main.json b/ansible/roles/gitlab/defaults/main.json new file mode 100644 index 0000000..55398e5 --- /dev/null +++ b/ansible/roles/gitlab/defaults/main.json @@ -0,0 +1,3 @@ +{ + "var_gitlab_domain": "gitlab.example.org" +} diff --git a/ansible/roles/gitlab/info.md b/ansible/roles/gitlab/info.md new file mode 100644 index 0000000..21c2b82 --- /dev/null +++ b/ansible/roles/gitlab/info.md @@ -0,0 +1,9 @@ +## Beschreibung + +Software-Entwickler-Plattform [GitLab](https://about.gitlab.com/) + + +## Verweise + +- [Dokumentation | Install self-managed](https://about.gitlab.com/install/) +- [LinuxTechi | How to Install GitLab on Debian 12 Step-by-Step](https://www.linuxtechi.com/how-to-install-gitlab-on-debian/) diff --git a/ansible/roles/gitlab/tasks/main.json b/ansible/roles/gitlab/tasks/main.json new file mode 100644 index 0000000..59adff1 --- /dev/null +++ b/ansible/roles/gitlab/tasks/main.json @@ -0,0 +1,31 @@ +[ + { + "name": "prerequisites", + "become": true, + "ansible.builtin.apt": { + "pkg": [ + "curl", + "ca-certificates", + "apt-transport-https", + "gnupg2" + ] + } + }, + { + "name": "install script", + "become": true, + "ansible.builtin.shell": { + "cmd": "curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash" + } + }, + { + "name": "prerequisites", + "become": true, + "ansible.builtin.apt": { + "pkg": [ + "gitlab-ce" + ] + } + } +] +