blob: 5eb1b7d3486cfd2cca3a8a44bc8932e2764ad86f (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
|
---
- name: Add nexus simulation hosts to /etc/hosts
lineinfile:
regexp: "^{{ ansible_default_ipv4.address | regex_escape() }} {{ etc_hosts | join(' ') | regex_escape() }}$"
line: "{{ ansible_default_ipv4.address }} {{ etc_hosts | join(' ') }}"
insertafter: EOF
path: /etc/hosts
unsafe_writes: true
- name: "Create needed dirs for nexus role"
file:
path: "{{ item }}"
state: directory
mode: "u+rw,g+wx,o+rwx"
recurse: true
loop:
- "{{ app_data_path }}/nexus_data"
- "{{ infra_images_path }}"
- "{{ aux_data_path }}"
- name: Download and archive nexus docker image for the nexus role to use
delegate_to: localhost
docker_image:
name: "{{ nexus3_image }}"
archive_path: /tmp/nexus.tar
- name: Download and tag additional (busybox) docker image for the nexus role to populate into
delegate_to: localhost
docker_image:
name: busybox
tag: latest
repository: nexus3.onap.org:10001/busybox
- name: Save busybox image
delegate_to: localhost
docker_image:
name: nexus3.onap.org:10001/busybox
tag: latest
pull: false
archive_path: /tmp/busybox.tar
- name: Download and tag additional (aaionap/haproxy) docker image for the nexus role to populate into nexus
delegate_to: localhost
docker_image:
name: aaionap/haproxy
tag: 1.2.4
repository: nexus3.onap.org:10001/aaionap/haproxy
- name: Save haproxy image
delegate_to: localhost
docker_image:
name: nexus3.onap.org:10001/aaionap/haproxy
tag: 1.2.4
pull: false
archive_path: /tmp/haproxy.tar
- name: Copy nexus image to node
copy:
src: /tmp/nexus.tar
dest: "{{ infra_images_path }}/{{ nexus3_image_tar }}"
- name: Copy busybox image to node
copy:
src: /tmp/busybox.tar
dest: "{{ aux_data_path }}/busybox.tar"
- name: Copy haproxy image to node
copy:
src: /tmp/haproxy.tar
dest: "{{ aux_data_path }}/aaionap-haproxy.tar"
|