Install agent package after it's dependencies
This commit is contained in:
parent
06745b14c8
commit
ca61e84088
|
@ -3,6 +3,14 @@
|
|||
#
|
||||
# tasks file for fusioninventory
|
||||
|
||||
# Manage dependent packages [[[1
|
||||
- name: Ensure dependent packages are in there desired state
|
||||
package:
|
||||
name: '{{ item }}'
|
||||
state: '{{ "present" if (fusioninventory__agent_deploy_state == "present") else "absent" }}'
|
||||
with_flattened:
|
||||
- '{{ fusioninventory__agent_depend_packages }}'
|
||||
|
||||
# Manage agent package [[[1
|
||||
- name: Ensure fusioninventory agent package from URL
|
||||
apt:
|
||||
|
@ -16,11 +24,3 @@
|
|||
state: '{{ "present" if (fusioninventory__agent_deploy_state == "present") else "absent" }}'
|
||||
when: fusioninventory__agent_package_url == ""
|
||||
|
||||
# Manage dependent packages [[[1
|
||||
- name: Ensure dependent packages are in there desired state
|
||||
package:
|
||||
name: '{{ item }}'
|
||||
state: '{{ "present" if (fusioninventory__agent_deploy_state == "present") else "absent" }}'
|
||||
with_flattened:
|
||||
- '{{ fusioninventory__agent_depend_packages }}'
|
||||
|
||||
|
|
Reference in New Issue