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" + ] + } + } +] +