Fix E405 Remote package tasks should have a retry
This commit is contained in:
parent
66993cb3cd
commit
713656d0ad
|
@ -1,3 +1,7 @@
|
|||
## v1.0.2
|
||||
|
||||
### Fix
|
||||
* Fix E405 Remote package tasks should have a retry.
|
||||
|
||||
## v1.0.1
|
||||
|
||||
|
|
|
@ -10,12 +10,16 @@
|
|||
state: 'present'
|
||||
with_flattened:
|
||||
- '{{ fusioninventory__agent_depend_packages | to_nice_json }}'
|
||||
register: pkg_dep_result
|
||||
until: pkg_dep_result is success
|
||||
when: fusioninventory__agent_deploy_state == "present"
|
||||
|
||||
# Manage agent package [[[1
|
||||
- name: Ensure fusioninventory-agent package from URL
|
||||
apt:
|
||||
deb: '{{ fusioninventory__agent_package_url }}'
|
||||
register: pkg_agent_url_result
|
||||
until: pkg_agent_url_result is success
|
||||
when: fusioninventory__agent_package_url != ""
|
||||
and fusioninventory__agent_deploy_state == "present"
|
||||
|
||||
|
@ -24,6 +28,8 @@
|
|||
name: 'fusioninventory-agent'
|
||||
state: '{{ "present" if (fusioninventory__agent_deploy_state == "present")
|
||||
else "absent" }}'
|
||||
register: pkg_agent_repo_result
|
||||
until: pkg_agent_repo_result is success
|
||||
when: fusioninventory__agent_package_url == ""
|
||||
or fusioninventory__agent_deploy_state == "absent"
|
||||
|
||||
|
|
Reference in New Issue