-
Notifications
You must be signed in to change notification settings - Fork 15
/
vm_provision_example.yml
29 lines (23 loc) · 1 KB
/
vm_provision_example.yml
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
27
28
29
---
- name: Example usage of playbook in VM Provision state machine
hosts: localhost
connection: local
gather_facts: False
#roles:
#- syncrou.manageiq-automate
tasks:
- debug: msg="dialog_option_0_cores_per_socket={{ dialog_option_0_cores_per_socket }}"
- debug: msg="dialog_option_0_root_password={{ dialog_option_0_root_password }}"
#- name: Decrypt a method_parameter called 'dialog_option_0_root_password' (get_decrypted_method_parameter)
# manageiq_automate:
# workspace: "{{ workspace }}"
# get_decrypted_method_parameter:
# attribute: 'dialog_option_0_root_password'
# register: decrypted_method_parameter
#- debug: msg=Result:{{ decrypted_method_parameter.value }}
- name: "set IPAM details in the provisioning options hash"
set_stats:
data:
miq_provision__options__ip_addr: "192.168.1.23"
miq_provision__options__subnet_mask: "255.255.255.0"
miq_provision__options__gateway: "192.168.1.254"