projects
/
noc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nicer loop labels
[noc.git]
/
ansible
/
vm-install.yml
diff --git
a/ansible/vm-install.yml
b/ansible/vm-install.yml
index
9e7f055
..
c244aa9
100644
(file)
--- a/
ansible/vm-install.yml
+++ b/
ansible/vm-install.yml
@@
-5,11
+5,11
@@
tasks:
- name: setup variables
set_fact:
tasks:
- name: setup variables
set_fact:
- vm_network_cooked: "{{ vm_network }}"
- vm_install_cooked: "{{ vm_install }}"
+ network_cooked: "{{ network }}"
+ install_cooked: "{{ install }}"
- name: create temporary host group for vm host
add_host:
- name: create temporary host group for vm host
add_host:
- name: "{{ vm_install.host }}"
+ name: "{{ vm_host }}"
inventory_dir: "{{inventory_dir}}"
group: _vmhost_
# TODO: add some sanity checks
inventory_dir: "{{inventory_dir}}"
group: _vmhost_
# TODO: add some sanity checks
@@
-39,6
+39,9
@@
- name: Apply VM configuration roles
hosts: "{{ hostname }}"
- name: Apply VM configuration roles
hosts: "{{ hostname }}"
+ pre_tasks:
+ - name: make sure to update cached facts
+ setup:
roles:
- role: vm/grub
- role: vm/network
roles:
- role: vm/grub
- role: vm/network