blob: efb8008551e0475157963fcbcd61aed157210d20 (
plain) (
tree)
|
|
- name: generate wireguard configuration
template:
src: wireguard.conf.j2
dest: "{{ wireguard_local_dir }}/{{ item }}.conf"
mode: 0600
vars:
host: "{{ hostvars[item] }}"
run_once: true
delegate_to: localhost
loop: "{{ groups.all }}"
- name: copy wireguard configuration
copy:
src: "{{ wireguard_local_dir }}/{{ wireguard_local_configuration }}"
dest: "{{ wireguard_dir }}/{{ wireguard_domain_controller }}.conf"
owner: 0
group: 0
mode: 0600
|