mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
apt: fix build-dep idempotency (#38999)
This commit is contained in:
committed by
René Moser
parent
4fc5e89e83
commit
62d2df74b0
@@ -213,3 +213,26 @@
|
||||
with_items:
|
||||
- libcaca-dev
|
||||
- libslang2-dev
|
||||
|
||||
# https://github.com/ansible/ansible/issues/38995
|
||||
- name: build-dep for a package
|
||||
apt:
|
||||
name: tree
|
||||
state: build-dep
|
||||
register: apt_result
|
||||
|
||||
- name: Check the result
|
||||
assert:
|
||||
that:
|
||||
- apt_result is changed
|
||||
|
||||
- name: build-dep for a package (idempotency)
|
||||
apt:
|
||||
name: tree
|
||||
state: build-dep
|
||||
register: apt_result
|
||||
|
||||
- name: Check the result
|
||||
assert:
|
||||
that:
|
||||
- apt_result is not changed
|
||||
|
||||
Reference in New Issue
Block a user