Skip to content

Instantly share code, notes, and snippets.

@gvych
Last active May 27, 2018 07:43
Show Gist options
  • Select an option

  • Save gvych/f654731627a529f130c49ab7787ae6f0 to your computer and use it in GitHub Desktop.

Select an option

Save gvych/f654731627a529f130c49ab7787ae6f0 to your computer and use it in GitHub Desktop.
Ansible html directory listing parsing
- set_fact:
files_list: >
{{ remote_site_uri.content |
regex_findall('<a href=\"(.*)\">') |
difference(['../'])
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment