muawiakh f2e1b4ac80 Automation for single node deployment for quickstart
- Change consists of two deployment models:
  - Using Vagrant(single node, with/without docker)
  - Using Ansible(single node, with/without docker)
- Updated quickstart documentation.
- Some WIP comments, which will be addressed later. Depending on the
  requirements.
2017-09-14 14:00:13 +02:00

40 lines
781 B
YAML

---
- include: debian.yml
when: distribution_name == "debian" or distribution_name == "ubuntu"
- include: centos.yml
when: distribution_name == "centos" or distribution_name == "red hat enterprise linux"
- include: fedora.yml
when: distribution_name == "fedora"
- name: Create Docker group
group:
name: docker
state: present
register: group_result
tags: [docker]
- name: Add USER to docker group
user:
append: yes
name: "{{ item }}"
state: present
group: docker
with_items:
- vagrant
- "{{ distribution_name }}"
tags: [docker]
- name: Start docker service
systemd:
name: docker
enabled: yes
state: started
tags: [docker]
- name: Install docker-py
pip:
name: docker-py
state: present
tags: [docker]