--- - name: Ensure container image '{{ element_container_image }}' is {{ element_state }} locally containers.podman.podman_image: name: "{{ element_container_image }}" state: "{{ element_state }}" pull: "{{ element_container_image_source == 'pull' }}" force: "{{ element_container_image_force_source }}" - name: Ensure container '{{ element_container_name }}' is {{ element_state }} containers.podman.podman_container: name: "{{ element_container_name }}" image: "{{ element_container_image }}" state: "{{ (element_state == 'present') | ternary('started', 'absent') }}" env: "{{ element_container_env | default(omit) }}" user: "{{ element_container_user | default(omit) }}" ports: "{{ element_container_ports | default(omit) }}" labels: "{{ element_container_labels | default(omit) }}" volumes: "{{ element_container_full_volumes }}" network: "{{ element_container_networks | default(omit) }}" hostname: "{{ element_container_hostname | default(omit) }}" etc_hosts: "{{ element_container_etc_hosts | default(omit) }}" restart_policy: "{{ element_container_restart_policy }}"