123456789101112131415161718192021 |
- ---
- - name: preflight - Init host_vars common
- include_tasks: init_vars.yml
- loop: "{{ groups['mesh_devices'] }}"
- when: hostvars[item].ip_host is not defined
- - name: preflight - Init host_vars vpn wireguard
- include_tasks: init_wg_vars.yml
- loop: "{{ groups['mesh_devices'] }}"
- when: with_wireguard and hostvars[item].vpn_wg0_privatekey is not defined
- - name: preflight - Generate lime-mac files
- template:
- src: lime_mac.j2
- dest: "../lime-mac/{{ hostvars[item].lime_mac }}"
- loop: "{{ groups['mesh_devices'] }}"
- delegate_to: localhost
- - name: preflight - Add wireguard keys to server
- include_tasks: vpn_wg_server.yml
- when: with_wireguard
|