このサイトはJavaScriptを使用しています
ホーム
エクスプローラー
ヘルプ
サインイン
overmind
/
matrix-docker-ansible-deploy
ミラー元
https://github.com/spantaleev/matrix-docker-ansible-deploy
ウォッチ
1
スター
0
フォーク
0
コード
課題
0
リリース
0
Wiki
アクティビティ
ソースを参照
Auto-delete old matrix scripts from /usr/local/bin
pull/2304/head
Slavi Pantaleev
3年前
親
d1b2fd50be
コミット
3d1ea3e79e
2個のファイルの変更
、
20行の追加
、
0行の削除
分割表示
差分オプション
統計情報を表示
Patchファイルをダウンロード
Diffファイルをダウンロード
+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
書き込み
プレビュー
読み込み中…
キャンセル
保存