Skip to content

Commit a757829

Browse files
committed
Only set Policy on non-Debian
This needs Podman 5.6, while Debian ships 5.4. podman-container-tools/podman@439448c
1 parent 44fb62f commit a757829

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/roles/images/tasks/deploy_image.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
quadlet_filename: "{{ images_definition.name }}"
88
quadlet_file_mode: "0644"
99
quadlet_options:
10-
- "Policy=missing"
10+
- "{{ 'Policy=missing' if ansible_facts['os_family'] != 'Debian' else '' }}"
1111
- |
1212
[Service]
1313
Environment=REGISTRY_AUTH_FILE={{ images_registry_auth_file }}

src/roles/images/tasks/pull.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
Policy=always
1010
mode: "0644"
1111
loop: "{{ images_deployed_names | default([]) }}"
12+
when:
13+
- ansible_facts['os_family'] != 'Debian'
1214

1315
- name: Run daemon reload
1416
ansible.builtin.systemd:

0 commit comments

Comments
 (0)