/
droid.yml
30 lines (28 loc) · 960 Bytes
/
droid.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
description: "Install Docker to Ubuntu"
variables:
use_legacy_templating: true
tasks:
-
name: "Copy the docker defaults file to the host"
command: "fs:copy"
arguments:
src: "!{{{ mod_path }}}/assets/etc/default/docker.template"
dest: "/tmp/docker"
-
name: "Copy the docker systemd drop-in file to the host"
command: "fs:copy"
arguments:
src: "!{{{ mod_path }}}/assets/etc/systemd/system/docker.service.d/custom-exec-start.conf.template"
dest: "/tmp/custom-exec-start.conf"
-
name: "Copy the docker installation script to the host"
command: "fs:copy"
arguments:
src: "!{{{ mod_path }}}/assets/install-docker.sh"
dest: "/tmp/install-docker.sh"
-
name: "Execute the docker installation script"
command: "shell:exec"
max_runtime: 330
arguments:
command-line: "/bin/bash /tmp/install-docker.sh"