vm-install: Apply VM configuration roles
authornicoo <nicoo@realraum.at>
Wed, 13 Jun 2018 16:50:01 +0000 (18:50 +0200)
committernicoo <nicoo@realraum.at>
Sun, 17 Jun 2018 10:03:51 +0000 (12:03 +0200)
ansible/host_playbooks/testvm.yml
ansible/vm-install.yml

index 58a4868..0ed84eb 100644 (file)
@@ -3,6 +3,3 @@
   hosts: testvm
   roles:
   - role: base
-  - role: vm/grub
-  - role: vm/network
-  - role: vm/guest
index e0685f9..4a6a0b5 100644 (file)
     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