15 lines
603 B
YAML
15 lines
603 B
YAML
---
|
|
- name: Set variables for use by other roles
|
|
ansible.builtin.set_fact:
|
|
image_created_images: "{{ image_created_images | default([]) + [image_name] }}"
|
|
|
|
- name: Create container image service {{ image_name }}
|
|
containers.podman.podman_image:
|
|
name: "{{ image_name }}"
|
|
username: "{{ image_creds.username if image_creds.username | length > 0 else omit }}"
|
|
password: "{{ image_creds.password if image_creds.password | length > 0 else omit }}"
|
|
state: quadlet
|
|
quadlet_filename: "{{ image_name | replace('/', '_') }}"
|
|
quadlet_file_mode: "0600"
|
|
notify: Reload systemd daemon
|