utils: create TASK_LOG_DIR if it doesn't exist
[yardstick.git] / ansible / roles / install_spec_cpu2006 / tasks / main.yaml
1 ---
2 ##############################################################################
3 # Copyright (c) 2017 Huawei Technologies Co.,Ltd and others.
4 #
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
10
11 - name: upload SPEC CPU2006 ISO
12   copy:
13     src: /home/opnfv/repos/yardstick/yardstick/resources/cpu2006-1.2.iso
14     dest: ~/cpu2006-1.2.iso
15   become: true
16
17 - name: install SPEC CPU2006
18   shell:
19     mount -t iso9660 -o ro,exec ~/cpu2006-1.2.iso /mnt;
20     cd /mnt;
21     ./install.sh -fd /usr/cpu2006;
22   args:
23       executable: /bin/bash
24   become: true