forked from jnunyez/kindk8s-open5gs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
playbookdisskube.yml
43 lines (37 loc) · 948 Bytes
/
playbookdisskube.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
---
- hosts: all
become: true
tasks:
- name: Install docker.io
apt:
name: "docker.io"
state: latest
update_cache: yes
- name: adding existing user '{{ user }}' to group docker
user:
name: '{{ ansible_user }}'
groups: docker
append: yes
- name: enable docker service
systemd:
name: docker
state: started
enabled: yes
- name: Install docker-compose
apt: name="docker-compose" state=present
- name: build
docker_compose:
project_src: dissag-cfg/k8s_cfg_cpf/
files: docker-compose-diss.yml
build: yes
state: "present"
register: output
- debug:
var: output
- assert:
that:
- "mongodb.open5gs_mongodb.state.running"
- "webui.open5gs_webui.state.running"
- "mme.open5gs_mme.state.running"
- "hss.open5gs_hss.state.running"
- "mongodbloader.open5gs_dbprovisioner.state.running"