[docker] Install docker-compose
This commit is contained in:
parent
5ee1172861
commit
b488007578
2 changed files with 17 additions and 1 deletions
|
@ -25,7 +25,7 @@
|
||||||
until: apt_key_result is succeeded
|
until: apt_key_result is succeeded
|
||||||
|
|
||||||
# Add the repository into source list
|
# Add the repository into source list
|
||||||
- name: Configure unifi repository
|
- name: Configure docker repository
|
||||||
apt_repository:
|
apt_repository:
|
||||||
repo: "{{ item }}"
|
repo: "{{ item }}"
|
||||||
state: present
|
state: present
|
||||||
|
@ -43,3 +43,16 @@
|
||||||
register: apt_result
|
register: apt_result
|
||||||
retries: 3
|
retries: 3
|
||||||
until: apt_result is succeeded
|
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
|
||||||
|
|
3
roles/docker/templates/update-motd.d/05-service.j2
Executable file
3
roles/docker/templates/update-motd.d/05-service.j2
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
echo "> Les recettes Docker-compose se trouvent dans /var/local/ansible-docker"
|
Loading…
Reference in a new issue