Install apt_key only if deploy_state = present
This commit is contained in:
parent
63ccf65ef1
commit
8c02772272
|
@ -1,3 +1,9 @@
|
||||||
|
## v1.X.Y
|
||||||
|
|
||||||
|
### Enhancements
|
||||||
|
|
||||||
|
* Install apt_key only if deploy_state = present.
|
||||||
|
|
||||||
## v1.1.0
|
## v1.1.0
|
||||||
|
|
||||||
### Enhancements
|
### Enhancements
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
until: openmanage__register_repositories is success
|
until: openmanage__register_repositories is success
|
||||||
|
|
||||||
## Add repository key
|
## Add repository key
|
||||||
|
### Don't remove the APT key, cause differents repos can have the same key
|
||||||
- name: Add OpenManage repo key
|
- name: Add OpenManage repo key
|
||||||
apt_key:
|
apt_key:
|
||||||
url: '{{ item.key_url | d(omit) }}'
|
url: '{{ item.key_url | d(omit) }}'
|
||||||
|
@ -28,6 +29,7 @@
|
||||||
- '{{ openmanage__repositories }}'
|
- '{{ openmanage__repositories }}'
|
||||||
register: openmanage__register_key
|
register: openmanage__register_key
|
||||||
until: openmanage__register_key is success
|
until: openmanage__register_key is success
|
||||||
|
when: (openmanage__deploy_state == "present")
|
||||||
|
|
||||||
## Update cache
|
## Update cache
|
||||||
- name: Update APT cache
|
- name: Update APT cache
|
||||||
|
|
Loading…
Reference in New Issue