blob: a7d4621c381371b6896bad7193f33fc172947664 (
plain) (
tree)
|
|
---
- name: create vmm directories
ansible.builtin.file:
path: "{{ item }}"
owner: 0
group: 0
mode: 0770
state: directory
loop:
- "{{ vmm_root_dir }}"
- "{{ vmm_iso_dir }}"
- "{{ vmm_disk_dir }}"
- name: include facts generation
ansible.builtin.include_tasks: facts.yml
- name: include autoinstall generation
ansible.builtin.include_tasks: autoinstall_configuration.yml
tags: task_autoinstall_configuration
- name: include iso management
ansible.builtin.include_tasks: iso.yml
tags: task_iso
- name: include disk management
ansible.builtin.include_tasks: disk.yml
tags: task_disk
- name: include network management
ansible.builtin.include_tasks: network.yml
tags: task_network
- name: generate vmm configuration
ansible.builtin.template:
src: vm.conf.j2
dest: "{{ vmm_configuration_file }}"
owner: 0
group: 0
mode: 0640
notify:
- lint vmm configuration
- name: restart and enable vmd
ansible.builtin.service:
name: vmd
state: restarted
enabled: true
|