with_fileglob

This commit is contained in:
2025-07-23 20:31:51 +02:00
parent 0be03e0bc8
commit 33b73344ef
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
- name: "Beispiel 1: Alle .conf Dateien in /etc auflisten"
debug:
msg: "Gefundene Konfigurationsdatei: {{ item }}"
with_fileglob:
- /etc/*.conf

8
with_fileglob.yml Normal file
View File

@@ -0,0 +1,8 @@
- hosts: "{{ target }}"
vars_files:
- loop_files.yml
gather_facts: false
remote_user: pi
roles:
- with_fileglob