2
0
Fork 0

Don't manage dependencies when install from repos

Package manager (aptitude, yum, dnf,…) is intended to resolve and
install dependencies.
This commit is contained in:
Jeremy Gardais 2021-08-02 12:06:25 +02:00
parent 09b9c5bb26
commit dfad82144e
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,8 @@
state: 'present' state: 'present'
register: pkg_dep_result register: pkg_dep_result
until: pkg_dep_result is success until: pkg_dep_result is success
when: fusioninventory__agent_deploy_state == "present" when: ((fusioninventory__agent_package_url|length > 0) and
(fusioninventory__agent_deploy_state == "present"))
# Manage agent package [[[1 # Manage agent package [[[1
@ -43,8 +44,7 @@
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: ((not fusioninventory__agent_package_url) or when: fusioninventory__agent_package_url|length == 0
(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