Compare commits
2 Commits
ab047ee852
...
2776cfcadf
Author | SHA1 | Date | |
---|---|---|---|
2776cfcadf | |||
69917c65e6 |
@ -14,10 +14,10 @@
|
|||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
|
||||||
- name: Enable haproxy
|
- name: Enable and stop haproxy
|
||||||
service:
|
service:
|
||||||
name: haproxy
|
name: haproxy
|
||||||
state: started
|
state: stopped
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
|
||||||
- name: "Install certbot via apt"
|
- name: "Install certbot via apt"
|
||||||
@ -29,7 +29,13 @@
|
|||||||
|
|
||||||
- name: Generate certificate for all proxied domains
|
- name: Generate certificate for all proxied domains
|
||||||
command:
|
command:
|
||||||
cmd: certbot certonly --non-interactive --agree-tos -m tormakristof@tormakristof.eu --nginx -d neko.tormakristof.eu
|
cmd: certbot certonly --non-interactive --agree-tos -m tormakristof@tormakristof.eu --standalone -d neko.tormakristof.eu
|
||||||
|
|
||||||
|
- name: Enable and start haproxy
|
||||||
|
service:
|
||||||
|
name: haproxy
|
||||||
|
state: started
|
||||||
|
enabled: yes
|
||||||
|
|
||||||
- name: Copy certbot cronjob
|
- name: Copy certbot cronjob
|
||||||
copy:
|
copy:
|
||||||
@ -65,7 +71,7 @@
|
|||||||
- name: "Generate datadog configuration"
|
- name: "Generate datadog configuration"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: datadog.yaml
|
src: datadog.yaml
|
||||||
dest: /etc/datadog-agnet/datadog.yaml
|
dest: /etc/datadog-agent/datadog.yaml
|
||||||
owner: dd-agent
|
owner: dd-agent
|
||||||
group: dd-agent
|
group: dd-agent
|
||||||
mode: '0640'
|
mode: '0640'
|
||||||
|
Loading…
Reference in New Issue
Block a user