mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
merge file find and remove tasks in always block
This commit is contained in:
committed by
Dan Christian Bogos
parent
718ab2811d
commit
f6976677b6
@@ -235,20 +235,14 @@
|
||||
path: /var/packages/debian/incoming
|
||||
state: absent
|
||||
|
||||
- name: Check for leftover package files
|
||||
ansible.builtin.find:
|
||||
paths: "/home/{{ user }}/go/src/github.com/cgrates"
|
||||
patterns:
|
||||
- cgrates_*
|
||||
- cgrates-dbgsym_*
|
||||
file_type: file
|
||||
register: leftover_files
|
||||
|
||||
- name: Remove leftover package files
|
||||
ansible.builtin.file:
|
||||
path: "{{ item.path }}"
|
||||
path: "{{ item }}"
|
||||
state: absent
|
||||
with_items: "{{ leftover_files.files }}"
|
||||
with_fileglob:
|
||||
- "/home/{{ user }}/go/src/github.com/cgrates/cgrates_*"
|
||||
- "/home/{{ user }}/go/src/github.com/cgrates/cgrates-dbgsym_*"
|
||||
|
||||
|
||||
- hosts: pkg
|
||||
vars:
|
||||
|
||||
Reference in New Issue
Block a user