diff --git a/defaults/main.yml b/defaults/main.yml index 29d21df..ca596cb 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -22,3 +22,4 @@ nomad_host_networks: # interface: # reserved_ports: nomad_allow_privileged: False +nomad_plugins_podman: False diff --git a/templates/config.hcl.j2 b/templates/config.hcl.j2 index 766bad9..a95c0d9 100644 --- a/templates/config.hcl.j2 +++ b/templates/config.hcl.j2 @@ -44,6 +44,15 @@ plugin "docker"{ allow_privileged = {{ nomad_allow_privileged|lower }} } } +{% if 'nomad_plugins_podman' %} +plugin "nomad-driver-podman" { + config { + volumes { + enabled = true + } + } +} +{% endif %} consul { address = "127.0.0.1:8500"