Skip to content

Commit

Permalink
[1897] Fixes failure on first run.
Browse files Browse the repository at this point in the history
(cherry picked from commit 3324cf4)
  • Loading branch information
schmidthausen authored and drybjed committed Feb 16, 2022
1 parent 85edc68 commit 6396bf0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,11 @@ LDAP
- The DHCPv6 service does not use the TCP protocol, therefore it will not be
opened in the firewall anymore.

:ref:`debops.etckeeper` role
''''''''''''''''''''''''''''

- Fixed role execution failure with :command:`git ls-files` command.

:ref:`debops.extrepo` role
''''''''''''''''''''''''''

Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/etckeeper/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@

- name: Unstage and remove ignored files from Git index
shell: set -o nounset -o pipefail -o errexit &&
etckeeper vcs ls-files -i --exclude-standard -z | xargs -0 --no-run-if-empty etckeeper vcs rm --cached --
etckeeper vcs ls-files -i -c --exclude-standard -z | xargs -0 --no-run-if-empty etckeeper vcs rm --cached --
args:
executable: 'bash'
register: etckeeper__register_git_rm_cached_ignored_files
Expand Down

0 comments on commit 6396bf0

Please sign in to comment.