diff --git a/roles/gitlab/defaults/main.yml b/roles/gitlab/defaults/main.yml index 05d3233..eb43f81 100644 --- a/roles/gitlab/defaults/main.yml +++ b/roles/gitlab/defaults/main.yml @@ -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 diff --git a/roles/gitlab/tasks/main.yml b/roles/gitlab/tasks/main.yml index f779c5e..7720424 100644 --- a/roles/gitlab/tasks/main.yml +++ b/roles/gitlab/tasks/main.yml @@ -30,6 +30,8 @@ - "{{ gitlab_telegraf_location }}" tags: - gitlab + when: + - gitlab_selinux_enabled become: true - name: Create install directory