Commit 188d8522 authored by Richter, Robin's avatar Richter, Robin

include_*/import_* -> call_*

parent e83d6002
---
- name: get permission of {{ pxelinux_root_path }}, if it exists
stat:
......
---
- import_tasks: _init.yml
- call_tasks:
from: _init
- name: create default file for pxelinux
copy:
......@@ -8,6 +10,3 @@
owner: "{{ _pxelinux_file_owner }}"
group: "{{ _pxelinux_file_group }}"
mode: 0755
---
- import_tasks: _init.yml
- call_tasks:
from: _init
- name: create directory for pxelinux
file:
......@@ -41,5 +42,5 @@
- "memdisk"
- "pxelinux.0"
- include_tasks: configure.yml
- call_tasks:
from: configure
---
- import_tasks: _init.yml
- call_tasks:
from: _init
- name: register image file
copy:
......
......@@ -4,5 +4,3 @@
file:
path: "{{ '%s/pxelinux.cfg/01-%s' | format(pxelinux_root_path, hostvars[pxelinux_image_boothost].network.devices[host.network.control_device].mac | replace(':','-')) }}"
state: absent
......@@ -6,5 +6,3 @@
dest: "{{ '%s/pxelinux.cfg/01-%s' | format(pxelinux_root_path, hostvars[pxelinux_image_boothost].network.devices[host.network.control_device].mac | replace(':','-')) }}"
mode: 0644
remote_src: yes
......@@ -8,4 +8,3 @@
- file:
path: "{{ '%s/pxelinux.cfg/%s-%s-%s' | format(pxelinux_root_path, pxelinux_image_distribution, pxelinux_image_release, pxelinux_image_architecture) }}"
state: absent
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