ansible/playbooks/list-vms-per-host.yml
Ryan Lerch 47c68f478d ansiblelint fixes - fqcn[action-core] - template to ansible.builtin.template
Replaces references to template: with ansible.builtin.template

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:30:29 +10:00

20 lines
488 B
YAML

#
# This playbook runs once per hour on batcave01 and generates a list of vms on virthosts
#
---
- hosts: virtservers
user: root
gather_facts: true
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- "/srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml"
tasks:
- virt: command=info
register: virt_info
- ansible.builtin.template: src={{files}}/virthost-lists.j2 dest=/tmp/virthost-lists.out
delegate_to: localhost