Changeset - 0819b8117b4d
[Not reviewed]
0 1 0
x - 2 days ago 2025-08-24 00:16:12
xbr@c3l.lu
fix: do not sudo when listing files locally
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
gateway/all_gw_config.yml
Show inline comments
 
@@ -68,24 +68,25 @@
 
    - name: Copy fastd private key
 
      ansible.builtin.copy:
 
        src: "~/keys/{{ inventory_hostname }}.conf"
 
        dest: /etc/fastd/fflux/secret.conf
 
        owner: root
 
        group: root
 
        mode: "0640"
 
    - name: List all peers but ourselves
 
      ansible.builtin.find:
 
        path: "{{ server_config_dir }}/fastd/peers-gw/"
 
        excludes: "{{ inventory_hostname }}"
 
      delegate_to: localhost
 
      become: false
 
      register: peers_to_copy
 
      tags: fastd
 
    - name: Copy fastd peers
 
      ansible.builtin.copy:
 
        src: "{{ item.path }}"
 
        dest: /etc/fastd/fflux/peers-gw/
 
        owner: root
 
        mode: "0644"
 
      with_items: "{{ peers_to_copy.files }}"
 
      tags: fastd
 
    - name: Make sure global fastd is stopped
 
      ansible.builtin.service:
0 comments (0 inline, 0 general)