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 @@ ...@@ -7,7 +7,6 @@
- name: nodejs - name: nodejs
vars: vars:
nodejs_version: 10 nodejs_version: 10
- name: docker
tasks: tasks:
- name: apt - name: apt
apt: apt:
...@@ -51,7 +50,12 @@ ...@@ -51,7 +50,12 @@
synchronize: synchronize:
src: '{{ cert_path }}/' src: '{{ cert_path }}/'
dest: /srv/certs dest: /srv/certs
delete: true delete: yes
copy_links: yes
verify_host: no
recursive: yes
checksum: yes
archive: no
notify: launch notify: launch
handlers: handlers:
- name: launch - 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