We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d1d84a commit f7a0e93Copy full SHA for f7a0e93
ansible/roles/podman/tasks/config.yml
@@ -44,3 +44,19 @@
44
with_items: "{{ podman_users }}"
45
register: podman_user_info
46
become: yes
47
+
48
+- name: Clear up podman temporary files on startup
49
+ copy:
50
+ content: |
51
+ # {{ ansible_managed }}
52
+ # Delete ephemeral podman files to avoid issues where /tmp is not of type tmpfs and persists across reboots.
53
+ # See tmpfiles.d(5) man page, note "R" specifies recursive removal and "!" marks as happening only on boot.
54
+ #
55
+ # Type Path Mode User Group Age Argument
56
+ R! /tmp/containers-user-*
57
+ R! /tmp/podman-run-*
58
+ dest: /etc/tmpfiles.d/podman-local.conf
59
+ owner: root
60
+ group: root
61
+ mode: 0660
62
+ become: true
0 commit comments