Browse Source

Added getfile ansible playbook

pull/1943/head
Greg Szabo 7 years ago
parent
commit
8f657f8862
2 changed files with 15 additions and 0 deletions
  1. +9
    -0
      ansible/getfile.yml
  2. +6
    -0
      ansible/roles/getfile/tasks/main.yml

+ 9
- 0
ansible/getfile.yml 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

+ 6
- 0
ansible/roles/getfile/tasks/main.yml View File

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

Loading…
Cancel
Save