From 0879ca8f47c7638958ff5051a07c6ea7c0718595 Mon Sep 17 00:00:00 2001 From: vincent Date: Tue, 10 May 2022 08:28:04 +0200 Subject: [PATCH] add allow privileged option --- defaults/main.yml | 1 + templates/config.hcl.j2 | 1 + 2 files changed, 2 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index edf8405..29d21df 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -21,3 +21,4 @@ nomad_host_networks: # cidr: # interface: # reserved_ports: +nomad_allow_privileged: False diff --git a/templates/config.hcl.j2 b/templates/config.hcl.j2 index d6788c3..3fccbce 100644 --- a/templates/config.hcl.j2 +++ b/templates/config.hcl.j2 @@ -41,6 +41,7 @@ plugin "docker"{ enabled = true selinuxlabel = "z" } + allow_privileged = {{ nomad_allow_privileged|lower }} } }