From 53a4bffbc55943de248ccae68dd53d10a77b204d Mon Sep 17 00:00:00 2001 From: nicoo Date: Wed, 13 Jun 2018 18:50:01 +0200 Subject: [PATCH] vm-install: Apply VM configuration roles --- ansible/host_playbooks/testvm.yml | 3 --- ansible/vm-install.yml | 7 +++++++ 2 files changed, 7 insertions(+), 3 deletions(-) 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 -- 1.7.10.4