Guest User

Untitled

a guest
Sep 26th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. - name: Prepare Physical ESXi
  2. hosts: localhost
  3. gather_facts: False
  4. vars_files:
  5. - ../answerfile.yml
  6. tasks:
  7. - name: Create Infrastructure portgroup
  8. vmware_portgroup:
  9. hostname: "{{ physicalESX.host }}"
  10. username: "{{ physicalESX.user }}"
  11. password: "{{ physicalESX.password }}"
  12. switch_name: "{{ physicalESX.vswitch }}"
  13. portgroup_name: "{{ vc_mng.network }}"
  14. vlan_id: "{{ physicalESX.vlan }}"
  15. network_policy:
  16. promiscuous_mode: True
  17. validate_certs: False
  18. when: vcenter.ip == vc_mng.ip
  19. - name: Create Infrastructure portgroup
  20. vmware_portgroup:
  21. hostname: "{{ physicalESX.host }}"
  22. username: "{{ physicalESX.user }}"
  23. password: "{{ physicalESX.password }}"
  24. switch_name: "{{ physicalESX.vswitch }}"
  25. portgroup_name: "AllVlansVSS"
  26. vlan_id: 4095
  27. network_policy:
  28. promiscuous_mode: True
  29. forged_transmits: True
  30. mac_changes: True
  31. validate_certs: False
  32. when: vcenter.ip == vc_mng.ip
  33.  
  34. PLAY [Prepare Physical ESXi]
  35.  
  36. TASK [Create Infrastructure portgroup]
  37.  
  38. ok: [localhost]
  39.  
  40. TASK [Create Infrastructure portgroup]
  41. fatal: [localhost]: FAILED! => {"changed": false, "msg": "one of the
  42. following is required: cluster_name, hosts"}
  43. to retry, use: --limit @/mnt/c/Users/sarah_munir/Desktop/vsphere-lab-
  44. deploy-master/deploy.retry
  45.  
  46. PLAY RECAP
  47. localhost : ok=1 changed=0 unreachable=0 failed=1
Add Comment
Please, Sign In to add comment