diff --git a/build/packer/ansible/roles/ami-ovf/tasks/main.yml b/build/packer/ansible/roles/ami-ovf/tasks/main.yml index fa8250bb53..35b0644261 100644 --- a/build/packer/ansible/roles/ami-ovf/tasks/main.yml +++ b/build/packer/ansible/roles/ami-ovf/tasks/main.yml @@ -1,11 +1,4 @@ --- -- name: Update podman.conf - lineinfile: - path: /usr/lib/tmpfiles.d/podman.conf - regexp: '^x /tmp/storage-run-\*' - line: 'R! /tmp/storage-run-*' - backrefs: yes - - name: PMM | Delete ec2-user EL9 shell: cd /tmp; nohup sh -c "trap 'userdel -r ec2-user' EXIT; sleep 600" /dev/null 2>&1 & when: diff --git a/build/packer/ansible/roles/podman-setup/tasks/main.yml b/build/packer/ansible/roles/podman-setup/tasks/main.yml index b7e9bf21fe..3cedef6460 100644 --- a/build/packer/ansible/roles/podman-setup/tasks/main.yml +++ b/build/packer/ansible/roles/podman-setup/tasks/main.yml @@ -24,6 +24,14 @@ policy: targeted state: permissive +- name: Update podman.conf for ami and ovf + lineinfile: + path: /usr/lib/tmpfiles.d/podman.conf + regexp: '^x /tmp/storage-run-\*' + line: 'R! /tmp/storage-run-*' + backrefs: yes + when: pmm_distribution_method in ['ovf', 'ami'] + - name: Create a volume on the host command: podman volume create pmm-data become: true