projects
/
noc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #30 from realraum/global-network-config
[noc.git]
/
ansible
/
vm-install.yml
diff --git
a/ansible/vm-install.yml
b/ansible/vm-install.yml
index
198b26f
..
507906f
100644
(file)
--- a/
ansible/vm-install.yml
+++ b/
ansible/vm-install.yml
@@
-14,10
+14,12
@@
group: _vmhost_
# TODO: add some sanity checks
group: _vmhost_
# TODO: add some sanity checks
+- import_playbook: remove_known_hosts.yml
+
- name: basic installation
hosts: _vmhost_
roles:
- name: basic installation
hosts: _vmhost_
roles:
- - role: vm-install
+ - role: vm/install
- name: wait for new vm to start up
hosts: "{{ vmname }}"
- name: wait for new vm to start up
hosts: "{{ vmname }}"
@@
-35,6
+37,13
@@
set_fact:
ansible_ssh_extra_args: ""
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
- import_playbook: "host_playbooks/{{ vmname }}.yml"
- name: reboot and wait for VM come back