Skip to content

Instantly share code, notes, and snippets.

@perlpunk
Last active January 18, 2018 19:44
Show Gist options
  • Select an option

  • Save perlpunk/cd95822f46cce55e7a0bade78809617e to your computer and use it in GitHub Desktop.

Select an option

Save perlpunk/cd95822f46cce55e7a0bade78809617e to your computer and use it in GitHub Desktop.
- name: run a command and save lines
command: ls -l *.yaml
register: files
- name: copy files
copy:
src: "{{ item }}"
dest: /path/{{ item }}
with_items: files.stdout_lines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment