2
0
Fork 0

Fix E405 Remote package tasks should have a retry

This commit is contained in:
Jeremy Gardais 2019-02-27 14:07:23 +01:00
parent 66993cb3cd
commit 713656d0ad
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,7 @@
## v1.0.2
### Fix
* Fix E405 Remote package tasks should have a retry.
## v1.0.1

View File

@ -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"