Skip to content

Commit 6982e0b

Browse files
remove restarts, add force restart path, move charon
1 parent 3a3300b commit 6982e0b

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

ansible/docks.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
- hosts: charon
32
- hosts: redis
43
- hosts: redis-slave
54
- hosts: neo4j
@@ -11,8 +10,10 @@
1110
roles:
1211
- { role: docker, tags: "docker" }
1312
- { role: iptables, tags: "iptables, security" }
13+
- { role: datadog }
1414

1515
- include: krain.yml
1616
- include: filibuster.yml
1717
- include: sauron.yml
1818
- include: image-builder.yml
19+
- include: charon.yml

ansible/roles/datadog/tasks/main.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
apt:
66
name=apt-transport-https
77
state=latest
8-
notify: restart datadog-agent
98

109
- name: add datadog apt key
1110
tags: ['datadog']
@@ -14,7 +13,6 @@
1413
id=C7A7DA52
1514
keyserver=keyserver.ubuntu.com
1615
state=present
17-
notify: restart datadog-agent
1816

1917
- name: add datadog repository
2018
tags: ['datadog']
@@ -23,7 +21,6 @@
2321
repo='deb http://apt.datadoghq.com/ stable main'
2422
state=present
2523
update_cache=yes
26-
notify: restart datadog-agent
2724

2825
- name: Create main Datadog agent configuration file
2926
tags: ['datadog']
@@ -41,3 +38,9 @@
4138
src=tcp_check.yaml.j2
4239
dest=/etc/dd-agent/conf.d/tcp_check.yaml
4340
notify: restart datadog-agent
41+
42+
- name: force notify
43+
tags: ['datadogg']
44+
command: echo restart datadog
45+
when: force_restart is defined
46+
notify: restart datadog-agent

0 commit comments

Comments
 (0)