2
0
Fork 0

Install agent package after it's dependencies

This commit is contained in:
Jeremy Gardais 2018-09-10 13:59:45 +02:00
parent 06745b14c8
commit ca61e84088
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 8 additions and 8 deletions

View File

@ -3,6 +3,14 @@
# #
# tasks file for fusioninventory # 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 # Manage agent package [[[1
- name: Ensure fusioninventory agent package from URL - name: Ensure fusioninventory agent package from URL
apt: apt:
@ -16,11 +24,3 @@
state: '{{ "present" if (fusioninventory__agent_deploy_state == "present") else "absent" }}' state: '{{ "present" if (fusioninventory__agent_deploy_state == "present") else "absent" }}'
when: fusioninventory__agent_package_url == "" 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 }}'