X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=ansible%2Fvm-install.yml;h=507906f5745d39a88ca13b4bf3c8e0cecef9eeb4;hb=2da7b9ef8e1cf46229359728e64e616e7dfbc08b;hp=e0685f9d36b5c77582d51ee507caf201afed38ef;hpb=320cd6f207345a4101fe4f353d86d3a66a6eabd3;p=noc.git diff --git a/ansible/vm-install.yml b/ansible/vm-install.yml index e0685f9..507906f 100644 --- a/ansible/vm-install.yml +++ b/ansible/vm-install.yml @@ -14,6 +14,8 @@ group: _vmhost_ # TODO: add some sanity checks +- import_playbook: remove_known_hosts.yml + - name: basic installation hosts: _vmhost_ roles: @@ -35,6 +37,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