Compare commits
No commits in common. "09b9c5bb2617017dffc48ad54102120527de50b2" and "b9f00ac8584a52fdf37ff9c2d2eb8bf5ff9cefc4" have entirely different histories.
09b9c5bb26
...
b9f00ac858
14
CHANGELOG.md
14
CHANGELOG.md
|
@ -1,17 +1,3 @@
|
||||||
## v1.3.1
|
|
||||||
|
|
||||||
### Fix
|
|
||||||
|
|
||||||
* Update package list for Debian from `dpkg --info` of the last 2.6 version (fix #11).
|
|
||||||
|
|
||||||
### Enhancement
|
|
||||||
|
|
||||||
* Flatten packages list to allow condition.
|
|
||||||
* Split fusioninventory__agent_depend_packages content to 3 variables (for Debian)
|
|
||||||
* fusioninventory__agent_depend_packages
|
|
||||||
* fusioninventory__agent_recommend_packages
|
|
||||||
* fusioninventory__agent_extra_packages
|
|
||||||
|
|
||||||
## v1.3.0
|
## v1.3.0
|
||||||
|
|
||||||
### Fix
|
### Fix
|
||||||
|
|
|
@ -17,8 +17,6 @@ A role to manage FusionInventory agent installation and configuration.
|
||||||
|
|
||||||
* **fusioninventory__agent_version** : The version of Fusioninventory agent to install [default : `2.4-2`].
|
* **fusioninventory__agent_version** : The version of Fusioninventory agent to install [default : `2.4-2`].
|
||||||
* **fusioninventory__agent_depend_packages** : List of dependent packages to install.
|
* **fusioninventory__agent_depend_packages** : List of dependent packages to install.
|
||||||
* **fusioninventory__agent_recommend_packages** : List of recommended packages to install.
|
|
||||||
* **fusioninventory__agent_extra_packages** : List of extra packages to install (eg. to allow installation from a .deb file from Ansible).
|
|
||||||
* **fusioninventory__agent_package_url** : The URL used to download deb package for fusioninventory-agent [default : `http://debian.fusioninventory.org/downloads/fusioninventory-agent_{{ fusioninventory__agent_version }}_all.deb` for Debian Stretch only].
|
* **fusioninventory__agent_package_url** : The URL used to download deb package for fusioninventory-agent [default : `http://debian.fusioninventory.org/downloads/fusioninventory-agent_{{ fusioninventory__agent_version }}_all.deb` for Debian Stretch only].
|
||||||
* **fusioninventory__agent_deploy_state** : What is the desired state which this role should achieve [default : `present`].
|
* **fusioninventory__agent_deploy_state** : What is the desired state which this role should achieve [default : `present`].
|
||||||
* **fusioninventory__agent_service_name** : The service name to manage [default : `fusioninventory-agent`].
|
* **fusioninventory__agent_service_name** : The service name to manage [default : `fusioninventory-agent`].
|
||||||
|
|
|
@ -17,7 +17,9 @@
|
||||||
block:
|
block:
|
||||||
|
|
||||||
- name: Load additional repository settings for CentOS or RedHat 8
|
- name: Load additional repository settings for CentOS or RedHat 8
|
||||||
include_vars: "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml"
|
include_vars: "{{ item }}"
|
||||||
|
with_first_found:
|
||||||
|
- "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml"
|
||||||
|
|
||||||
- name: Override repository settings for CentOS <= 8.2
|
- name: Override repository settings for CentOS <= 8.2
|
||||||
include_vars: "CentOS-8.2.yml"
|
include_vars: "CentOS-8.2.yml"
|
||||||
|
|
|
@ -13,14 +13,14 @@
|
||||||
paths:
|
paths:
|
||||||
- 'vars'
|
- 'vars'
|
||||||
|
|
||||||
# Manage fusioninventory related packages [[[1
|
|
||||||
- name: Ensure related packages are installed
|
# Manage dependent packages [[[1
|
||||||
|
- name: Ensure dependent packages are installed
|
||||||
package:
|
package:
|
||||||
name: '{{ (fusioninventory__agent_depend_packages|d([]) +
|
name: '{{ item }}'
|
||||||
fusioninventory__agent_recommend_packages|d([]) +
|
|
||||||
fusioninventory__agent_extra_packages|d([]))
|
|
||||||
| flatten }}'
|
|
||||||
state: 'present'
|
state: 'present'
|
||||||
|
with_flattened:
|
||||||
|
- '{{ fusioninventory__agent_depend_packages | to_nice_json }}'
|
||||||
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_deploy_state == "present"
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
- name: Ensure fusioninventory-agent package from REPOS
|
- name: Ensure fusioninventory-agent package from REPOS
|
||||||
package:
|
package:
|
||||||
name: '{{ fusioninventory__agent_packages | flatten }}'
|
name: '{{ fusioninventory__agent_packages }}'
|
||||||
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
|
register: pkg_agent_repo_result
|
||||||
|
|
|
@ -2,9 +2,12 @@
|
||||||
# .. vim: foldmarker=[[[,]]]:foldmethod=marker
|
# .. vim: foldmarker=[[[,]]]:foldmethod=marker
|
||||||
|
|
||||||
# .. envvar:: fusioninventory__agent_depend_packages
|
# .. envvar:: fusioninventory__agent_depend_packages
|
||||||
|
#
|
||||||
# List of dependent packages to install from a deb file
|
# List of dependent packages to install.
|
||||||
fusioninventory__agent_depend_packages:
|
fusioninventory__agent_depend_packages:
|
||||||
|
- 'dmidecode'
|
||||||
|
- 'fusioninventory-agent'
|
||||||
|
- 'hdparm'
|
||||||
- 'hwdata'
|
- 'hwdata'
|
||||||
- 'libfile-which-perl'
|
- 'libfile-which-perl'
|
||||||
- 'libhttp-daemon-perl'
|
- 'libhttp-daemon-perl'
|
||||||
|
@ -22,20 +25,10 @@ fusioninventory__agent_depend_packages:
|
||||||
- 'libyaml-perl'
|
- 'libyaml-perl'
|
||||||
- 'libyaml-tiny-perl'
|
- 'libyaml-tiny-perl'
|
||||||
- 'lsb-base'
|
- 'lsb-base'
|
||||||
|
- 'pciutils'
|
||||||
- 'ucf'
|
- 'ucf'
|
||||||
|
- 'usbutils'
|
||||||
# List of recommended packages to install from a deb file
|
- 'usb.ids'
|
||||||
fusioninventory__agent_recommend_packages:
|
|
||||||
- 'dmidecode'
|
|
||||||
- '{{ "util-linux"
|
|
||||||
if ansible_distribution_release in
|
|
||||||
[ "stretch" ]
|
|
||||||
else "fdisk" }}'
|
|
||||||
- 'hdparm'
|
|
||||||
- 'libio-socket-ssl-perl'
|
|
||||||
|
|
||||||
# List of packages to be able install a deb file with Ansible
|
|
||||||
fusioninventory__agent_extra_packages:
|
|
||||||
- 'xz-utils'
|
- 'xz-utils'
|
||||||
|
|
||||||
fusioninventory__agent_packages:
|
fusioninventory__agent_packages:
|
||||||
|
|
Reference in New Issue