Fix E602 Don't compare to empty string
This commit is contained in:
parent
713656d0ad
commit
46e20669ff
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
### Fix
|
### Fix
|
||||||
* Fix E405 Remote package tasks should have a retry.
|
* Fix E405 Remote package tasks should have a retry.
|
||||||
|
* Fix E602 Don't compare to empty string.
|
||||||
|
|
||||||
## v1.0.1
|
## v1.0.1
|
||||||
|
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
deb: '{{ fusioninventory__agent_package_url }}'
|
deb: '{{ fusioninventory__agent_package_url }}'
|
||||||
register: pkg_agent_url_result
|
register: pkg_agent_url_result
|
||||||
until: pkg_agent_url_result is success
|
until: pkg_agent_url_result is success
|
||||||
when: fusioninventory__agent_package_url != ""
|
when: ((fusioninventory__agent_package_url) and
|
||||||
and fusioninventory__agent_deploy_state == "present"
|
(fusioninventory__agent_deploy_state == "present"))
|
||||||
|
|
||||||
- name: Ensure fusioninventory-agent package from REPOS
|
- name: Ensure fusioninventory-agent package from REPOS
|
||||||
package:
|
package:
|
||||||
|
@ -30,8 +30,8 @@
|
||||||
else "absent" }}'
|
else "absent" }}'
|
||||||
register: pkg_agent_repo_result
|
register: pkg_agent_repo_result
|
||||||
until: pkg_agent_repo_result is success
|
until: pkg_agent_repo_result is success
|
||||||
when: fusioninventory__agent_package_url == ""
|
when: ((not fusioninventory__agent_package_url) or
|
||||||
or fusioninventory__agent_deploy_state == "absent"
|
(fusioninventory__agent_deploy_state == "absent"))
|
||||||
|
|
||||||
# Manage agent configuration file [[[1
|
# Manage agent configuration file [[[1
|
||||||
- name: Create Fusioninventory-agent configuration
|
- name: Create Fusioninventory-agent configuration
|
||||||
|
|
Reference in New Issue