Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dimmaryanto93/ansible-role-gitlab

Ansible role for Install gitlab
https://github.com/dimmaryanto93/ansible-role-gitlab

ansible gitlab

Last synced: 2 days ago
JSON representation

Ansible role for Install gitlab

Awesome Lists containing this project

README

        

`dimmaryanto93.gitlab`
=========

Repository ini digunakan untuk menginstall `gitlab` untuk Linux

Support platform

- Debian
- Ubuntu
- CentOS

Ansible - User Guide
------------

Persiapan yang harus di lalukan, diantaranya

1. Create new user on your server, Recomend using **very-very Strong Password** or using password generator.
```bash
adduser
```

2. Granted to sudoers with NOPASSWD, using `visudo`
```ini
username ALL=(ALL) NOPASSWD:ALL
```

3. Authenticate with private-key for login ssh, generate ssh key on your local machine then use `ssh-copy-id user@your-ip-server` to copy public key to your server.

Requirements
------------

Untuk menggunakan role ini, kita membutuhkan package/collection

- [ansible.posix](https://github.com/ansible-collections/ansible.posix)
- [community.general](https://github.com/ansible-collections/community.general)

Temen-temen bisa install, dengan cara

```bash
ansible-galaxy collection install ansible.posix community.general
```

Atau temen-temen bisa menggunakan `requirement.yaml` file and install menggunakan `ansible-galaxy collection install -r requirement.yaml`, dengan format seperti berikut:

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

Role Variables
--------------

Ada beberapa variable yang temen-temen bisa gunakan untuk setting docker daemon, diantaranya seperti berikut:

| Variable name | Example value | Description |
| :--- | :--- | :--- |
| `gitlab_external_url` | `http://localhost` | Default value untuk gitlab operation seperti git pull, push, clone |
| `gitlab_root_password_print` | `false` | Tampilkan generated root password for gitlab administrator account |
| `gitlab_init_shared_runner_registration_token` | `-` | Set default token for registration gitlab runner |
| `gitlab_init_root_password` | `-` | Set default password installation for gitlab root account |

Dependencies
------------

None

Example Playbook
----------------

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

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

License
-------

MIT