From f50cb98d30aadf9180d5ffbc31a3bc9427ad4ea2 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Tue, 24 May 2022 20:11:07 -0700 Subject: [PATCH] Add docker install --- nomad/setup-cluster.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nomad/setup-cluster.yml b/nomad/setup-cluster.yml index f6d263c..fa54e39 100644 --- a/nomad/setup-cluster.yml +++ b/nomad/setup-cluster.yml @@ -169,6 +169,16 @@ state: mounted fstype: nfs4 +- name: Install Docker + hosts: nomad_instances + become: true + vars: + deb_arch: "{% if ansible_architecture == 'x86_64' %}amd64{% elif ansible_architecture == 'armv7l' %}armhf{% endif %}" + docker_apt_arch: "{{ deb_arch }}" + docker_compose_arch: "{{ (ansible_architecture == 'armv7l') | ternary('armv7', ansible_architecture) }}" + roles: + - geerlingguy.docker + - name: Build Nomad cluster hosts: nomad_instances any_errors_fatal: true