mirror of
https://github.com/containers/ansible-podman-collections.git
synced 2026-03-22 02:29:08 +00:00
Fix idempotency for systemd keyword (#937)
Fix #936 Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
This commit is contained in:
parent
ac5da409fe
commit
11cc00e6ca
2 changed files with 38 additions and 0 deletions
|
|
@ -549,6 +549,42 @@
|
|||
that:
|
||||
- test37 is changed
|
||||
|
||||
- name: Run container with systemd
|
||||
containers.podman.podman_container:
|
||||
executable: "{{ test_executable | default('podman') }}"
|
||||
image: "{{ idem_image }}"
|
||||
name: idempotency
|
||||
state: present
|
||||
systemd: false
|
||||
|
||||
- name: Run container with same systemd
|
||||
containers.podman.podman_container:
|
||||
executable: "{{ test_executable | default('podman') }}"
|
||||
image: "{{ idem_image }}"
|
||||
name: idempotency
|
||||
state: present
|
||||
systemd: false
|
||||
register: test38
|
||||
|
||||
- name: Check container with same systemd
|
||||
assert:
|
||||
that:
|
||||
- test38 is not changed
|
||||
|
||||
- name: Run container with different systemd
|
||||
containers.podman.podman_container:
|
||||
executable: "{{ test_executable | default('podman') }}"
|
||||
image: "{{ idem_image }}"
|
||||
name: idempotency
|
||||
state: present
|
||||
systemd: always
|
||||
register: test39
|
||||
|
||||
- name: Check container with different systemd
|
||||
assert:
|
||||
that:
|
||||
- test39 is changed
|
||||
|
||||
- name: Remove dependent test container
|
||||
containers.podman.podman_container:
|
||||
executable: "{{ test_executable | default('podman') }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue