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

52 lines
1.1 KiB
YAML

---
- name: Uninstall older versions of Docker | Debian
apt:
name: "{{ item }}"
state: absent
with_items:
- docker
- docker-engine
- docker.io
when: uninstall_old_version
tags: [docker]
- name: Install dependencies | Debian
apt:
name: "{{ item }}"
state: present
with_items:
- apt-transport-https
- ca-certificates
- curl
- software-properties-common
- python-pip
tags: [docker]
- name: Add APT Key | Debian
apt_key:
url: "{{ apt_key_url }}"
id: "{{ apt_key_fingerprint }}"
state: present
register: add_repository_key
ignore_errors: true
tags: [docker]
- name: Use curl if apt_key fails | Debian
shell: "curl -sSl {{ apt_key_url }} | sudo apt-key add -"
args:
warn: no
when: add_repository_key|failed
tags: [docker]
- name: Add Docker repo and update cache | Debian
apt_repository:
repo: "{{ docker_apt_repo }}"
update_cache: yes
state: present
tags: [docker]
- name: Install Docker | Debian
apt:
name: "{{ docker_pkg }}"
state: present
tags: [docker]