Skip to content

Commit

Permalink
[owncloud] fix linting
Browse files Browse the repository at this point in the history
(cherry picked from commit 601f9ff)
(cherry picked from commit 219a2fa)
  • Loading branch information
jankowa authored and drybjed committed Aug 23, 2021
1 parent c2a0151 commit 4174614
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,12 @@ General
- Do not remove the whole PKI hook directory when the :command:`nginx` hook
script is removed by the role.

:ref:`debops.owncloud` role
'''''''''''''''''''''''''''

- Correctly handle the exit code of the :command:`occ ldap:show-config` command
when the LDAP configuration is not yet available.

:ref:`debops.pki` role
''''''''''''''''''''''

Expand Down
3 changes: 1 addition & 2 deletions ansible/roles/owncloud/tasks/ldap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
register: owncloud__register_ldap_default_config_exits
become: True
become_user: '{{ owncloud__app_user }}'
#ignore_errors: True
failed_when: (owncloud__register_ldap_default_config_exits.rc != 0 and
failed_when: (owncloud__register_ldap_default_config_exits.rc != 0 and
'Invalid configID' not in owncloud__register_ldap_default_config_exits.stdout)

- name: Create empty LDAP configuration
Expand Down

0 comments on commit 4174614

Please sign in to comment.