Browse Source

with_fileglob

master
Olli Graf 1 day ago
parent
commit
33b73344ef
  1. 7
      roles/with_fileglob/tasks/main.yml
  2. 8
      with_fileglob.yml

7
roles/with_fileglob/tasks/main.yml

@ -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

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