Commit 5712cd84 authored by nanahira's avatar nanahira

specific for frpc

parent d3064773
......@@ -37,6 +37,17 @@
group: '{{ ansible_user_id }}'
follow: yes
notify: handle
- name: templates for frpc
become: true
with_items: '{{ frpc_instances }}'
template:
src: 'files/services/{{ service_name }}/templates/frpc.ini.j2'
dest: '{{ service_path }}/templates/frpc_{{ item.name }}.ini'
owner: '{{ ansible_user_id }}'
group: '{{ ansible_user_id }}'
follow: yes
when: service_name == "frpc"
notify: handle_frpc
- name: docker-compose up -d
docker_compose:
project_src: '{{ service_path }}'
......@@ -52,3 +63,13 @@
path: '{{ service_path }}'
services: '{{ handle_services }}'
when: handle_services
- name: handle_frpc
include_tasks: 'handlers/docker.yaml'
vars:
handler:
type: docker
path: '{{ service_path }}'
services:
- '{{ item.name }}'
with_items: '{{ frpc_instances }}'
when: service_name == "frpc"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment