ansible-role-cmdb/tasks/main.yml

23 lines
512 B
YAML
Raw Normal View History

2023-06-19 15:12:18 +02:00
---
- 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