From 612d5c41fa09c398165cba1931bfb90a564ef5e6 Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Tue, 12 May 2020 13:16:35 -0400 Subject: [PATCH] Add in a newer tftpboot tree which I know works for iad2 already we can fix as time goes on. --- roles/batcave/files/allows | 1 + roles/tftp_server/tasks/main.yml | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/roles/batcave/files/allows b/roles/batcave/files/allows index c9791755b8..63c733696a 100644 --- a/roles/batcave/files/allows +++ b/roles/batcave/files/allows @@ -37,6 +37,7 @@ require ip 213.175.193.206 require ip 213.175.193.207 require ip 38.145.48.0/23 + # ibiblio require ip 152.19.134.136 require ip 152.19.134.137 diff --git a/roles/tftp_server/tasks/main.yml b/roles/tftp_server/tasks/main.yml index 52887cf3fb..0c74823a41 100644 --- a/roles/tftp_server/tasks/main.yml +++ b/roles/tftp_server/tasks/main.yml @@ -42,6 +42,13 @@ synchronize: src="{{ bigfiles }}/tftpboot/" dest=/var/lib/tftpboot/ tags: - tftp_server + when: datacenter != 'iad2' + +- name: fill up the tftpboot directory + synchronize: src="{{ bigfiles }}/tftpboot2/" dest=/var/lib/tftpboot/ + tags: + - tftp_server + when: datacenter == 'iad2' - name: generate custom configs template: src=grubhost.cfg.j2 dest="/var/lib/tftpboot/uefi/{{ hostvars[item].install_mac }}"