dimmaryanto93.gitlab

dimmaryanto93.gitlab

This repository is used to install gitlab on Linux.

Supported Platforms

  • Debian
  • Ubuntu
  • CentOS

Ansible - User Guide

Preparations to be done include:

  1. Create a new user on your server. It is recommended to use a very strong password or a password generator.
adduser <username>
  1. Grant the user sudo privileges without a password using visudo:
username    ALL=(ALL) NOPASSWD:ALL
  1. Authenticate with a private key for SSH login. Generate an SSH key on your local machine and then use ssh-copy-id user@your-ip-server to copy the public key to your server.

Requirements

To use this role, you need the following packages/collections:

You can install them using:

ansible-galaxy collection install ansible.posix community.general

Alternatively, you can use a requirement.yaml file and install it with ansible-galaxy collection install -r requirement.yaml, formatted as follows:

---
collections:
  - community.general
  - ansible.posix

Role Variables

There are a few variables you can use to configure the GitLab daemon, including:

Variable Name Example Value Description
gitlab_external_url http://localhost Default value for GitLab operations like git pull, push, clone
gitlab_root_password_print false Show generated root password for the GitLab administrator account
gitlab_init_shared_runner_registration_token - Set default token for GitLab runner registration
gitlab_init_root_password - Set the default installation password for the GitLab root account

Dependencies

None

Example Playbook

Here’s an example of how to use your role (including variables passed as parameters):

- hosts: servers
  become: true
  roles:
      - { role: dimmaryanto93.gitlab }

License

MIT

Informazioni sul progetto

Install gitlab for Linux

Installa
ansible-galaxy install dimmaryanto93.gitlab
Licenza
Unknown
Download
104
Proprietario
Chief Technology Officer @tabeldatadotcom