Jelajahi Sumber

add options for compose version in readme

panda 4 tahun lalu
induk
melakukan
7eb3f3d8ad
2 mengubah file dengan 6 tambahan dan 1 penghapusan
  1. 5 1
      roles/docker/tasks/ubuntu.yml
  2. 1 0
      variables.yml

+ 5 - 1
roles/docker/tasks/ubuntu.yml

@@ -1,3 +1,7 @@
+- name: Include variables                                                            
+  include_vars:
+    file: "../../../variables.yml"
+
 - name: Install docker prerequsistes
   apt:
     pkg:
@@ -24,7 +28,7 @@
 #install compose:
 
 - name: download compose
-  shell: curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
+  shell: curl -L https://github.com/docker/compose/releases/download/{{ compose_ver }}/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
 
 - name: link compose
   shell: chmod +x /usr/local/bin/docker-compose

+ 1 - 0
variables.yml

@@ -2,3 +2,4 @@ users:
   - commonuser
 tinc_vpn: vpn
 hostname: common_hostname
+compose_ver: 1.25.4