gitlab: Add option to disable SELinux related tasks

This will allow this role to also work in environments where SELinux is not enabled :/
This commit is contained in:
saibotk 2021-09-21 04:46:44 +02:00
parent 09402ed943
commit 5ce51a9dba
Signed by: saibotk
GPG key ID: 67585F0065E261D5
2 changed files with 5 additions and 0 deletions

View file

@ -53,6 +53,9 @@ gitlab_ssh_port: 22
gitlab_memory_limit: "4096mb"
gitlab_memoryswap_limit: "4352mb"
# Enable or disable selinux handling
gitlab_selinux_enabled: true
# Email/SMTP settings
gitlab_smtp_address: smtp.example.com
gitlab_smtp_port: 465

View file

@ -30,6 +30,8 @@
- "{{ gitlab_telegraf_location }}"
tags:
- gitlab
when:
- gitlab_selinux_enabled
become: true
- name: Create install directory