Added async for openproject settings

This commit is contained in:
Kevin Veen-Birkenbach 2025-08-14 00:07:09 +02:00
parent 7f42462514
commit abc064fa56
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
2 changed files with 9 additions and 17 deletions

View File

@ -39,6 +39,8 @@
tls_certificate_string = '{{ openproject_ldap.tls_certificate_string }}'
WHERE name = '{{ openproject_ldap.name }}';
when: ldap_check.query_result | length > 0
async: "{{ ASYNC_TIME if ASYNC_ENABLED | bool else omit }}"
poll: "{{ ASYNC_POLL if ASYNC_ENABLED | bool else omit }}"
- name: Create new LDAP auth source
community.postgresql.postgresql_query:
@ -73,22 +75,8 @@
'{{ openproject_ldap.tls_certificate_string }}'
);
when: ldap_check.query_result | length == 0
- name: Show all LDAP sources (debug)
community.postgresql.postgresql_query:
db: "{{ database_name }}"
login_user: "{{ database_username }}"
login_password: "{{ database_password }}"
login_host: "127.0.0.1"
login_port: "{{ database_port }}"
query: "SELECT id, name FROM ldap_auth_sources"
register: ldap_entries
when: MODE_DEBUG | bool
- name: Debug LDAP entries
debug:
var: ldap_entries
when: MODE_DEBUG | bool
async: "{{ ASYNC_TIME if ASYNC_ENABLED | bool else omit }}"
poll: "{{ ASYNC_POLL if ASYNC_ENABLED | bool else omit }}"
# This works just after the first admin login
# @todo Remove and replace trough LDAP RBAC group
@ -109,3 +97,5 @@
"
args:
chdir: "{{ docker_compose.directories.instance }}"
async: "{{ ASYNC_TIME if ASYNC_ENABLED | bool else omit }}"
poll: "{{ ASYNC_POLL if ASYNC_ENABLED | bool else omit }}"

View File

@ -33,6 +33,8 @@
args:
chdir: "{{ docker_compose.directories.instance }}"
loop: "{{ openproject_rails_settings | dict2items }}"
async: "{{ ASYNC_TIME if ASYNC_ENABLED | bool else omit }}"
poll: "{{ ASYNC_POLL if ASYNC_ENABLED | bool else omit }}"
- name: Setup LDAP
include_tasks: 01_ldap.yml