Add prometheus hosts

This commit is contained in:
Timo Makinen 2023-08-19 17:29:54 +00:00
parent 9b1aa236c5
commit 20fb7aeacf
4 changed files with 46 additions and 0 deletions

28
playbooks/prometheus.yml Normal file
View file

@ -0,0 +1,28 @@
---
- name: Deploy KVM virtual machines
ansible.builtin.import_playbook: include/deploy-kvm-guest.yml
vars:
myhosts: prometheus
- name: Configure instance
hosts: prometheus
user: root
gather_facts: true
vars_files:
- "{{ ansible_private }}/vars.yml"
pre_tasks:
- name: Mount /export
ansible.posix.mount:
name: /export
src: LABEL=/export
fstype: xfs
opts: noatime,noexec,nosuid,nodev
passno: "0"
dump: "0"
state: mounted
roles:
- base
- prometheus