This website works better with JavaScript.
首頁
探索
說明
登入
overmind
/
matrix-docker-ansible-deploy
镜像来自
https://github.com/spantaleev/matrix-docker-ansible-deploy
關註
1
收藏
0
複製
0
程式碼
問題管理
0
版本發佈
0
Wiki
Activity
瀏覽代碼
Auto-delete old matrix scripts from /usr/local/bin
pull/2304/head
Slavi Pantaleev
3 年之前
父節點
d1b2fd50be
當前提交
3d1ea3e79e
共有
2 個文件被更改
,包括
20 次插入
和
0 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+14
-0
roles/custom/matrix_playbook_migration/tasks/cleanup_usr_local_bin.yml
+6
-0
roles/custom/matrix_playbook_migration/tasks/main.yml
+ 14
- 0
roles/custom/matrix_playbook_migration/tasks/cleanup_usr_local_bin.yml
查看文件
@@ -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 }}"
+ 6
- 0
roles/custom/matrix_playbook_migration/tasks/main.yml
查看文件
@@ -5,3 +5,9 @@
tags:
- setup-all
- install-all
- block:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/cleanup_usr_local_bin.yml"
tags:
- setup-all
- install-all
Write
Preview
Loading…
取消
儲存