Change the way to test if update_cache is needed
This commit is contained in:
parent
e36200e6d9
commit
bcd75dd67d
|
@ -29,10 +29,12 @@
|
||||||
## Update cache
|
## Update cache
|
||||||
- name: Update APT cache
|
- name: Update APT cache
|
||||||
apt:
|
apt:
|
||||||
update_cache: True
|
update_cache: '{{ True
|
||||||
when: (openmanage__deploy_state == "present") and
|
if (openmanage__register_key is changed or
|
||||||
(openmanage__register_repositories.changed or
|
openmanage__register_repositories is changed)
|
||||||
openmanage__register_key.changed)
|
else
|
||||||
|
False }}'
|
||||||
|
when: (openmanage__deploy_state == "present")
|
||||||
|
|
||||||
# Manage packages [[[1
|
# Manage packages [[[1
|
||||||
## Manage depencies packages
|
## Manage depencies packages
|
||||||
|
|
Loading…
Reference in New Issue