- Inventory with tailnet hosts (indri, gilbert, sifaka) - Prometheus role: installs via homebrew, templates config from current indri setup - Grafana role: installs via homebrew, starts service - ansible.cfg and requirements.yml for community.general collection - Updated CLAUDE.md with ansible dry-run instructions Tested: ansible-playbook playbooks/indri.yml --check --diff (all ok) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
25 lines
683 B
YAML
25 lines
683 B
YAML
---
|
|
- name: Install prometheus via homebrew
|
|
community.general.homebrew:
|
|
name: prometheus
|
|
state: present
|
|
|
|
- name: Configure prometheus.yml
|
|
ansible.builtin.template:
|
|
src: prometheus.yml.j2
|
|
dest: /opt/homebrew/etc/prometheus.yml
|
|
mode: '0644'
|
|
notify: restart prometheus
|
|
|
|
- name: Configure prometheus.args
|
|
ansible.builtin.template:
|
|
src: prometheus.args.j2
|
|
dest: /opt/homebrew/etc/prometheus.args
|
|
mode: '0644'
|
|
notify: restart prometheus
|
|
|
|
- name: Ensure prometheus service is started
|
|
ansible.builtin.command: brew services start prometheus
|
|
register: brew_start
|
|
changed_when: "'Successfully started' in brew_start.stdout"
|
|
failed_when: false
|