Issue Updated import_scp.yml
line: "{{ item }}"
insertafter: '^(.*)SysProfile'
with_items:
- - ' <Attribute Name="PxeDev1VlanPriority">0</Attribute>'
- - ' <Attribute Name="PxeDev1Interface">NIC.Integrated.1-1-1</Attribute>'
- - ' <Attribute Name="PxeDev1VlanId">1</Attribute>'
- - ' <Attribute Name="PxeDev1VlanEnDis">Enabled</Attribute>'
- - ' <Attribute Name="PxeDev1Protocol">IPv4</Attribute>'
- ' <Attribute Name="PxeDev1EnDis">Enabled</Attribute>'
- when: not (enterprise_license or datacenter_license)
+ - ' <Attribute Name="PxeDev2EnDis">Enabled</Attribute>'
+ - ' <Attribute Name="PxeDev3EnDis">Enabled</Attribute>'
+ - ' <Attribute Name="PxeDev4EnDis">Enabled</Attribute>'
+ - ' <Attribute Name="HttpDev1EnDis">Disabled</Attribute>'
+ - ' <Attribute Name="HttpDev2EnDis">Disabled</Attribute>'
+ - ' <Attribute Name="HttpDev3EnDis">Disabled</Attribute>'
+ - ' <Attribute Name="HttpDev4EnDis">Disabled</Attribute>'
+ when: provision_method == "pxe"
run_once: true
- name: Disable PXE attributes to SCP file
lineinfile:
path: "{{ role_path }}/files/{{ scp_filename }}"
- line: ' <Attribute Name="PxeDev1EnDis">Disabled</Attribute>'
+ line: "{{ item }}"
insertafter: '^(.*)SysProfile'
- when: enterprise_license or datacenter_license
+ with_items:
+ - ' <Attribute Name="PxeDev1EnDis">Disabled</Attribute>'
+ - ' <Attribute Name="PxeDev2EnDis">Disabled</Attribute>'
+ - ' <Attribute Name="PxeDev3EnDis">Disabled</Attribute>'
+ - ' <Attribute Name="PxeDev4EnDis">Disabled</Attribute>'
+ when: provision_method == "idrac"
run_once: true
- name: Add SNMP community name attribute to SCP file
command: "import"
scp_file: "{{ scp_filename }}"
scp_components: "ALL"
- shutdown_type: "Graceful"
+ shutdown_type: "Forced"
job_wait: "True"
register: import_scp_status
+ until: not import_scp_status.failed
+ retries: "{{ retries_count }}"
- name: Remove the SCP file
file:
