The fedora.linux_system_roles.podman role has a nice feature to use file_content. This removes the need to define a template in the /playbooks directory. IMHO that looks a bit messy to put files in the /playbooks dir (or wherever your playbook is launched it looks for the template path). Having a file_content option would make it more dynamic and easier to override as well. Or am I missing something from the systemd role docs? I could not find a way to define a unit like I can for Podman Quadlets. Of course template_src should still be there, for those who would like to use actual files.
podman_quadlet_specs:
- name: quadlet-demo
type: network
file_content: |
[Network]
Subnet=192.168.30.0/24
Gateway=192.168.30.1
Label=app=wordpress
- file_src: quadlet-demo-mysql.volume
- template_src: quadlet-demo-mysql.container.j2
- file_src: envoy-proxy-configmap.yml
- file_src: quadlet-demo.yml
- file_src: quadlet-demo.kube
activate_systemd_unit: true
The fedora.linux_system_roles.podman role has a nice feature to use
file_content. This removes the need to define a template in the/playbooksdirectory. IMHO that looks a bit messy to put files in the/playbooksdir (or wherever your playbook is launched it looks for the template path). Having afile_contentoption would make it more dynamic and easier to override as well. Or am I missing something from thesystemdrole docs? I could not find a way to define a unit like I can for Podman Quadlets. Of coursetemplate_srcshould still be there, for those who would like to use actual files.