copy docker-compose.yml
This commit is contained in:
parent
4563cc51c4
commit
e9701f527c
3 changed files with 19 additions and 0 deletions
|
@ -4,3 +4,4 @@
|
|||
- hosts: test
|
||||
roles:
|
||||
- install_docker
|
||||
- install_keycloak
|
||||
|
|
8
roles/install_keycloak/tasks/main.yml
Normal file
8
roles/install_keycloak/tasks/main.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
- name: Copy docker-compose.yml
|
||||
template:
|
||||
src: docker-compose.yml.j2
|
||||
dest: /var/local/keycloak/docker-compose.yml
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: staff
|
10
roles/install_keycloak/templates/docker-compose.yml.j2
Normal file
10
roles/install_keycloak/templates/docker-compose.yml.j2
Normal file
|
@ -0,0 +1,10 @@
|
|||
# {{ ansible_managed }}
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
server:
|
||||
image: jboss/keycloak
|
||||
container_name: keycloak
|
||||
restart: always
|
||||
ports:
|
||||
- "80:8080"
|
Loading…
Reference in a new issue