From 5823f1f29845d913abf0e722a1e6ff294c6dbd2b Mon Sep 17 00:00:00 2001 From: Dan Arnfield Date: Wed, 7 Dec 2022 13:26:02 -0600 Subject: [PATCH] Only delete playbook scripts from /usr/local/bin --- .../tasks/cleanup_usr_local_bin.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/roles/custom/matrix_playbook_migration/tasks/cleanup_usr_local_bin.yml b/roles/custom/matrix_playbook_migration/tasks/cleanup_usr_local_bin.yml index e7abd471..586b5c47 100644 --- a/roles/custom/matrix_playbook_migration/tasks/cleanup_usr_local_bin.yml +++ b/roles/custom/matrix_playbook_migration/tasks/cleanup_usr_local_bin.yml @@ -3,8 +3,20 @@ - name: Find leftover matrix scripts in /usr/local/bin ansible.builtin.find: path: "/usr/local/bin" - patterns: "^matrix-.*" - use_regex: true + patterns: + - matrix-change-user-admin-status + - matrix-dendrite-create-account + - matrix-make-user-admin + - matrix-postgres-cli + - matrix-postgres-cli-non-interactive + - matrix-postgres-update-user-password-hash + - matrix-remove-all + - matrix-ssl-certificates-renew + - matrix-ssl-lets-encrypt-certificates-renew + - matrix-synapse-register-user + - matrix-synapse-s3-storage-provider-migrate + - matrix-synapse-s3-storage-provider-shell + - matrix-synapse-worker-write-pid register: matrix_usr_local_bin_files_result - name: Ensure /usr/local/bin does not contain matrix scripts