Deze website werkt beter met JavaScript.
Beginscherm
Verkennen
Help
Inloggen
overmind
/
matrix-docker-ansible-deploy
kopie van
https://github.com/spantaleev/matrix-docker-ansible-deploy
Volgen
1
Ster
0
Vork
0
Code
Kwesties
0
Publicaties
0
Wiki
Activiteit
Bladeren bron
Auto-delete old matrix scripts from /usr/local/bin
pull/2304/head
Slavi Pantaleev
3 jaren geleden
bovenliggende
d1b2fd50be
commit
3d1ea3e79e
2 gewijzigde bestanden
met
toevoegingen van 20
en
0 verwijderingen
Zij-aan-zij weergave
Diff opties
Statistieken weergeven
Download Patch-bestand
Download Diff-bestand
+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
Bestand weergeven
@@ -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
Bestand weergeven
@@ -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
Schrijf
Voorbeeld
Laden…
Annuleren
Opslaan