37 lines
887 B
YAML
37 lines
887 B
YAML
# playbook for all managed hosts
|
|
|
|
# ansible-playbook managed_updates.yml -v --ask-become -u richard --ask-pass
|
|
|
|
|
|
- hosts: managed
|
|
remote_user: ansible
|
|
gather_facts: yes
|
|
become: True
|
|
|
|
vars:
|
|
datadog_api_key: ca0faf176c4aedd4f547ed7cf85615eb
|
|
datadog_checks:
|
|
system:
|
|
init_config: []
|
|
instances: []
|
|
disk:
|
|
init_config:
|
|
instances:
|
|
- use_mount: yes
|
|
excluded_filesystems:
|
|
- sysfs
|
|
- cgroup
|
|
- tracefs
|
|
- debugfs
|
|
- proc
|
|
- securityfs
|
|
excluded_mountpoint_re: /[media/richard|run/user].*
|
|
|
|
roles:
|
|
- _install_updates
|
|
- user-richard
|
|
- motd
|
|
- { role: Datadog.datadog, when: ansible_architecture != 'armv7l' } #does not support armhf architecture. should switch to fluentd or logstash
|
|
|
|
tasks:
|