Skip to content

Commit

Permalink
Try separate blocks to ensure both get deleted.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Skinner committed Jul 11, 2023
1 parent 9685998 commit 995016a
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -661,12 +661,16 @@
- variant == "internal-buildserver"
- not ansible_is_chroot


# Delete backup files that serve no purpose in production instances.
# Various OS utilities change the backup file permissions to the
# permission of their "real" files so we have to change them too.

- file:
path: "{{ item }}"
state: absent
mode: '600'
with_items:
- /etc/passwd
- /etc/passwd-
- /etc/shadow-
- /etc/shadow

0 comments on commit 995016a

Please sign in to comment.