forked from bpfman/bpfman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprovision.yaml
48 lines (41 loc) · 1.24 KB
/
provision.yaml
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
---
- hosts: all
become: true
become_method: sudo
strategy: debug
tasks:
- name: Set Variables
set_fact:
vagrant_user: vagrant
- name: Make directories for bpfman binaries and scripts
shell: |
mkdir -p /home/{{ vagrant_user }}/bpfman/target/debug/
- name: Copy bpfman binary to the remote host
ansible.builtin.copy:
src: ../../target/debug/bpfman
dest: /home/{{ vagrant_user }}/bpfman/target/debug/
owner: "{{ vagrant_user }}"
group: "{{ vagrant_user }}"
mode: "0755"
- name: Copy the scripts directory to the remote host
ansible.builtin.copy:
src: ../../scripts/
dest: /home/{{ vagrant_user }}/bpfman/scripts/
owner: "{{ vagrant_user }}"
group: "{{ vagrant_user }}"
- name: Update OS
package:
name: "*"
state: latest
- name: Enable IPv6
command: sysctl -w net.ipv6.conf.all.disable_ipv6=0
- name: Install packages
package:
name: [openssl, acl]
- name: Change the working directory to bpfman/scripts and run
become: true
shell: |
chmod +x ./scripts/*.sh
./scripts/setup.sh install
args:
chdir: /home/{{ vagrant_user }}/bpfman