mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2025-01-27 02:14:56 +01:00
Auto-delete old matrix scripts from /usr/local/bin
This commit is contained in:
parent
d1b2fd50be
commit
3d1ea3e79e
@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Find leftover matrix scripts in /usr/local/bin
|
||||||
|
ansible.builtin.find:
|
||||||
|
path: "/usr/local/bin"
|
||||||
|
patterns: "^matrix-.*"
|
||||||
|
use_regex: true
|
||||||
|
register: matrix_usr_local_bin_files_result
|
||||||
|
|
||||||
|
- name: Ensure /usr/local/bin does not contain matrix scripts
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ item.path }}"
|
||||||
|
state: absent
|
||||||
|
with_items: "{{ matrix_usr_local_bin_files_result.files }}"
|
@ -5,3 +5,9 @@
|
|||||||
tags:
|
tags:
|
||||||
- setup-all
|
- setup-all
|
||||||
- install-all
|
- install-all
|
||||||
|
|
||||||
|
- block:
|
||||||
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/cleanup_usr_local_bin.yml"
|
||||||
|
tags:
|
||||||
|
- setup-all
|
||||||
|
- install-all
|
||||||
|
Loading…
x
Reference in New Issue
Block a user