Populate tftp directory for dna-gw hosts
This commit is contained in:
parent
2a2d8bcccd
commit
3739df9449
1 changed files with 35 additions and 1 deletions
|
@ -36,6 +36,40 @@
|
||||||
- name: run handlers to get interfaces configured
|
- name: run handlers to get interfaces configured
|
||||||
meta: flush_handlers
|
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
|
- name: copy dns zone files
|
||||||
copy:
|
copy:
|
||||||
dest: "/var/unbound/db/{{ item }}"
|
dest: "/var/unbound/db/{{ item }}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue