blob: addab8ce94e1e07dfdade55f4dda357b907ae9b9 (
plain)
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
|
---
# tasks file for roles/prepare_test
##
# Prepare config
##
- name: Clean directory
ansible.builtin.file:
path: "{{ exec_local_path }}"
state: absent
- name: Create directory
ansible.builtin.file:
path: "{{ exec_local_path }}/vnf-services"
state: directory
mode: 0755
- name: Create env file
ansible.builtin.template:
src: env-os.j2
dest: "{{ exec_local_path }}/env"
mode: "0644"
- name: copy pythonsdk-tests configuration file
ansible.builtin.template:
src: settings.py.j2
dest: "{{ exec_local_path }}/settings.py"
mode: "0644"
- name: create basic_vm configuration file
ansible.builtin.template:
src: basic_vm-service-{{ onap_version }}.yaml.j2
dest: "{{ exec_local_path }}/basic_vm-service.yaml"
mode: "0644"
- name: create basic_vm_macro configuration file
ansible.builtin.template:
src: basic_vm_macro-service-{{ onap_version }}.yaml.j2
dest: "{{ exec_local_path }}/basic_vm_macro-service.yaml"
mode: "0644"
- name: create directories as root
become: yes
ansible.builtin.file:
path: "{{ res_local_path }}/{{ run_tiers }}/{{ run_type }}"
state: directory
mode: 0755
- name: Delete old logs
become: yes
ansible.builtin.file:
state: absent
path: "{{ res_local_path }}/{{ run_tiers }}/{{ run_type }}"
- name: clean onap-vnf docker
community.general.docker_container:
name: "{{ docker_vnf_name }}-{{ run_type }}"
state: absent
|