Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.1 KiB

---
- when: ansible_distribution_major_version is version('11', '<')
block:
- name: Install dependencies
apt:
name:
- dmidecode
- hwdata
- ucf
- hdparm
- perl
- libuniversal-require-perl
- libwww-perl
- libparse-edid-perl
- libproc-daemon-perl
- libproc-pid-file-perl
- libfile-which-perl
- libxml-treepp-perl
- libyaml-perl
- libnet-cups-perl
- libnet-ip-perl
- libdigest-sha-perl
- libsocket-getaddrinfo-perl
- libtext-template-perl
- name: Install fusioninventory
apt: deb=http://ftp.fr.debian.org/debian/pool/main/f/fusioninventory-agent/fusioninventory-agent_{{ fusinv_deb_version }}_all.deb
environment:
- http_proxy: "{{ system_proxy | default('') }}"
tags: inventory
- when: ansible_distribution_major_version is version('11', '>=')
block:
- name: Install FusionInventory Agent
apt:
name:
- fusioninventory-agent
tags: inventory