1
0
forked from HPC/HPCplaybooks

Added role for jwilder nginx proxy.

This is useful when you want to handle ssl or when you want to proxy
multiple containers on a single host.
This commit is contained in:
Egon Rijpkema
2018-02-13 10:07:24 +01:00
parent 4b91b61b66
commit 593082f710
4 changed files with 67 additions and 0 deletions

25
roles/docker/main.yml Normal file
View File

@ -0,0 +1,25 @@
---
# Install Docker. Centos needs te be added.
- apt_key:
id: 58118E89F3A912897C070ADBF76221572C52609D
keyserver: hkp://p80.pool.sks-keyservers.net:80
state: present
when: ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'xenial'
- apt_repository:
repo: deb https://apt.dockerproject.org/repo ubuntu-xenial main
update_cache: yes
when: ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'xenial'
- name: install docker
apt: pkg={{ item }} state=latest
with_items:
- docker-engine
- python-docker
when: ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'xenial'
- name: make sure service is started
systemd:
name: docker.service
state: started