Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions roles/debian/gitlab/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,4 @@ gitlab:
redirect_http_to_https: "true" # must be enabled if you're using LetsEncrypt above
redirect_http_to_https_port: 80 # must be 80 if you're using LetsEncrypt above
custom_nginx_config: "" # include extra config, for example "include /etc/nginx/conf.d/example.conf;"
block_removed_ldap_users_on_calendar: "*-*-* 02:30:00"
10 changes: 10 additions & 0 deletions roles/debian/gitlab/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,16 @@
ansible.builtin.command: /opt/gitlab/bin/gitlab-ctl start
when: gitlab.force_stop

- name: Create systemd timer to sync removed LDAP users.
ansible.builtin.include_role:
name: contrib/systemd_timers
vars:
timers:
block_removed_ldap_users:
timer_command: "/usr/bin/gitlab-rake gitlab:cleanup:block_removed_ldap_users BLOCK=true"
timer_OnCalendar: "{{ gitlab.block_removed_ldap_users_on_calendar }}"
when: gitlab.ldap.enable

# @TODO - this task fails in CI with GitHub Actions because PostGreSQL isn't running
- name: Run the GitLab configuration script for config that cannot be set in gitlab.rb.
ansible.builtin.command: /opt/gitlab/bin/gitlab-rails runner /etc/gitlab/gitlab-config.rb
Expand Down
Loading