Skip to content

Instantly share code, notes, and snippets.

@lanky
Created September 21, 2016 11:33
Show Gist options
  • Save lanky/0dcd1335f5ad77cb4c1a86e7b0caec37 to your computer and use it in GitHub Desktop.
Save lanky/0dcd1335f5ad77cb4c1a86e7b0caec37 to your computer and use it in GitHub Desktop.
---
- name: find stuff
hosts: localhost
tasks:
- find:
paths:
- /etc/pam.d
file_type: file
patterns:
- system*
register: pamfiles
- debug:
msg: "name: {{ item.path }}"
with_items: "{{ pamfiles.files }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment