aboutsummaryrefslogtreecommitdiffstats
path: root/roles/vmm/tasks/generate_vmconf.yml
blob: c4e80d8d7bbd8dd8cce5743aa6de5520db4bb403 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

# vmm ~~ tasks/generate_vmconf.yml
# Generate vm.conf on hypervisor.

---

- name: Create network switch
  template:
    src: templates/hostname.j2
    dest: "/etc/hostname.{{ vmm.switch.interface }}"

- name: Start network switch
  shell: "sh /etc/netstart {{ vmm.switch.interface }}"

- name: Generate vmm configuration
  template:
    src: templates/vm.conf.j2
    dest: "{{ vmm.config_file }}"

- name: Restart vmd
  service:
    name: vmd
    state: restarted
    enabled: true
remember that computers suck.