aboutsummaryrefslogtreecommitdiffstats
path: root/roles/vmm/tasks/autoinstall-configuration.yml
blob: e05b11cece9125f323fec208a89dec851693da29 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
- 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:
    src: autoinstall.conf.j2
    dest: "/var/www/htdocs/autoinstall/{{ item.lladdr }}-install.conf"
    owner: www
    group: www
    mode: 0640
  loop: "{{ vmm_vms }}"

- name: generate httpd configuration
  template:
    src: httpd.conf.j2
    dest: "{{ httpd_configuration_dir }}/autoinstall.conf"
    owner: 0
    group: 0
    mode: 0640
remember that computers suck.