You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
511 B
YAML

---
- name: Allow wireguard on firewall
ufw:
rule: allow
port: "{{ global_wireguard_port }}"
proto: udp
- name: Store public key to backbones
copy:
src: "{{ global_wireguard_peers_directory }}/{{ inventory_hostname }}"
dest: "{{ global_wireguard_configuration_environment_directory }}/peers/{{ inventory_hostname }}"
owner: root
group: root
mode: "u=rw,g=r,o=r"
delegate_to: "{{ item }}"
when: "item != inventory_hostname"
loop: "{{ groups['wireguard_backbones'] }}"