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 ## v1.0.1

View File

@ -10,12 +10,16 @@
state: 'present' state: 'present'
with_flattened: with_flattened:
- '{{ fusioninventory__agent_depend_packages | to_nice_json }}' - '{{ fusioninventory__agent_depend_packages | to_nice_json }}'
register: pkg_dep_result
until: pkg_dep_result is success
when: fusioninventory__agent_deploy_state == "present" when: fusioninventory__agent_deploy_state == "present"
# Manage agent package [[[1 # Manage agent package [[[1
- name: Ensure fusioninventory-agent package from URL - name: Ensure fusioninventory-agent package from URL
apt: apt:
deb: '{{ fusioninventory__agent_package_url }}' deb: '{{ fusioninventory__agent_package_url }}'
register: pkg_agent_url_result
until: pkg_agent_url_result is success
when: fusioninventory__agent_package_url != "" when: fusioninventory__agent_package_url != ""
and fusioninventory__agent_deploy_state == "present" and fusioninventory__agent_deploy_state == "present"
@ -24,6 +28,8 @@
name: 'fusioninventory-agent' name: 'fusioninventory-agent'
state: '{{ "present" if (fusioninventory__agent_deploy_state == "present") state: '{{ "present" if (fusioninventory__agent_deploy_state == "present")
else "absent" }}' else "absent" }}'
register: pkg_agent_repo_result
until: pkg_agent_repo_result is success
when: fusioninventory__agent_package_url == "" when: fusioninventory__agent_package_url == ""
or fusioninventory__agent_deploy_state == "absent" or fusioninventory__agent_deploy_state == "absent"