projects
/
noc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add initial vm installer role
[noc.git]
/
ansible
/
vm-install.yml
1
---
2
- name: Basic Installation
3
hosts: "{{ vmname }}"
4
gather_facts: no
5
pre_tasks:
6
- name: Gather facts of vm host
7
setup:
8
delegate_to: "{{ vm_install.host }}"
9
delegate_facts: yes
10
roles:
11
- role: vm-install
12
13
- import_playbook: "host_playbooks/{{ vmname }}.yml"
14
15
- name: Reboot and wait for VM come back
16
hosts: "{{ vmname }}"
17
gather_facts: no
18
roles:
19
- role: reboot-and-wait
20
reboot_delay: 10
21
reboot_timeout: 120