30 lines
605 B
YAML
30 lines
605 B
YAML
---
|
|
- name: Deploy KVM virtual machines
|
|
ansible.builtin.import_playbook: include/deploy-kvm-guest.yml
|
|
vars:
|
|
myhosts: mqtt
|
|
|
|
- name: Configure instance
|
|
hosts: mqtt
|
|
user: root
|
|
gather_facts: true
|
|
|
|
vars_files:
|
|
- "{{ ansible_private }}/vars.yml"
|
|
|
|
roles:
|
|
- base
|
|
- mosquitto
|
|
- telegraf
|
|
- nginx
|
|
- role: nginx_site
|
|
nginx_site_name: iot.foo.sh
|
|
- shelly_firmware
|
|
|
|
tasks:
|
|
- name: Run handlers to get interfaces
|
|
ansible.builtin.meta: flush_handlers
|
|
|
|
- name: Import ha_mqtt_configd role
|
|
ansible.builtin.import_role:
|
|
name: ha_mqtt_configd
|