blob: 4ded17723d22be6a1daf1a5350081c6db4ff440b (
plain) (
tree)
|
|
# 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
|