From c57216d35a63b92b6fe1840e86f51d758b99a8c4 2023-08-22 14:17:24 From: x Date: 2023-08-22 14:17:24 Subject: [PATCH] feat: initial_gw_setup, copy fastd peers --- diff --git a/gateway/initial_gw_setup.yml b/gateway/initial_gw_setup.yml index 1a7fffef646d81b4af29fe0b3e2f08d0e513aa2e..f550698b968649436ff0c2673ba88600c53e8f7d 100644 --- a/gateway/initial_gw_setup.yml +++ b/gateway/initial_gw_setup.yml @@ -139,8 +139,17 @@ path: /etc/fastd/fflux/peers-gw state: directory mode: "0755" - # TODO: copy peers + - name: List all peers but ourselves + ansible.builtin.find: + path: "{{ server_config_dir }}/fastd/peers-gw/" + excludes: "{{ inventory_hostname }}" + delegate_to: localhost + register: peers_to_copy - name: Copy fastd peers + ansible.builtin.copy: + src: "{{ item.path }}" + dest: /etc/fastd/fflux/peers-gw/ + with_items: "{{ peers_to_copy.files }}" - name: Copy fastd blacklist script ansible.builtin.copy: src: "{{ server_scripts_dir }}/fastd-blacklist.sh"