Mentions légales du service

Skip to content
Snippets Groups Projects
Commit a8ddb2b4 authored by MOLANO ORTIZ Fernando's avatar MOLANO ORTIZ Fernando
Browse files

Upload New File

parent 37d117c4
No related branches found
No related tags found
No related merge requests found
- hosts: sniffers
user: gta
#become: yes
#become_user: root
vars:
src_file: "/home/gta/sniffers/scapy-sniffer/capture-*.pcap"
dest_file: "/Users/fmolano/ansible/files/"
cap_file: capture-*
tasks:
- name: find files to copy
find:
paths: "/home/gta/sniffers/scapy-sniffer/"
recurse: no
patterns: "*.pcap"
register: files_to_copy
- name: Copy files
fetch:
src: "{{ item.path }}"
dest: /Users/fmolano/ansible/files/{{ ansible_hostname }}_{{ ansible_date_time.date }}/
flat: yes
with_items: "{{ files_to_copy.files }}"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment