-
Notifications
You must be signed in to change notification settings - Fork 0
/
infrastructure.yml
47 lines (39 loc) · 994 Bytes
/
infrastructure.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
---
- name: Installs Docker and Firewall
hosts: all
sudo: yes
tasks:
# - stat: path=/sbin/insserv
# register: insserv_exists
# - name: Symlink insserv
# file: src=/usr/lib/insserv/insserv dest=/sbin/insserv state=link
# when: insserv_exists.stat.exists == False
- apt: name=apt-transport-https
- include: tasks/docker.yml
- include: tasks/collectd.yml
tags:
- collectd
- name: ng_key
copy: >
content="{{ ng_key }}"
dest=/root/ng_key
when: ng_key|default("") != ""
tags:
- git_key
- name: ng_key.pub
copy: >
src=files/ng_key.pub
dest=/root/ng_key.pub
tags:
- git_key
- name: Permissions for ng_key
file: >
mode=0600
path=/root/ng_key
when: ng_key|default("") != ""
tags:
- git_key
- include: tasks/newrelic.yml
when: newrelic_license_key|default("") != ""
tags:
- newrelic