-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
54 lines (49 loc) · 1.16 KB
/
main.yml
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
---
- name: link SSH keys
hosts: PTAController
tasks:
- name: link id_rsa
file:
path: ~/.ssh/id_rsa
src: /mnt/extra/service/id_rsa
state: link
- name: link id_rsa.pub
file:
path: ~/.ssh/id_rsa.pub
src: /mnt/extra/service/id_rsa.pub
state: link
- name: link root id_rsa
become: yes
file:
path: /root/.ssh/id_rsa
src: /mnt/extra/service/id_rsa
state: link
- name: link root id_rsa.pub
become: yes
file:
path: /root/.ssh/id_rsa.pub
src: /mnt/extra/service/id_rsa.pub
state: link
- name: general configuration
hosts: PTAController
vars:
ntp_server: ntp.company.com
roles:
- role: general-config
- role: jfrog-cli
- name: install terraform
hosts: PTAController
roles:
- role: terraform
- name: configure docker
hosts: PTAController
roles:
- role: docker-host
- name: backup the jenkins master config
hosts: PTAController
vars:
backup_local_name: jenkins_home
backup_local_target: /mnt/extra/docker/jenkins_home
backup_local_destination: /mnt/extra/backups
roles:
- role: backup-local