1 # Copyright (c) 2018 Intel Corporation.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 # Arguments needed: map_min_addr_file, yardstick_dir
17 - name: Define variables
19 map_min_addr_file: "/etc/sysctl.d/mmap_min_addr.conf"
21 - name: Remove the kernel minimum virtual address restriction that a process is allowed to mmap
23 dest: "{{ map_min_addr_file }}"
24 content: "vm.mmap_min_addr = 0\n"
26 - name: Config git SSL
32 - name: Install Yardstick requirements (venv)
34 requirements: "{{ yardstick_dir }}/requirements.txt"
35 virtualenv: "{{ yardstick_dir }}/virtualenv"
38 register: pip_installer
39 when: virtual_environment == True
41 - name: Install Yardstick requirements
43 requirements: "{{ yardstick_dir }}/requirements.txt"
46 register: pip_installer
47 when: virtual_environment == False
49 - name: Check install Yardstick requirements
51 jid: "{{ pip_installer.ansible_job_id }}"
53 until: job_result.finished
56 - name: Install Yardstick code (venv)
58 name: "{{ yardstick_dir }}/"
60 virtualenv: "{{ yardstick_dir }}/virtualenv"
61 when: virtual_environment == True
63 - name: Install Yardstick code
65 name: "{{ yardstick_dir }}/"
67 when: virtual_environment == False