23 lines
512 B
YAML
23 lines
512 B
YAML
|
---
|
||
|
- name: Initiate cmdb
|
||
|
ansible.builtin.import_tasks: install.yml
|
||
|
delegate_to: "{{ cmdb.wiki_server }}"
|
||
|
tags: install
|
||
|
|
||
|
- name: Gather facts
|
||
|
ansible.builtin.package_facts:
|
||
|
manager: auto
|
||
|
tags: facts
|
||
|
|
||
|
- name: Create hypervisor items
|
||
|
ansible.builtin.import_tasks: hypervisor.yml
|
||
|
when: "'qemu-system-x86' in ansible_facts.packages"
|
||
|
tags:
|
||
|
- hypervisor
|
||
|
- server
|
||
|
|
||
|
- name: Create server items
|
||
|
ansible.builtin.import_tasks: server.yml
|
||
|
delegate_to: "{{ cmdb.wiki_server }}"
|
||
|
tags: server
|