X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;ds=sidebyside;f=ansible%2Fvm-install.yml;fp=ansible%2Fvm-install.yml;h=e82aa33cb5b64600995264e09f7c3c2216569813;hb=cada7766cb94b291b214784fa717f874db922d57;hp=0000000000000000000000000000000000000000;hpb=2d9b06312a47da83a5950eba3323231edb167834;p=noc.git diff --git a/ansible/vm-install.yml b/ansible/vm-install.yml new file mode 100644 index 0000000..e82aa33 --- /dev/null +++ b/ansible/vm-install.yml @@ -0,0 +1,21 @@ +--- +- name: Basic Installation + hosts: "{{ vmname }}" + gather_facts: no + pre_tasks: + - name: Gather facts of vm host + setup: + delegate_to: "{{ vm_install.host }}" + delegate_facts: yes + roles: + - role: vm-install + +- import_playbook: "host_playbooks/{{ vmname }}.yml" + +- name: Reboot and wait for VM come back + hosts: "{{ vmname }}" + gather_facts: no + roles: + - role: reboot-and-wait + reboot_delay: 10 + reboot_timeout: 120