mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
pkgng: add cached=yes test
Changed idempotency test, because this covers both.
This commit is contained in:
parent
d54f84f227
commit
c38eeeda0a
1 changed files with 5 additions and 3 deletions
|
@ -26,10 +26,11 @@
|
|||
check_mode: yes
|
||||
register: pkgng_example1_checkmode
|
||||
|
||||
- name: Install zsh (idempotent)
|
||||
- name: Install zsh (idempotent, cached)
|
||||
pkgng:
|
||||
name: zsh
|
||||
register: pkgng_example1_idempotent
|
||||
cached: yes
|
||||
register: pkgng_example1_idempotent_cached
|
||||
|
||||
- name: Verify zsh binary is present
|
||||
stat:
|
||||
|
@ -45,7 +46,8 @@
|
|||
- not pkgng_example1_stat_before.stat.exists
|
||||
- pkgng_example1.changed
|
||||
- pkgng_example1_checkmode.changed
|
||||
- not pkgng_example1_idempotent.changed
|
||||
- not pkgng_example1_idempotent_cached.changed
|
||||
- not pkgng_example1_idempotent_cached.stdout is match("Updating \w+ repository catalogue\.\.\.")
|
||||
- pkgng_example1_stat_after.stat.exists
|
||||
- pkgng_example1_stat_after.stat.executable
|
||||
|
||||
|
|
Loading…
Reference in a new issue