Cannot create multiple VMs

38 views
Skip to first unread message

rebecca acheampong

unread,
Apr 13, 2021, 5:48:51 AM4/13/21
to Ansible Project
I want to create two VMs with ansible but keep getting this error with the with_items
Please I need help. I am very new to ansible.

ERROR! Syntax Error while loading YAML.
  did not find expected '-' indicator

The error appears to be in '/home/ansible/ansible-demo/vm2_play.yml': line 56, column 5, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

    with_items:
    ^ here

This is my variable file:

esxi_host: 'vsecurity.localdomain'
VMWARE_HOST: '192.168.154.144'
VMWARE_USER: ' '
VMWARE_PASSWORD: ' '
vm_network: # vmxnet3
guest_netmask: '255.255.255.0'
guest_gateway: '192.168.154.2'
# IP of domaincontroller/dns
guest_dns_server1: '192.158.154.2'
servers:
   - my_vm_03
   - my_vm_04

and this is my playbook, I am using vmware_guest module.

---
- name: create vm
  hosts: localhost
  gather_facts: no
  connection: local
  vars_files:
       multi_vm.yml
  tasks:
   - vmware_guest:
       hostname: "{{ VMWARE_HOST }}"
       username: "{{ VMWARE_USER }}"
       password: "{{ VMWARE_PASSWORD }}"
       validate_certs: no
       folder: /ha-datacenter/vm/
       name: "{{ item }}"
       state: poweredon
       guest_id: ubuntu64Guest
       esxi_hostname: "{{ esxi_host }}"
       disk:
       - size_gb: 15
         type: thin
         datastore: Datastore_3
       hardware:
         num_cpu: 1
          memory_mb: 1024
       networks:
       - name: '{{ vm_network }}'
         ip: 192.168.154.144
         netmask: 255.255.255.0
         gateway: '{{ guest_gateway }}'
         dns_servers:
         - '{{ guest_dns_server1 }}'
       wait_for_ip_address: yes
     delegate_to: localhost
     register: newvm
     register: deploy_vm
    with_items:
       - "{{ servers }}"





Komal Suthar

unread,
Apr 13, 2021, 6:45:02 AM4/13/21
to ansible...@googlegroups.com
 with_items: "{{ servers }}"

Try this way onces

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/11a6e7ff-82ed-47aa-adf4-48c1237fab84n%40googlegroups.com.

rebecca acheampong

unread,
Apr 13, 2021, 6:56:02 AM4/13/21
to ansible...@googlegroups.com
okay will try it and give response.

Thank you

rebecca acheampong

unread,
Apr 13, 2021, 7:58:44 AM4/13/21
to ansible...@googlegroups.com
I am now having a very strange error after i changed to what you told me and run the playbook:

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TypeError: Required field "summary" not provided (not @optional)
failed: [localhost -> localhost] (item=my_vm_03) => {"ansible_loop_var": "item", "changed": false, "item": "my_vm_03", "module_stderr": "Traceback (most recent call last):\n  File \"/home/ansible/.ansible/tmp/ansible-tmp-1618314853.2520976-123061726281192/AnsiballZ_vmware_guest.py\", line 102, in <module>\n    _ansiballz_main()\n  File \"/home/ansible/.ansible/tmp/ansible-tmp-1618314853.2520976-123061726281192/AnsiballZ_vmware_guest.py\", line 94, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/home/ansible/.ansible/tmp/ansible-tmp-1618314853.2520976-123061726281192/AnsiballZ_vmware_guest.py\", line 40, in invoke_module\n    runpy.run_module(mod_name='ansible.modules.cloud.vmware.vmware_guest', init_globals=None, run_name='__main__', alter_sys=True)\n  File \"/usr/lib/python3.8/runpy.py\", line 207, in run_module\n    return _run_module_code(code, init_globals, run_name, mod_spec)\n  File \"/usr/lib/python3.8/runpy.py\", line 97, in _run_module_code\n    _run_code(code, mod_globals, init_globals,\n  File \"/usr/lib/python3.8/runpy.py\", line 87, in _run_code\n    exec(code, run_globals)\n  File \"/tmp/ansible_vmware_guest_payload_dd7bpty2/ansible_vmware_guest_payload.zip/ansible/modules/cloud/vmware/vmware_guest.py\", line 2834, in <module>\n  File \"/tmp/ansible_vmware_guest_payload_dd7bpty2/ansible_vmware_guest_payload.zip/ansible/modules/cloud/vmware/vmware_guest.py\", line 2823, in main\n  File \"/tmp/ansible_vmware_guest_payload_dd7bpty2/ansible_vmware_guest_payload.zip/ansible/modules/cloud/vmware/vmware_guest.py\", line 2343, in deploy_vm\n  File \"/tmp/ansible_vmware_guest_payload_dd7bpty2/ansible_vmware_guest_payload.zip/ansible/modules/cloud/vmware/vmware_guest.py\", line 1472, in configure_network\n  File \"/tmp/ansible_vmware_guest_payload_dd7bpty2/ansible_vmware_guest_payload.zip/ansible/modules/cloud/vmware/vmware_guest.py\", line 768, in create_nic\n  File \"/usr/local/lib/python3.8/dist-packages/pyVmomi/VmomiSupport.py\", line 663, in __setattr__\n    CheckField(self._GetPropertyInfo(name), val)\n  File \"/usr/local/lib/python3.8/dist-packages/pyVmomi/VmomiSupport.py\", line 1041, in CheckField\n    raise TypeError('Required field \"%s\" not provided (not @optional)' % info.name)\nTypeError: Required field \"summary\" not provided (not @optional)\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

Please help me

On Tue, Apr 13, 2021 at 1:45 PM Komal Suthar <komalsuth...@gmail.com> wrote:

Komal Suthar

unread,
Apr 13, 2021, 8:09:29 AM4/13/21
to ansible...@googlegroups.com
Try giving loop instead of with_items

rebecca acheampong

unread,
Apr 13, 2021, 8:11:17 AM4/13/21
to ansible...@googlegroups.com
Okay Sir, thank you. Will do this now

Komal Suthar

unread,
Apr 13, 2021, 8:12:11 AM4/13/21
to ansible...@googlegroups.com
And also while you run the playbook give the --syntax-check argument as it was giving syntax error then theres no problem with the code it might be some indentation error try to look before or after the error line

rebecca acheampong

unread,
Apr 13, 2021, 9:03:54 AM4/13/21
to ansible...@googlegroups.com
I did the following error checks but don't understand what to do next

ansible-playbook --check --list-tasks -i hosts vm2_play.yml

playbook: vm2_play.yml

  play #1 (localhost): create vm        TAGS: [ ]
    tasks:
      vmware_guest      TAGS: [ ]


 ansible-playbook --check vm2_play.yml

PLAY [create vm] *************************************************************************

TASK [vmware_guest] **********************************************************************
changed: [127.0.0.1 -> localhost] => (item=my_vm_03)
changed: [127.0.0.1 -> localhost] => (item=my_vm_04)


PLAY RECAP *******************************************************************************
127.0.0.1                  : ok=1    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0




Wei-Yen Tan

unread,
Apr 13, 2021, 9:05:24 AM4/13/21
to ansible...@googlegroups.com
Looks like vm created 


From: ansible...@googlegroups.com <ansible...@googlegroups.com> on behalf of rebecca acheampong <bec1...@gmail.com>
Sent: Wednesday, April 14, 2021 1:03:13 AM
To: ansible...@googlegroups.com <ansible...@googlegroups.com>
Subject: Re: [ansible-project] Cannot create multiple VMs
 

Stefan Hornburg (Racke)

unread,
Apr 13, 2021, 9:07:14 AM4/13/21
to ansible...@googlegroups.com
On 4/13/21 3:05 PM, Wei-Yen Tan wrote:
> Looks like vm created 
>

In check mode? I really don't think so.

Regards
Racke

> Get Outlook for iOS <https://aka.ms/o0ukef>
> ------------------------------------------------------------------------------------------------------------------------
> *From:* ansible...@googlegroups.com <ansible...@googlegroups.com> on behalf of rebecca acheampong
> <bec1...@gmail.com>
> *Sent:* Wednesday, April 14, 2021 1:03:13 AM
> *To:* ansible...@googlegroups.com <ansible...@googlegroups.com>
> *Subject:* Re: [ansible-project] Cannot create multiple VMs
>  
> I did the following error checks but don't understand what to do next
>
> ansible-playbook --check --list-tasks -i hosts vm2_play.yml
>
> playbook: vm2_play.yml
>
>   play #1 (localhost): create vm        TAGS: [ ]
>     tasks:
>       vmware_guest      TAGS: [ ]
>
>
>  ansible-playbook --check vm2_play.yml
>
> PLAY [create vm] *************************************************************************
>
> TASK [vmware_guest] **********************************************************************
> changed: [127.0.0.1 -> localhost] => (item=my_vm_03)
> changed: [127.0.0.1 -> localhost] => (item=my_vm_04)
>
>
> PLAY RECAP *******************************************************************************
> 127.0.0.1                  : ok=1    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
>
>
>
>
> On Tue, Apr 13, 2021 at 3:12 PM Komal Suthar <komalsuth...@gmail.com <mailto:komalsuth...@gmail.com>> wrote:
>
> And also while you run the playbook give the --syntax-check argument as it was giving syntax error then theres no
> problem with the code it might be some indentation error try to look before or after the error line
>
> On Tue, Apr 13, 2021, 5:39 PM Komal Suthar <komalsuth...@gmail.com <mailto:komalsuth...@gmail.com>> wrote:
>
> Try giving loop instead of with_items
>
> TypeError('Required field \"%s\" not provided (not @optional)' % info.name <http://info.name>)\nTypeError:
> Required field \"summary\" not provided (not @optional)\n",
"module_stdout": "", "msg": "MODULE FAILURE\nSee
> stdout/stderr for the exact error", "rc": 1}
>
> Please help me
>
> On Tue, Apr 13, 2021 at 1:45 PM Komal Suthar <komalsuth...@gmail.com
> <mailto:komalsuth...@gmail.com>> wrote:
>
>  with_items: "{{ servers }}"
>
> Try this way onces
>
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> <https://groups.google.com/d/msgid/ansible-project/11a6e7ff-82ed-47aa-adf4-48c1237fab84n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to
the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAGgS%3DuXd4VBznCT6qXt8xJnEouuMGyNqqm%2B-W%3DzER0Ocjdy0JQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAGgS%3DuXd4VBznCT6qXt8xJnEouuMGyNqqm%2B-W%3DzER0Ocjdy0JQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the
Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAKQAy6oNu7VohvyUQF3iBaGb8uybGGG0d8%3Dvb-62Hem0%3DosTHw%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAKQAy6oNu7VohvyUQF3iBaGb8uybGGG0d8%3Dvb-62Hem0%3DosTHw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAGgS%3DuXWdYnOStU3g7cD3%3DYz3vfSSz%2ByDS_Eze3JUhS_RHZH_A%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAGgS%3DuXWdYnOStU3g7cD3%3DYz3vfSSz%2ByDS_Eze3JUhS_RHZH_A%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAKQAy6rof5mSteU8EkU%3Dw3soO82EZZccpvwM%3DquQD6%2BPn%3Du%2B-Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAKQAy6rof5mSteU8EkU%3Dw3soO82EZZccpvwM%3DquQD6%2BPn%3Du%2B-Q%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/SYBPR01MB5616AE48EEC9BC03AEBE7885AD4F9%40SYBPR01MB5616.ausprd01.prod.outlook.com
> <https://groups.google.com/d/msgid/ansible-project/SYBPR01MB5616AE48EEC9BC03AEBE7885AD4F9%40SYBPR01MB5616.ausprd01.prod.outlook.com?utm_medium=email&utm_source=footer>.


--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

OpenPGP_signature

rebecca acheampong

unread,
Apr 13, 2021, 9:07:46 AM4/13/21
to ansible...@googlegroups.com
This is my inventory file incase it is needed:

192.168.154.148

127.0.0.1

192.168.154.148 ansible_ssh_pass="pass" ansible_ssh_user=user

Wei-Yen Tan

unread,
Apr 13, 2021, 9:08:55 AM4/13/21
to ansible...@googlegroups.com
Ah my apologies. Late in the night. Just saw the changed. Needs to be taken off and run I guess. (Shrug)

 

From: ansible...@googlegroups.com <ansible...@googlegroups.com> on behalf of Stefan Hornburg (Racke) <ra...@linuxia.de>
Sent: Wednesday, April 14, 2021 1:07 AM
To: ansible...@googlegroups.com
Subject: Re: [ansible-project] Cannot create multiple VMs
 
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c869c96d-eb0b-d6a9-de84-7212f1b8a76a%40linuxia.de.

Naveen Gande

unread,
Apr 13, 2021, 9:09:55 AM4/13/21
to ansible...@googlegroups.com
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c869c96d-eb0b-d6a9-de84-7212f1b8a76a%40linuxia.de.
--
Smile, It improves ur face value.....navvu

rebecca acheampong

unread,
Apr 13, 2021, 9:10:31 AM4/13/21
to ansible...@googlegroups.com
No it is not created. I get this error:

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TypeError: Required field "summary" not provided (not @optional)
failed: [127.0.0.1 -> localhost] (item=my_vm_03) => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python"}, "ansible_loop_var": "item", "changed": false, "item": "my_vm_03", "module_stderr": "Traceback (most recent call last):\n  File \"/home/ansible/.ansible/tmp/ansible-tmp-1618318714.8919904-225029436653775/AnsiballZ_vmware_guest.py\", line 102, in <module>\n    _ansiballz_main()\n  File \"/home/ansible/.ansible/tmp/ansible-tmp-1618318714.8919904-225029436653775/AnsiballZ_vmware_guest.py\", line 94, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/home/ansible/.ansible/tmp/ansible-tmp-1618318714.8919904-225029436653775/AnsiballZ_vmware_guest.py\", line 40, in invoke_module\n    runpy.run_module(mod_name='ansible.modules.cloud.vmware.vmware_guest', init_globals=None, run_name='__main__', alter_sys=True)\n  File \"/usr/lib/python3.8/runpy.py\", line 207, in run_module\n    return _run_module_code(code, init_globals, run_name, mod_spec)\n  File \"/usr/lib/python3.8/runpy.py\", line 97, in _run_module_code\n    _run_code(code, mod_globals, init_globals,\n  File \"/usr/lib/python3.8/runpy.py\", line 87, in _run_code\n    exec(code, run_globals)\n  File \"/tmp/ansible_vmware_guest_payload_9bg5mg70/ansible_vmware_guest_payload.zip/ansible/modules/cloud/vmware/vmware_guest.py\", line 2834, in <module>\n  File \"/tmp/ansible_vmware_guest_payload_9bg5mg70/ansible_vmware_guest_payload.zip/ansible/modules/cloud/vmware/vmware_guest.py\", line 2823, in main\n  File \"/tmp/ansible_vmware_guest_payload_9bg5mg70/ansible_vmware_guest_payload.zip/ansible/modules/cloud/vmware/vmware_guest.py\", line 2343, in deploy_vm\n  File \"/tmp/ansible_vmware_guest_payload_9bg5mg70/ansible_vmware_guest_payload.zip/ansible/modules/cloud/vmware/vmware_guest.py\", line 1472, in configure_network\n  File \"/tmp/ansible_vmware_guest_payload_9bg5mg70/ansible_vmware_guest_payload.zip/ansible/modules/cloud/vmware/vmware_guest.py\", line 768, in create_nic\n  File \"/usr/local/lib/python3.8/dist-packages/pyVmomi/VmomiSupport.py\", line 663, in __setattr__\n    CheckField(self._GetPropertyInfo(name), val)\n  File \"/usr/local/lib/python3.8/dist-packages/pyVmomi/VmomiSupport.py\", line 1041, in CheckField\n    raise TypeError('Required field \"%s\" not provided (not @optional)' % info.name)\nTypeError: Required field \"summary\" not provided (not @optional)\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TypeError: Required field "summary" not provided (not @optional)

Wei-Yen Tan

unread,
Apr 13, 2021, 9:12:31 AM4/13/21
to ansible...@googlegroups.com
You need to fill in the parameter  summary which like it's mandatory 


Sent: Wednesday, April 14, 2021 1:10:06 AM

rebecca acheampong

unread,
Apr 13, 2021, 9:12:33 AM4/13/21
to ansible...@googlegroups.com
No problem Sir, i need help😖, it is wearing me out.

Thank you

Stefan Hornburg (Racke)

unread,
Apr 13, 2021, 9:13:33 AM4/13/21
to ansible...@googlegroups.com
On 4/13/21 3:10 PM, rebecca acheampong wrote:
> No it is not created. I get this error:
>
> An exception occurred during task execution. To see the full traceback,
use -vvv. The error was: TypeError: Required
> field "summary" not provided (not @optional)

So it looks like you need to provide "summary" parameter.

Regards
Racke
> TypeError('Required field \"%s\" not provided (not @optional)' % info.name <http://info.name>)\nTypeError: Required
> field \"summary\" not provided (not @optional)\n", "module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for
> the exact error", "rc": 1}
> An exception occurred during task execution. To see the full traceback,
use -vvv. The error was: TypeError: Required
> field "summary" not provided (not @optional)
>
> On Tue, Apr 13, 2021 at 4:05 PM Wei-Yen Tan <weiye...@gmail.com <mailto:weiye...@gmail.com>> wrote:
>
> Looks like vm created 
>
> Get Outlook for iOS <https://aka.ms/o0ukef>
> ------------------------------------------------------------------------------------------------------------------------
> *From:* ansible...@googlegroups.com <mailto:ansible...@googlegroups.com> <ansible...@googlegroups.com
> <mailto:ansible...@googlegroups.com>> on behalf of rebecca acheampong <bec1...@gmail.com
> <mailto:bec1...@gmail.com>>
> *Sent:* Wednesday, April 14, 2021 1:03:13 AM
> *To:* ansible...@googlegroups.com <mailto:ansible...@googlegroups.com> <ansible...@googlegroups.com
> <mailto:ansible...@googlegroups.com>>
> *Subject:* Re: [ansible-project] Cannot create multiple VMs
>  
> I did the following error checks but don't understand what to do next
>
> ansible-playbook --check --list-tasks -i hosts vm2_play.yml
>
> playbook: vm2_play.yml
>
>   play #1 (localhost): create vm        TAGS: [ ]
>     tasks:
>       vmware_guest      TAGS: [ ]
>
>
>  ansible-playbook --check vm2_play.yml
>
> PLAY [create vm] *************************************************************************
>
> TASK [vmware_guest] **********************************************************************
> changed: [127.0.0.1 -> localhost] => (item=my_vm_03)
> changed: [127.0.0.1 -> localhost] => (item=my_vm_04)
>
>
> PLAY RECAP *******************************************************************************
> 127.0.0.1                  : ok=1    changed=1    unreachable=0    failed=0    skipped=0    rescued=0  
 ignored=0
>
>
>
>
> On Tue, Apr 13, 2021 at 3:12 PM Komal Suthar <komalsuth...@gmail.com <mailto:komalsuth...@gmail.com>>
> wrote:
>
> And also while you run the playbook give the --syntax-check argument as it was giving syntax error then theres
> no problem with the code it might be some indentation error try
to look before or after the error line
>
> On Tue, Apr 13, 2021, 5:39 PM Komal Suthar <komalsuth...@gmail.com
> <mailto:komalsuth...@gmail.com>> wrote:
>
> Try giving loop instead of with_items
>
> <http://info.name>)\nTypeError: Required field \"summary\" not provided (not @optional)\n",
> "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
>
> Please help me
>
> On Tue, Apr 13, 2021 at 1:45 PM Komal Suthar <komalsuth...@gmail.com
> <mailto:komalsuth...@gmail.com>> wrote:
>
>  with_items: "{{ servers }}"
>
> Try this way onces
>
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> <https://groups.google.com/d/msgid/ansible-project/11a6e7ff-82ed-47aa-adf4-48c1237fab84n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAGgS%3DuXd4VBznCT6qXt8xJnEouuMGyNqqm%2B-W%3DzER0Ocjdy0JQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAGgS%3DuXd4VBznCT6qXt8xJnEouuMGyNqqm%2B-W%3DzER0Ocjdy0JQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to
the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAKQAy6oNu7VohvyUQF3iBaGb8uybGGG0d8%3Dvb-62Hem0%3DosTHw%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAKQAy6oNu7VohvyUQF3iBaGb8uybGGG0d8%3Dvb-62Hem0%3DosTHw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAGgS%3DuXWdYnOStU3g7cD3%3DYz3vfSSz%2ByDS_Eze3JUhS_RHZH_A%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAGgS%3DuXWdYnOStU3g7cD3%3DYz3vfSSz%2ByDS_Eze3JUhS_RHZH_A%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAKQAy6rof5mSteU8EkU%3Dw3soO82EZZccpvwM%3DquQD6%2BPn%3Du%2B-Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAKQAy6rof5mSteU8EkU%3Dw3soO82EZZccpvwM%3DquQD6%2BPn%3Du%2B-Q%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/SYBPR01MB5616AE48EEC9BC03AEBE7885AD4F9%40SYBPR01MB5616.ausprd01.prod.outlook.com
> <https://groups.google.com/d/msgid/ansible-project/SYBPR01MB5616AE48EEC9BC03AEBE7885AD4F9%40SYBPR01MB5616.ausprd01.prod.outlook.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAKQAy6r4ZyuVj0N-_%2BOrYPgpwY6mB8K41ZvBpdeLQMjfyNUaTw%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAKQAy6r4ZyuVj0N-_%2BOrYPgpwY6mB8K41ZvBpdeLQMjfyNUaTw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
OpenPGP_signature

Wei-Yen Tan

unread,
Apr 13, 2021, 9:14:19 AM4/13/21
to ansible...@googlegroups.com
I actually have a role for this module 😊 used it successfully against vsphere 


From: ansible...@googlegroups.com <ansible...@googlegroups.com> on behalf of rebecca acheampong <bec1...@gmail.com>
Sent: Wednesday, April 14, 2021 1:12:01 AM
To: ansible...@googlegroups.com <ansible...@googlegroups.com>

rebecca acheampong

unread,
Apr 13, 2021, 9:20:01 AM4/13/21
to ansible...@googlegroups.com
I am sorry I don't know what is that. I am new to this using it for my final project.
Should i send you my playbook and variable file again?

Wei-Yen Tan

unread,
Apr 13, 2021, 9:21:47 AM4/13/21
to ansible...@googlegroups.com
Please send playbook with task details in it please 


Sent: Wednesday, April 14, 2021 1:19:39 AM

Stefan Hornburg (Racke)

unread,
Apr 13, 2021, 9:26:01 AM4/13/21
to ansible...@googlegroups.com
On 4/13/21 3:19 PM, rebecca acheampong wrote:
> I am sorry I don't know what is that. I am new to this using it for my final project.
> Should i send you my playbook and variable file again?

That's odd. I don't see a "summary" parameter at
https://docs.ansible.com/ansible/latest/collections/community/vmware/vmware_guest_module.html.

Which Ansible version do you use and what version is your Python module PyVmomi?

Regards
Racke


.

>
> On Tue, Apr 13, 2021 at 4:12 PM Wei-Yen Tan <weiye...@gmail.com <mailto:weiye...@gmail.com>> wrote:
>
> You need to fill in the parameter  summary which like it's mandatory 
>
> Get Outlook for iOS <https://aka.ms/o0ukef>
> ------------------------------------------------------------------------------------------------------------------------
> *From:* ansible...@googlegroups.com <mailto:ansible...@googlegroups.com> <ansible...@googlegroups.com
> <mailto:ansible...@googlegroups.com>> on behalf of rebecca acheampong <bec1...@gmail.com
> <mailto:bec1...@gmail.com>>
> *Sent:* Wednesday, April 14, 2021 1:10:06 AM
> *Subject:* Re: [ansible-project] Cannot create multiple VMs
> TypeError('Required field \"%s\" not provided (not @optional)' % info.name <http://info.name>)\nTypeError: Required
> field \"summary\" not provided (not @optional)\n", "module_stdout":
"", "msg": "MODULE FAILURE\nSee stdout/stderr
> for the exact error", "rc": 1}
> An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TypeError: Required
> field "summary" not provided (not @optional)
>
> On Tue, Apr 13, 2021 at 4:05 PM Wei-Yen Tan <weiye...@gmail.com <mailto:weiye...@gmail.com>> wrote:
>
> Looks like vm created 
>
> Get Outlook for iOS <https://aka.ms/o0ukef>
> ------------------------------------------------------------------------------------------------------------------------
> *Subject:* Re: [ansible-project] Cannot create multiple VMs
>  
> I did the following error checks but don't understand what to do next
>
> ansible-playbook --check --list-tasks -i hosts vm2_play.yml
>
> playbook: vm2_play.yml
>
>   play #1 (localhost): create vm        TAGS: [ ]
>     tasks:
>       vmware_guest      TAGS: [ ]
>
>
>  ansible-playbook --check vm2_play.yml
>
> PLAY [create vm] *************************************************************************
>
> TASK [vmware_guest] **********************************************************************
> changed: [127.0.0.1 -> localhost] => (item=my_vm_03)
> changed: [127.0.0.1 -> localhost] => (item=my_vm_04)
>
>
> PLAY RECAP *******************************************************************************
> 127.0.0.1                
 : ok=1    changed=1    unreachable=0  
 failed=0    skipped=0    rescued=0  
 ignored=0
>
>
>
>
> On Tue, Apr 13, 2021 at 3:12 PM Komal Suthar <komalsuth...@gmail.com
> <mailto:komalsuth...@gmail.com>> wrote:
>
> And also while you run the playbook give the --syntax-check
argument as it was giving syntax error then
> theres no problem with the code it might be some indentation error try to look before or after the error line
>
> On Tue, Apr 13, 2021, 5:39 PM Komal Suthar <komalsuth...@gmail.com
> <mailto:komalsuth...@gmail.com>> wrote:
>
> Try giving loop instead of with_items
>
> <http://info.name>)\nTypeError: Required field \"summary\" not provided (not @optional)\n",
> <mailto:ansible-proje...@googlegroups.com>.
> <https://groups.google.com/d/msgid/ansible-project/11a6e7ff-82ed-47aa-adf4-48c1237fab84n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAGgS%3DuXd4VBznCT6qXt8xJnEouuMGyNqqm%2B-W%3DzER0Ocjdy0JQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAGgS%3DuXd4VBznCT6qXt8xJnEouuMGyNqqm%2B-W%3DzER0Ocjdy0JQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAKQAy6oNu7VohvyUQF3iBaGb8uybGGG0d8%3Dvb-62Hem0%3DosTHw%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAKQAy6oNu7VohvyUQF3iBaGb8uybGGG0d8%3Dvb-62Hem0%3DosTHw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the
Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAGgS%3DuXWdYnOStU3g7cD3%3DYz3vfSSz%2ByDS_Eze3JUhS_RHZH_A%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAGgS%3DuXWdYnOStU3g7cD3%3DYz3vfSSz%2ByDS_Eze3JUhS_RHZH_A%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAKQAy6rof5mSteU8EkU%3Dw3soO82EZZccpvwM%3DquQD6%2BPn%3Du%2B-Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAKQAy6rof5mSteU8EkU%3Dw3soO82EZZccpvwM%3DquQD6%2BPn%3Du%2B-Q%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/SYBPR01MB5616AE48EEC9BC03AEBE7885AD4F9%40SYBPR01MB5616.ausprd01.prod.outlook.com
> <https://groups.google.com/d/msgid/ansible-project/SYBPR01MB5616AE48EEC9BC03AEBE7885AD4F9%40SYBPR01MB5616.ausprd01.prod.outlook.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAKQAy6r4ZyuVj0N-_%2BOrYPgpwY6mB8K41ZvBpdeLQMjfyNUaTw%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAKQAy6r4ZyuVj0N-_%2BOrYPgpwY6mB8K41ZvBpdeLQMjfyNUaTw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/SYBPR01MB5616612C2CFABDCA1E2C12FDAD4F9%40SYBPR01MB5616.ausprd01.prod.outlook.com
> <https://groups.google.com/d/msgid/ansible-project/SYBPR01MB5616612C2CFABDCA1E2C12FDAD4F9%40SYBPR01MB5616.ausprd01.prod.outlook.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAKQAy6qo0%2BzH6_69C5BA_F0xxmwAMW6gcF66XZ6aGpH95uHUjQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAKQAy6qo0%2BzH6_69C5BA_F0xxmwAMW6gcF66XZ6aGpH95uHUjQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
OpenPGP_signature

rebecca acheampong

unread,
Apr 13, 2021, 9:31:39 AM4/13/21
to ansible...@googlegroups.com

rebecca acheampong

unread,
Apr 13, 2021, 9:31:46 AM4/13/21
to ansible...@googlegroups.com
2.9

To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1c6a8cc2-859a-3185-a412-b815e0e85b83%40linuxia.de.

rebecca acheampong

unread,
Apr 13, 2021, 9:35:44 AM4/13/21
to ansible...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages