-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path12-ansible-roles.tf
43 lines (32 loc) · 1.11 KB
/
12-ansible-roles.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
locals {
gateway_role = "gateway"
iptables_role = "iptables"
stubby_role = "stubby"
wireguard_hub_role = "wireguard_hub"
wireguard_spoke_role = "wireguard_spoke"
}
resource "template_dir" "gateway" {
source_dir = "templates/ansible-roles/${local.gateway_role}"
destination_dir = "local/ansible/roles/${local.gateway_role}"
vars = {}
}
resource "template_dir" "iptables" {
source_dir = "templates/ansible-roles/${local.iptables_role}"
destination_dir = "local/ansible/roles/${local.iptables_role}"
vars = {}
}
resource "template_dir" "stubby" {
source_dir = "templates/ansible-roles/${local.stubby_role}"
destination_dir = "local/ansible/roles/${local.stubby_role}"
vars = {}
}
resource "template_dir" "wireguard_hub" {
source_dir = "templates/ansible-roles/${local.wireguard_hub_role}"
destination_dir = "local/ansible/roles/${local.wireguard_hub_role}"
vars = {}
}
resource "template_dir" "wireguard_spoke" {
source_dir = "templates/ansible-roles/${local.wireguard_spoke_role}"
destination_dir = "local/ansible/roles/${local.wireguard_spoke_role}"
vars = {}
}