2017-09-05 12:01:27 +02:00
|
|
|
---
|
|
|
|
- name: install git packages
|
|
|
|
apt:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: present
|
|
|
|
with_items:
|
|
|
|
- git
|
|
|
|
|
|
|
|
- name: create fastd peer mesh directories
|
|
|
|
file:
|
|
|
|
path: "/etc/fastd/{{ item.key }}VPN/peers"
|
|
|
|
state: directory
|
|
|
|
mode: 0755
|
|
|
|
owner: admin
|
|
|
|
group: admin
|
|
|
|
with_dict: "{{ meshes }}"
|
|
|
|
|
|
|
|
- name: create fastd peer intragate directories
|
|
|
|
file:
|
|
|
|
path: "/etc/fastd/{{ item.key }}igVPN/peers"
|
|
|
|
state: directory
|
|
|
|
mode: 0755
|
|
|
|
owner: admin
|
|
|
|
group: admin
|
|
|
|
with_dict: "{{ meshes }}"
|
|
|
|
|
|
|
|
- name: clone fastd peer mesh repos
|
|
|
|
git:
|
|
|
|
repo: "{{ item.value.peers_mesh_repo }}"
|
|
|
|
dest: "/etc/fastd/{{ item.key }}VPN/peers"
|
2017-09-30 23:00:09 +02:00
|
|
|
version: master
|
2017-09-05 12:01:27 +02:00
|
|
|
update: no
|
|
|
|
with_dict: "{{ meshes }}"
|
2017-09-17 14:43:54 +02:00
|
|
|
become: false
|
2017-09-05 12:01:27 +02:00
|
|
|
|
|
|
|
- name: clone fastd peer intragate repos
|
|
|
|
git:
|
|
|
|
repo: "{{ item.value.peers_intragate_repo }}"
|
|
|
|
dest: "/etc/fastd/{{ item.key }}igVPN/peers"
|
2017-09-30 23:00:09 +02:00
|
|
|
version: master
|
2017-09-05 12:01:27 +02:00
|
|
|
update: no
|
|
|
|
with_dict: "{{ meshes }}"
|
2017-09-17 14:43:54 +02:00
|
|
|
become: false
|