17 lines
605 B
YAML
17 lines
605 B
YAML
- name: Configure TFTP provisioning server
|
|
ansible.builtin.lineinfile:
|
|
path: /etc/default/tftpd-hpa
|
|
regexp: '^TFTP_DIRECTORY='
|
|
line: TFTP_DIRECTORY="/var/lib/tftpboot"
|
|
notify: restart tftpd
|
|
- name: Configure HTTP provisioning server
|
|
ansible.builtin.template:
|
|
src: 001-tftpboot.conf.j2
|
|
dest: /etc/apache2/sites-available/001-tftpboot.conf
|
|
notify: reload apache2
|
|
- name: Enable HTTP provisioning server
|
|
ansible.builtin.file:
|
|
src: /etc/apache2/sites-available/001-tftpboot.conf
|
|
dest: /etc/apache2/sites-enabled/001-tftpboot.conf
|
|
state: link
|
|
notify: reload apache2
|