- name: "system : systemd : pod-service update script" ansible.builtin.copy: src: "./system/systemd/pod-service-auto-update" dest: "/usr/local/sbin/pod-service-auto-update" mode: 0755 - name: "system : systemd : pod-service update service" ansible.builtin.copy: src: "./system/systemd/pod-service-auto-update.service" dest: "/etc/systemd/user/pod-service-auto-update.service" mode: 0644 register: services_base_system_pod_service_auto_update_service_file - name: "system : systemd : pod-service update timer" ansible.builtin.copy: src: "./system/systemd/pod-service-auto-update.timer" dest: "/etc/systemd/user/pod-service-auto-update.timer" mode: 0644 register: services_base_system_pod_service_auto_update_timer_file - name: "system : systemd : image prune service" ansible.builtin.copy: src: "./system/systemd/podman-image-prune.service" dest: "/etc/systemd/user/podman-image-prune.service" mode: 0644 register: services_base_system_podman_image_prune_service_file # Include instead of import as otherwise the when clause is always applied which triggers errors if # the above tasks haven't executed. - name: "system : systemd : systemd daemon reload for each service" ansible.builtin.include_role: name: "include" tasks_from: "daemon_reload" when: services_base_system_pod_service_auto_update_service_file.changed or services_base_system_pod_service_auto_update_timer_file.changed or services_base_system_podman_image_prune_service_file.changed