Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - name: Prepare Physical ESXi
- hosts: localhost
- gather_facts: False
- vars_files:
- - ../answerfile.yml
- tasks:
- - name: Create Infrastructure portgroup
- vmware_portgroup:
- hostname: "{{ physicalESX.host }}"
- username: "{{ physicalESX.user }}"
- password: "{{ physicalESX.password }}"
- switch_name: "{{ physicalESX.vswitch }}"
- portgroup_name: "{{ vc_mng.network }}"
- vlan_id: "{{ physicalESX.vlan }}"
- network_policy:
- promiscuous_mode: True
- validate_certs: False
- when: vcenter.ip == vc_mng.ip
- - name: Create Infrastructure portgroup
- vmware_portgroup:
- hostname: "{{ physicalESX.host }}"
- username: "{{ physicalESX.user }}"
- password: "{{ physicalESX.password }}"
- switch_name: "{{ physicalESX.vswitch }}"
- portgroup_name: "AllVlansVSS"
- vlan_id: 4095
- network_policy:
- promiscuous_mode: True
- forged_transmits: True
- mac_changes: True
- validate_certs: False
- when: vcenter.ip == vc_mng.ip
- PLAY [Prepare Physical ESXi]
- TASK [Create Infrastructure portgroup]
- ok: [localhost]
- TASK [Create Infrastructure portgroup]
- fatal: [localhost]: FAILED! => {"changed": false, "msg": "one of the
- following is required: cluster_name, hosts"}
- to retry, use: --limit @/mnt/c/Users/sarah_munir/Desktop/vsphere-lab-
- deploy-master/deploy.retry
- PLAY RECAP
- localhost : ok=1 changed=0 unreachable=0 failed=1
Add Comment
Please, Sign In to add comment