ansible/roles/phone-provisioning/tasks/configure_provisioning.yml

18 lines
605 B
YAML
Raw Normal View History

2024-12-03 23:14:01 +00:00
- 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