Commit fdaf5260 authored by nanahira's avatar nanahira

add docker server utility

parent dc55571c
---
- hosts: docker
remote_user: root
tasks:
- name: directory
file:
path: '{{path}}'
state: directory
- name: docker-compose file
template:
src: 'files/docker-compose/{{ project_name }}/.yml.j2'
dest: '{{path}}/docker-compose.yml'
- name: data
synchronize:
src: 'files/docker-compose/{{ project_name }}/'
dest: '{{path}}/data'
delete: yes
- name: docker-compose up -d
docker_compose:
project_src: '{{path}}'
remove_orphans: true
......@@ -7,7 +7,6 @@
- name: nodejs
vars:
nodejs_version: 10
- name: docker
tasks:
- name: apt
apt:
......@@ -51,7 +50,12 @@
synchronize:
src: '{{ cert_path }}/'
dest: /srv/certs
delete: true
delete: yes
copy_links: yes
verify_host: no
recursive: yes
checksum: yes
archive: no
notify: launch
handlers:
- name: launch
......
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