Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/pacman/tasks/update_cache.yml

raw
1 ---
2 # Copyright (c) Ansible Project
3 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
4 # SPDX-License-Identifier: GPL-3.0-or-later
5
6 - name: Make sure package cache is updated
7 pacman:
8 update_cache: true
9
10 - name: Update package cache again (should not be changed)
11 pacman:
12 update_cache: true
13 register: update_cache_idem
14
15 - name: Update package cache again with force=true (should be changed)
16 pacman:
17 update_cache: true
18 force: true
19 register: update_cache_force
20
21 - name: Check conditions
22 assert:
23 that:
24 - update_cache_idem is not changed
25 - update_cache_idem.cache_updated == false
26 - update_cache_force is changed
27 - update_cache_force.cache_updated == true