Zack Williams | 92f3c20 | 2021-08-24 23:04:47 -0700 | [diff] [blame^] | 1 | --- |
| 2 | # pxeboot tasks/ubuntu2004.yml |
| 3 | # |
| 4 | # SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org> |
| 5 | # SPDX-License-Identifier: Apache-2.0 |
| 6 | |
| 7 | - name: Create ubuntu2004 dir in webroot |
| 8 | file: |
| 9 | state: directory |
| 10 | path: "{{ pxeboot_web_root }}/ubuntu2004" |
| 11 | owner: "{{ pxeboot_username }}" |
| 12 | group: "{{ pxeboot_groupname }}" |
| 13 | mode: "0755" |
| 14 | |
| 15 | - name: Download ubuntu2004 files |
| 16 | get_url: |
| 17 | url: "{{ pxeboot_ubuntu2004_base_url }}/{{ pxeboot_ubuntu2004_version }}/{{ item['name'] }}" |
| 18 | dest: "{{ pxeboot_web_root }}/ubuntu2004/{{ item['name'] }}" |
| 19 | checksum: "{{ item['checksum'] }}" |
| 20 | owner: "{{ pxeboot_username }}" |
| 21 | group: "{{ pxeboot_groupname }}" |
| 22 | mode: "0644" |
| 23 | with_items: "{{ pxeboot_ubuntu2004_files }}" |
| 24 | |
| 25 | # NOTE: Ubuntu 20.04 switched away from using preseed to an autoinstall method |
| 26 | # https://ubuntu.com/server/docs/install/autoinstall |