[docker] Install docker-compose

This commit is contained in:
Alexandre Iooss 2019-07-25 19:10:50 +02:00
parent 5ee1172861
commit b488007578
No known key found for this signature in database
GPG key ID: 6C79278F3FCDCC02
2 changed files with 17 additions and 1 deletions

View file

@ -25,7 +25,7 @@
until: apt_key_result is succeeded
# Add the repository into source list
- name: Configure unifi repository
- name: Configure docker repository
apt_repository:
repo: "{{ item }}"
state: present
@ -43,3 +43,16 @@
register: apt_result
retries: 3
until: apt_result is succeeded
# Compose need to be updated to use new Docker features
- name: Install Docker Compose
get_url:
url: https://github.com/docker/compose/releases/download/1.24.1/docker-compose-Linux-x86_64
dest: /usr/local/bin/docker-compose
mode: "0755"
- name: Indicate role in motd
template:
src: update-motd.d/05-service.j2
dest: /etc/update-motd.d/05-docker
mode: 0755

View file

@ -0,0 +1,3 @@
#!/bin/sh
# {{ ansible_managed }}
echo "> Les recettes Docker-compose se trouvent dans /var/local/ansible-docker"