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
|
## v1.0.1
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
Reference in New Issue