Ansible Module find

From NovaOrdis Knowledge Base
Revision as of 00:58, 23 January 2021 by Ovidiu (talk | contribs) (Created page with "=Internal= * Ansible Concepts =Example= <syntaxhighlight lang='yaml'> - name: Find JetBrains applications find: paths: "{{ ansible_env.HOME }}/Library/Application...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Example

- name: Find JetBrains applications
  find:
    paths: "{{ ansible_env.HOME }}/Library/Application Support/JetBrains/Toolbox/apps"
    recurse: yes
    patterns: '.history.json'
    hidden: yes
    file_type: file
    depth: 5
  register: intellij_apps