Install apt_key only if deploy_state = present

This commit is contained in:
Jeremy Gardais 2019-07-29 14:24:56 +02:00
parent 63ccf65ef1
commit 8c02772272
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,9 @@
## v1.X.Y
### Enhancements
* Install apt_key only if deploy_state = present.
## v1.1.0
### Enhancements

View File

@ -18,6 +18,7 @@
until: openmanage__register_repositories is success
## Add repository key
### Don't remove the APT key, cause differents repos can have the same key
- name: Add OpenManage repo key
apt_key:
url: '{{ item.key_url | d(omit) }}'
@ -28,6 +29,7 @@
- '{{ openmanage__repositories }}'
register: openmanage__register_key
until: openmanage__register_key is success
when: (openmanage__deploy_state == "present")
## Update cache
- name: Update APT cache