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.
21 lines
595 B
21 lines
595 B
5 years ago
|
---
|
||
|
|
||
|
- include_tasks: install_{{ ansible_os_family }}.yml
|
||
|
|
||
|
- name: Deploy FusionInventory Agent config
|
||
|
template: src=agent.cfg.j2 dest=/etc/fusioninventory/agent.cfg mode=640
|
||
|
notify: restart fusioninventory-agent
|
||
|
|
||
|
- name: Check if the first inventory has been done
|
||
|
stat: path=/var/lib/fusioninventory-agent/FusionInventory-Agent.dump
|
||
|
register: first_inventory
|
||
|
|
||
|
- name: First Fusion Inventory report
|
||
|
command: /usr/bin/fusioninventory-agent
|
||
|
when: not first_inventory.stat.exists
|
||
|
|
||
|
- name: Start FusionInventory Agent
|
||
|
service: name=fusioninventory-agent state=started enabled=yes
|
||
|
|
||
|
...
|