Commit 7d624383 authored by Pietsch, Martin's avatar Pietsch, Martin

Merge branch 'master' of gitlab.math.tu-dresden.de:sdm/package.pxelinux

parents aa9409fe d451fe69
- name: get permission of {{ pxelinux_root_path }}, if it exists
stat:
path: "{{ pxelinux_root_path }}"
register: _pxelinux_root_path_stat
- name: set default pxelinux file owner
set_fact:
_pxelinux_file_owner: "{{ _pxelinux_root_path_stat.stat.pw_name | default('root') }}"
- name: set default pxelinux file group
set_fact:
_pxelinux_file_group: "{{ _pxelinux_root_path_stat.stat.gr_name | default('wheel') }}"
- import_tasks: _init.yml
- name: create default file for pxelinux
copy:
src: "default"
dest: "{{ '%s/pxelinux.cfg/default' | format(pxelinux_root_path) }}"
owner: "{{ _pxelinux_file_owner }}"
group: "{{ _pxelinux_file_group }}"
mode: 0755
......
---
- import_tasks: _init.yml
- name: create directory for pxelinux
file:
path: "{{ pxelinux_root_path }}"
owner: "{{ _pxelinux_file_owner }}"
group: "{{ _pxelinux_file_group }}"
state: directory
recurse: yes
mode: 0755
- name: create configuration file directory for pxelinux
file:
path: "{{ '%s/pxelinux.cfg' | format(pxelinux_root_path) }}"
owner: "{{ _pxelinux_file_owner }}"
group: "{{ _pxelinux_file_group }}"
state: directory
mode: 0755
- name: create directory for image files of pxelinux
file:
path: "{{ '%s/images' | format(pxelinux_root_path) }}"
owner: "{{ _pxelinux_file_owner }}"
group: "{{ _pxelinux_file_group }}"
state: directory
mode: 0755
......@@ -23,6 +30,8 @@
copy:
src: "{{ item }}"
dest: "{{ '%s/%s' | format(pxelinux_root_path, item) }}"
owner: "{{ _pxelinux_file_owner }}"
group: "{{ _pxelinux_file_group }}"
mode: 0644
with_items:
- "chain.c32"
......
---
- import_tasks: _init.yml
- name: register image file
copy:
src: "{{ pxelinux_image_buildpath }}"
dest: "{{ '%s/images/%s-%s-%s.img' | format(pxelinux_root_path, pxelinux_image_distribution, pxelinux_image_release, pxelinux_image_architecture) }}"
mode: 0644
owner: "{{ _pxelinux_file_owner }}"
group: "{{ _pxelinux_file_group }}"
remote_src: yes
- template:
- name: register pxelinux configuration
template:
src: "pxelinux.cfg.j2"
dest: "{{ '%s/pxelinux.cfg/%s-%s-%s' | format(pxelinux_root_path, pxelinux_image_distribution, pxelinux_image_release, pxelinux_image_architecture) }}"
owner: "{{ _pxelinux_file_owner }}"
group: "{{ _pxelinux_file_group }}"
mode: 0644
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment