From 3739df94494e3b26586ed79d0d0f0e85b59cdaae Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Wed, 18 Aug 2021 18:46:04 +0000 Subject: [PATCH] Populate tftp directory for dna-gw hosts --- playbooks/dna-gw.yml | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/playbooks/dna-gw.yml b/playbooks/dna-gw.yml index 9d42ff5..cb2b70b 100644 --- a/playbooks/dna-gw.yml +++ b/playbooks/dna-gw.yml @@ -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 }}"