with_fileglob
This commit is contained in:
7
roles/with_fileglob/tasks/main.yml
Normal file
7
roles/with_fileglob/tasks/main.yml
Normal 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
8
with_fileglob.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
- hosts: "{{ target }}"
|
||||
vars_files:
|
||||
- loop_files.yml
|
||||
gather_facts: false
|
||||
remote_user: pi
|
||||
roles:
|
||||
- with_fileglob
|
||||
|
Reference in New Issue
Block a user