Populate tftp directory for dna-gw hosts

This commit is contained in:
Timo Makinen 2021-08-18 18:46:04 +00:00
parent 2a2d8bcccd
commit 3739df9449

View file

@ -35,7 +35,41 @@
- name: run handlers to get interfaces configured
meta: flush_handlers
- name: create tftp boot directories
file:
path: /srv/tftpboot/etc
state: directory
mode: 0755
owner: root
group: "{{ ansible_wheel }}"
- name: create tftp boot config for openbsd
copy:
dest: /srv/tftpboot/etc/boot.conf
content: |
stty com0 115200
set tty com0
boot tftp:bsd.rd
mode: 0644
owner: root
group: "{{ ansible_wheel }}"
- name: create tftp pxeboot loader for openbssd
get_url:
url: "https://mirrors.foo.sh/openbsd/6.9/amd64/pxeboot"
checksum: sha1:e04ff88afbd41fbd33fc68bdb027c0f5bf8d29af
dest: /srv/tftpboot/pxeboot
mode: 0644
owner: root
group: "{{ ansible_wheel }}"
- name: create tftp ramdisk for openbsd
get_url:
url: "https://mirrors.foo.sh/openbsd/6.9/amd64/bsd.rd"
checksum: sha1:4d9df57080b89e954cef28366db52f2d66e66426
dest: /srv/tftpboot/bsd.rd
mode: 0644
owner: root
group: "{{ ansible_wheel }}"
- name: copy dns zone files
copy:
dest: "/var/unbound/db/{{ item }}"