dd
This commit is contained in:
parent
85e13d9369
commit
06492ba0fe
1 changed files with 2 additions and 1 deletions
|
@ -20,6 +20,7 @@
|
||||||
--synchronize-users
|
--synchronize-users
|
||||||
register: configured
|
register: configured
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
failed_when: 'not "Command error: login source already exists [name: lldap]" in configured.stderr'
|
||||||
become_user: gitea
|
become_user: gitea
|
||||||
|
|
||||||
- name: debug
|
- name: debug
|
||||||
|
@ -28,7 +29,7 @@
|
||||||
|
|
||||||
- name: Modify LDAP config
|
- name: Modify LDAP config
|
||||||
ansible.builtin.command: cat /etc/motd
|
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
|
become_user: gitea
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in a new issue