This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.yml
76 lines (64 loc) · 2.15 KB
/
setup.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2021-2022, Intel Corporation
#
---
- hosts: utility[0]
pre_tasks:
- name: "setup | Load playbook variables"
include_vars: "vars/vars.yml"
- name: "setup | Load proxy specific playbook variables"
include_vars: "vars/proxy_vars.yml"
tasks:
- name: "setup | Install required python packages"
pip:
name: "{{ python_packages }}"
become: yes
environment:
http_proxy: "{{ proxy }}"
https_proxy: "{{ proxy }}"
no_proxy: "{{ no_proxy }}"
- name: "setup | Install required Ansible collections"
shell: "ansible-galaxy collection install -r {{ playbook_dir }}/collection_requirements.yml"
environment:
http_proxy: "{{ proxy }}"
https_proxy: "{{ proxy }}"
no_proxy: "{{ no_proxy }}"
- hosts: computes
pre_tasks:
- name: "setup | Load playbook variables"
include_vars: "vars/vars.yml"
- name: "setup | Load emon specific playbook variables"
include_vars: "vars/emon_vars.yml"
- name: "setup | Load proxy specific playbook variables"
include_vars: "vars/proxy_vars.yml"
- name: "setup | Install required system packages"
package:
name: "{{ system_packages }}"
state: present
environment:
http_proxy: "{{ proxy }}"
https_proxy: "{{ proxy }}"
no_proxy: "{{ no_proxy }}"
- name: "setup | Copy kmemdax systemd unit files"
copy:
src: "{{ item }}"
dest: "/etc/systemd/system/"
with_fileglob:
- "{{ playbook_dir }}/../systemd_unit/dax*"
become: yes
- name: :"setup | Install emon"
block:
- name: "setup | Extract tarball with sep+emon"
unarchive:
src: "{{ sep_emon_tarball_sourcedir }}/{{ sep_emon_version }}.tar.gz"
dest: "/tmp"
become: true
become_user: root
- name: "setup | Install sep modules"
shell: |
cd /tmp/{{ sep_emon_version }}
./sep-installer.sh -ni -i --accept-license
become: true
become_user: root
when: sep_emon_tarball_sourcedir | bool
# vi:et:sw=2 ts=2 sts=2 ft=ansible