1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

VMware: properly format the Jinja2 of the vmware example (#54526)

This commit is contained in:
Gonéri Le Bouder 2019-03-28 12:45:33 -04:00 committed by Abhijeet Kasurde
parent fc3064471b
commit ee10551c7d
4 changed files with 10 additions and 10 deletions

View file

@ -80,7 +80,7 @@ EXAMPLES = r'''
datacenter: datacenter datacenter: datacenter
validate_certs: no validate_certs: no
name: testvm-1 name: testvm-1
dest_folder: /"{{ datacenter }}"/vm dest_folder: "/{{ datacenter }}/vm"
delegate_to: localhost delegate_to: localhost
- name: Get VM UUID - name: Get VM UUID
@ -90,7 +90,7 @@ EXAMPLES = r'''
password: "{{ vcenter_password }}" password: "{{ vcenter_password }}"
validate_certs: no validate_certs: no
datacenter: "{{ datacenter }}" datacenter: "{{ datacenter }}"
folder: /"{{datacenter}}"/vm folder: "/{{datacenter}}/vm"
name: "{{ vm_name }}" name: "{{ vm_name }}"
delegate_to: localhost delegate_to: localhost
register: vm_facts register: vm_facts

View file

@ -94,7 +94,7 @@ EXAMPLES = r'''
username: "{{ vcenter_username }}" username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}" password: "{{ vcenter_password }}"
validate_certs: no validate_certs: no
folder: /"{{ datacenter_name }}"/vm/my_folder folder: "/{{ datacenter_name }}/vm/my_folder"
name: "{{ guest_name }}" name: "{{ guest_name }}"
state: powered-off state: powered-off
delegate_to: localhost delegate_to: localhost
@ -105,7 +105,7 @@ EXAMPLES = r'''
hostname: "{{ vcenter_hostname }}" hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_username }}" username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}" password: "{{ vcenter_password }}"
folder: /"{{ datacenter_name }}"/vm/my_folder folder: "/{{ datacenter_name }}/vm/my_folder"
name: "{{ guest_name }}" name: "{{ guest_name }}"
state: powered-off state: powered-off
scheduled_at: "09/01/2018 10:18" scheduled_at: "09/01/2018 10:18"

View file

@ -73,7 +73,7 @@ EXAMPLES = '''
password: "{{ vcenter_password }}" password: "{{ vcenter_password }}"
validate_certs: no validate_certs: no
datacenter: "{{ datacenter }}" datacenter: "{{ datacenter }}"
folder: /"{{datacenter}}"/vm folder: "/{{datacenter}}/vm"
name: "{{ vm_name }}" name: "{{ vm_name }}"
delegate_to: localhost delegate_to: localhost
register: vm_facts register: vm_facts
@ -96,7 +96,7 @@ EXAMPLES = '''
password: "{{ vcenter_password }}" password: "{{ vcenter_password }}"
validate_certs: no validate_certs: no
name: test-vm name: test-vm
folder: /"{{datacenter}}"/vm folder: "/{{datacenter}}/vm"
delegate_to: localhost delegate_to: localhost
register: facts register: facts
''' '''

View file

@ -109,7 +109,7 @@ EXAMPLES = r'''
username: "{{ vcenter_username }}" username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}" password: "{{ vcenter_password }}"
datacenter: "{{ datacenter }}" datacenter: "{{ datacenter }}"
folder: /"{{datacenter}}"/vm folder: "/{{datacenter}}/vm"
vm_id: "{{ vm_name }}" vm_id: "{{ vm_name }}"
vm_username: root vm_username: root
vm_password: superSecret vm_password: superSecret
@ -128,7 +128,7 @@ EXAMPLES = r'''
username: "{{ vcenter_username }}" username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}" password: "{{ vcenter_password }}"
datacenter: "{{ datacenter }}" datacenter: "{{ datacenter }}"
folder: /"{{datacenter}}"/vm folder: "/{{datacenter}}/vm"
vm_id: NameOfVM vm_id: NameOfVM
vm_username: root vm_username: root
vm_password: superSecret vm_password: superSecret
@ -145,7 +145,7 @@ EXAMPLES = r'''
username: "{{ vcenter_username }}" username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}" password: "{{ vcenter_password }}"
datacenter: "{{ datacenter }}" datacenter: "{{ datacenter }}"
folder: /"{{datacenter}}"/vm folder: "/{{datacenter}}/vm"
vm_id: "{{ vm_name }}" vm_id: "{{ vm_name }}"
vm_username: sample vm_username: sample
vm_password: old_password vm_password: old_password
@ -160,7 +160,7 @@ EXAMPLES = r'''
password: "{{ vcenter_password }}" password: "{{ vcenter_password }}"
validate_certs: no validate_certs: no
datacenter: "{{ datacenter }}" datacenter: "{{ datacenter }}"
folder: /"{{datacenter}}"/vm folder: "/{{datacenter}}/vm"
vm_id: "{{ vm_name }}" vm_id: "{{ vm_name }}"
vm_username: testUser vm_username: testUser
vm_password: SuperSecretPassword vm_password: SuperSecretPassword