-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtt-be.yml
More file actions
67 lines (64 loc) · 1.98 KB
/
tt-be.yml
File metadata and controls
67 lines (64 loc) · 1.98 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
- hosts: localhost
vars:
organization: govtech
project: tt
tasks:
- name: gcp
tags: "{{ organization }}/{{ project }}"
vars:
dir_name: .gcp
block:
- name: "create ~/{{ dir_name }}"
file:
path: "~/{{ dir_name }}"
state: directory
- name: copying files
copy:
src: "{{ item }}"
dest: "~/{{ dir_name }}"
loop: "{{ lookup('fileglob', './dotfiles/{{ organization }}/{{ project }}/{{ dir_name }}/*', wantlist=True) }}"
- name: aws
tags: "{{ organization }}/{{ project }}"
vars:
dir_name: .aws
block:
- name: "create ~/{{ dir_name }}"
file:
path: "~/{{ dir_name }}"
state: directory
- name: copying files
copy:
src: "{{ item }}"
dest: "~/{{ dir_name }}"
loop: "{{ lookup('fileglob', './dotfiles/{{ organization }}/{{ project }}/{{ dir_name }}/*', wantlist=True) }}"
- name: tt aws otp
tags: "{{ organization }}/{{ project }}"
vars:
dir_name: .tt_aws_otp
block:
- name: "create ~/{{ dir_name }}"
file:
path: "~/{{ dir_name }}"
state: directory
mode: "0700"
- name: copying files
copy:
src: "{{ item }}"
dest: "~/{{ dir_name }}"
loop: "{{ lookup('fileglob', './dotfiles/{{ organization }}/{{ project }}/{{ dir_name }}/*', wantlist=True) }}"
- name: ssh
tags: "{{ organization }}/{{ project }}"
vars:
dir_name: .ssh
block:
- name: "create ~/{{ dir_name }}"
file:
path: "~/{{ dir_name }}"
state: directory
- name: copying files
copy:
src: "{{ item }}"
dest: "~/{{ dir_name }}"
mode: "0400"
loop: "{{ lookup('fileglob', './dotfiles/{{ organization }}/{{ project }}/{{ dir_name }}/*', wantlist=True) }}"