Molecule Testing, Idempotence - Enable linger, expect file via creates:
Gitea Actions - molecule test work / Explore-molecule-Gitea-Action (push) Failing after 1m12s

This commit is contained in:
Mike Holloway committed 2025-01-04 21:42:50 -05:00
1 parent b414050a27
commit b9c8a2e50a
1 file changed
+3 -3
+3 -3
View File
@@ -37,8 +37,8 @@
line: "session optional pam_systemd.so" line: "session optional pam_systemd.so"
- name: Enable remote login session linger - name: Enable remote login session linger
command: command: "loginctl enable-linger {{ item.name }}"
cmd: loginctl enable-linger "{{ item.name }}" creates: "/var/lib/systemd/linger/{{ item.name }}"
with_items: with_items:
- "{{ service_users }}" - "{{ service_users }}"
@@ -62,7 +62,7 @@
with_items: with_items:
- "{{ service_users }}" - "{{ service_users }}"
- name: Enable podman.socket for {{ service_users[0] }} - name: Enable podman.socket for service_users
systemd: systemd:
name: podman.socket name: podman.socket
enabled: true enabled: true