Files
ansible/testplaybook.yml
2024-06-14 08:40:04 +02:00

17 lines
348 B
YAML

---
- name: Test Playbook
hosts: all
pre_tasks:
- name: Include vault variables
ansible.builtin.include_vars:
file: vault.yml
no_log: true
tasks:
- name: Ping all hosts
ansible.builtin.ping:
- name: Gather facts
ansible.builtin.setup:
when: "'ansible_host' in hostvars[inventory_hostname]"