blob: 1fe6474542ecf8b548c6c9a326ce206fc5fa48ba [file] [log] [blame]
Matteo Scandolo48d3d2d2017-08-08 13:05:27 -07001
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16
A R Karthick6d98a592016-08-24 15:16:46 -070017---
18- hosts: localhost
19 tasks:
20 - name: Archive cord tester files
21 local_action: shell tar -cvzf /tmp/cord-tester.tar.gz ../cord-tester --exclude=.git
22
23- hosts: all
24 tasks:
25 - name: Unarchive cord tester files
26 unarchive:
27 src=/tmp/cord-tester.tar.gz
28 dest=/home/{{ ansible_user }}
29 owner={{ ansible_user }}
30 group={{ ansible_user }}
31
32 - name: Cleanup remote archive files
33 file:
34 path=/home/{{ ansible_user }}/.ansible state=absent
35
36- hosts: localhost
37 tasks:
38 - name: Cleanup local archive files
39 file:
40 path=/tmp/cord-tester.tar.gz state=absent
41
42- name: Run prerequisites on head node
43 hosts: all
44 roles:
45 - prereq