forked from jnunyez/kindk8s-open5gs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook.yml
40 lines (34 loc) · 852 Bytes
/
playbook.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
---
- 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 and run `docker-compose up`
docker_compose:
project_src: pcloud
build: yes
register: output
- debug:
var: output
- assert:
that:
- "mongodb.open5gs_mongodb.state.running"
- "webui.open5gs_webui.state.running"
- "epc.open5gs_epc.state.running"
- "mongodbloader.open5gs_dbloader.state.running"