khuedoan-homelab/metal/roles/pxe-server/tasks/main.yml
Khue Doan c2744838ab New pxe server structure
No submodule and string replace script, j2 templates only
2021-02-12 12:37:29 +07:00

14 lines
347 B
YAML

# - name: Download ISO
# get_url:
# url: "{{ iso_url }}"
# dest: "{{ role_path }}/files/images/"
- name: Render environment file
template:
src: "{{ role_path }}/files/.env.j2"
dest: "{{ role_path }}/files/.env"
- name: Start PXE server
community.general.docker_compose:
project_src: "{{ role_path }}/files/pxe-servers"