blob: 4ded17723d22be6a1daf1a5350081c6db4ff440b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# vmm ~~ tasks/init_vm.yml
---
- include_role:
name: serial
- set_fact:
- name: Init vm via script
script: init_vm_serial.py \
{{ guest }} \
{{ hostvars[guest].ip.out }} \
{{ hypervisor.gateway }} \
{{ hypervisor.mask }} \
{{ _i.dns[0] }} \
"{{ lookup('file', inventory_dir + '/files/pubkeys/rgoncalves.pub') }}"
args:
executable: "/usr/local/bin/python3"
register: rg
- name: Installation result
debug:
var: rg.stdout_lines
|