From: nicoo Date: Wed, 13 Jun 2018 16:50:01 +0000 (+0200) Subject: vm-install: Apply VM configuration roles X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=53a4bffbc55943de248ccae68dd53d10a77b204d;p=noc.git vm-install: Apply VM configuration roles --- diff --git a/ansible/host_playbooks/testvm.yml b/ansible/host_playbooks/testvm.yml index 58a4868..0ed84eb 100644 --- a/ansible/host_playbooks/testvm.yml +++ b/ansible/host_playbooks/testvm.yml @@ -3,6 +3,3 @@ hosts: testvm roles: - role: base - - role: vm/grub - - role: vm/network - - role: vm/guest diff --git a/ansible/vm-install.yml b/ansible/vm-install.yml index e0685f9..4a6a0b5 100644 --- a/ansible/vm-install.yml +++ b/ansible/vm-install.yml @@ -35,6 +35,13 @@ set_fact: ansible_ssh_extra_args: "" +- name: Apply VM configuration roles + hosts: "{{ vmname }}" + roles: + - role: vm/grub + - role: vm/network + - role: vm/guest + - import_playbook: "host_playbooks/{{ vmname }}.yml" - name: reboot and wait for VM come back