From e4c804eca792ab1e8fa981b0ec7f6603c82a2833 Mon Sep 17 00:00:00 2001 From: spmfox Date: Sun, 12 Nov 2023 20:49:07 -0500 Subject: cpanel dnsonly messes with /tmp, configuring podman to use /var/containers/tmp for its tmpdir --- host.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'host.yml') diff --git a/host.yml b/host.yml index db28e96..effa8d5 100644 --- a/host.yml +++ b/host.yml @@ -58,6 +58,21 @@ name: "firewalld" state: stopped enabled: false + + - name: Create new tmp directory for podman + ansible.builtin.file: + path: /var/containers/tmp + owner: containers + group: containers + state: directory + + - name: Configure podman to use new tmp directory + ansible.builtin.blockinfile: + path: /etc/containers/containers.conf + create: true + block: | + [engine] + env = ["TMPDIR=/var/containers/tmp"] tags: - never - cpanel-dnsonly -- cgit