blob: ee1b98ba6c46543f4e52d3df3ece202d336a1f37 (
plain) (
tree)
|
|
- name: include httpd role variables
include_vars: "{{ inventory_dir }}/roles/httpd/defaults/main.yml"
- name: create autoinstall directory
file:
path: /var/www/htdocs/autoinstall
owner: www
group: www
mode: 0700
state: directory
- name: generate autoinstall files
template: &generation_steps
src: autoinstall.conf.j2
dest: "/var/www/htdocs/autoinstall/{{ item.lladdr }}-install.conf"
owner: www
group: www
mode: 0640
when: item.image == "openbsd"
loop: "{{ vmm_vms }}"
- name: generate autoupgrade files
template:
<<: *generation_steps
dest: "/var/www/htdocs/autoinstall/{{ item.lladdr }}-upgrade.conf"
- name: generate disklabel file
template:
<<: *generation_steps
src: disklabel.j2
dest: "{{ vmm_autoinstall_dir }}/{{ item.lladdr }}-disklabel.conf"
when: item.image == "openbsd"
loop: "{{ vmm_vms }}"
- name: generate httpd configuration
template:
<<: *generation_steps
src: httpd.conf.j2
dest: "{{ httpd_configuration_dir }}/autoinstall.conf"
owner: 0
group: 0
- name: link openbsd vm kernel to host kernel
file:
src: /bsd.sp
dest: "{{ vmm_image_openbsd_kernel_prefix }}.{{ item.name }}"
owner: 0
group: 0
state: hard
when: item.image == "openbsd"
loop: "{{ vmm_vms }}"
|