Create group_vars/all and fill it with:
dir:
data: /data # data directory for all roles
ansible: /data/ansible # roles contents (dockerfiles, docker-compose, configs, etc)
bootstrap
installs base utilschrony
- setup chrony NTP server
This group exists for users assigned to processes (like nginx, postgres, etc).
sudo
group is allowed to log in as users in this group without password.
Vmagent scans docker containers for config labels:
prometheus.io.path: /metrics # metrics path
prometheus.io.port: 9100 # port
prometheus.io.instance: "{{ inventory_hostname }}" # additional labels
prometheus.io.address: 127.0.0.1:9586 # full address to server