Skip to content
Snippets Groups Projects
Commit 75d19c59 authored by Solmaz's avatar Solmaz
Browse files

docker

parent ef43e537
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,7 @@ ansible_ssh_private_key_file=~/.ssh/intance_key
ansible_user=ubuntu
[frontend-instance]
[frontend-instance:vars]
ansible_ssh_common_args='-o StrictHostKeyChecking=no'
ansible_ssh_private_key_file=~/.ssh/intance_key
......
......@@ -20,11 +20,3 @@
- "5984:5984"
restart_policy: always
- name: Set up frontend application
hosts: frontend-instance
become: true
tasks:
- name: Install Docker
apt:
name: docker.io
state: present
\ No newline at end of file
- name: Set up frontend application
hosts: frontend-instance
become: true
tasks:
- name: Install Docker
apt:
name: docker.io
state: present
\ No newline at end of file
......@@ -11,30 +11,19 @@
- hosts: master-instance
vars_files:
- variable/couchdb_var.yaml
- vars/vars.yaml
gather_facts: true
roles:
- role: common
- role: couch-volumes
- role: docker
- role: git-clone
- role: twiter-api-key
- role: docker-compose
- hosts: slave-instances
vars_files:
- variable/couchdb_var.yaml
- vars/
gather_facts: true
roles:
- role: couch-cluster
- hosts: frontend-instance
gather_facts: true
roles:
- role: common
- role: docker
- role: git-clone
- role: web-app-docker-compose
\ No newline at end of file
volumes:
- device: /dev/vdb
mountpoint:
db_username: admin
db_password: admin
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment