This commit is contained in:
Michael Grote 2024-04-03 23:05:39 +02:00
parent 85e13d9369
commit 06492ba0fe

View file

@ -20,6 +20,7 @@
--synchronize-users
register: configured
ignore_errors: true
failed_when: 'not "Command error: login source already exists [name: lldap]" in configured.stderr'
become_user: gitea
- name: debug
@ -28,7 +29,7 @@
- name: Modify LDAP config
ansible.builtin.command: cat /etc/motd
when: not configured.changed or configured
when: '"Command error: login source already exists [name: lldap]" in configured.stderr'
become_user: gitea
...