Skip to content

Commit

Permalink
fix: 🐛 Changed download links and used default win11 for pxe
Browse files Browse the repository at this point in the history
Signed-off-by: Zach Stein <51035066+Synzack@users.noreply.github.com>
  • Loading branch information
Synzack committed Jun 8, 2024
1 parent e9f42d1 commit a393780
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion roles/ludus_sccm_siteserver/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ ludus_sccm_system_management_template: SystemManagement.ps1.j2
ludus_sccm_win_sccm_config_default_template: ConfigMgrSetup.ini.j2
ludus_sccm_win_sccm_config_default_prereq_path: C:\SCCM

ludus_sccm_configmgr_url: https://go.microsoft.com/fwlink/p/?LinkID=2195628&clcid=0x409&culture=en-us&country=us
ludus_sccm_configmgr_url: https://download.microsoft.com/download/0/0/1/001d97e2-c427-4d4b-ad30-1556ee0ff1b0/MCM_Configmgr_2303.exe

#https://gist.github.com/dansonnenburg/73a2c54d05e03622b9d968e817af89b6
ludus_sccm_adksetup_url: https://download.microsoft.com/download/0/1/C/01CC78AA-B53B-4884-B7EA-74F2878AA79F/adk/adksetup.exe
Expand Down
20 changes: 10 additions & 10 deletions roles/ludus_sccm_siteserver/tasks/config_pxe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,44 +18,44 @@

- name: Check if ISO file exists on Site Server
ansible.windows.win_stat:
path: "{{ ludus_sccm_host_path }}\\win10.iso"
path: "{{ ludus_sccm_host_path }}\\win11.iso"
register: file_host_check

- name: Copy ISO file to Site Server
ansible.windows.win_copy:
src: "/var/lib/vz/template/iso/19044.1288.211006-0501.21h2_release_svc_refresh_CLIENTENTERPRISEEVAL_OEMRET_x64FRE_en-us.iso"
dest: "{{ ludus_sccm_host_path }}\\win10.iso"
src: "/var/lib/vz/template/iso/22621.525.220925-0207.ni_release_svc_refresh_CLIENTENTERPRISEEVAL_OEMRET_x64FRE_en-us.iso"
dest: "{{ ludus_sccm_host_path }}\\win11.iso"
when: not file_host_check.stat.exists

- name: Check if WIM File Exists on Site Server
ansible.windows.win_stat:
path: 'C:\Program Files\Microsoft Configuration Manager\OSD\Images\win10.wim'
path: 'C:\Program Files\Microsoft Configuration Manager\OSD\Images\win11.wim'
register: wim_host_check

- name: Mount ISO to Site Server
community.windows.win_disk_image:
image_path: "{{ ludus_sccm_host_path }}\\win10.iso"
image_path: "{{ ludus_sccm_host_path }}\\win11.iso"
state: present
register: disk_image_out
when: not wim_host_check.stat.exists

- name: Copy install.wim to Site Server OSD Folder
ansible.windows.win_copy:
src: '{{ disk_image_out.mount_paths[0] }}sources\install.wim'
dest: 'C:\Program Files\Microsoft Configuration Manager\OSD\Images\win10.wim'
dest: 'C:\Program Files\Microsoft Configuration Manager\OSD\Images\win11.wim'
remote_src: true
when: not wim_host_check.stat.exists

- name: Unmount ISO
community.windows.win_disk_image:
image_path: "{{ ludus_sccm_host_path }}\\win10.iso"
image_path: "{{ ludus_sccm_host_path }}\\win11.iso"
state: absent
when: not wim_host_check.stat.exists

- name: Add and Distribute SCCM OS & Boot Images
synzack.ludus_sccm.add_os_image:
name: "Windows10"
path: '\\{{ ludus_sccm_site_server_hostname }}.{{ ludus_domain_fqdn }}\sms_{{ ludus_sccm_sitecode }}\OSD\Images\win10.wim'
name: "Windows11"
path: '\\{{ ludus_sccm_site_server_hostname }}.{{ ludus_domain_fqdn }}\sms_{{ ludus_sccm_sitecode }}\OSD\Images\win11.wim'
site_code: '{{ ludus_sccm_sitecode }}'
vars:
ansible_become: true
Expand All @@ -71,7 +71,7 @@
domain_name: '{{ ludus_domain_fqdn }}'
domain_account: '{{ ludus_domain_netbios_name }}\{{ ludus_domain_join_account }}'
domain_password: '{{ ludus_domain_join_password }}'
os_image: 'Windows10'
os_image: 'Windows11'
vars:
ansible_become: true
ansible_become_method: runas
Expand Down
2 changes: 1 addition & 1 deletion roles/ludus_sccm_sql/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ ludus_sccm_site_server_hostname: 'sccm-sitesrv'
ludus_sccm_sql_server_hostname: 'sccm-sql'
ludus_sccm_sql_svc_account_username: 'sqlsccmsvc'
ludus_sccm_sql_svc_account_password: 'Password123'
ludus_sccm_sql2022_url: https://archive.org/download/enu_sql_server_2022_standard_edition_x64_dvd_43079f69/enu_sql_server_2022_standard_edition_x64_dvd_43079f69.iso
ludus_sccm_sql2022_url: https://download.microsoft.com/download/4/0/2/4027643f-d845-4250-ae93-e66854ee1de6/SQLServer2022-x64-ENU.iso

0 comments on commit a393780

Please sign in to comment.