Added getfile ansible playbook

This commit is contained in:
Greg Szabo 2017-09-19 13:18:22 -04:00
parent 6848f8b407
commit 8f657f8862
2 changed files with 15 additions and 0 deletions

9
ansible/getfile.yml Normal file
View File

@ -0,0 +1,9 @@
---
#variable "service" is required
#variable "source" is required
- hosts: "{{ lookup('env','TF_VAR_TESTNET_NAME') }}:tag_Environment_{{ lookup('env','TF_VAR_TESTNET_NAME') | regex_replace('-','_') }}"
roles:
- getfile

View File

@ -0,0 +1,6 @@
---
- name: Get file from node
fetch: "dest={{ destination | default('.') }}/{{ source | basename }} flat=yes src='{{source}}'"
run_once: yes