start of playbook and role inventory_infos

This commit is contained in:
2026-01-03 19:47:52 +01:00
parent 1fa140fa67
commit 951718aa33
2 changed files with 13 additions and 0 deletions

8
inventory_infos.yml Normal file
View File

@@ -0,0 +1,8 @@
---
- name: Show some informations from the used inventory
hosts: all{{ group_filter | default('') }}
become: true
gather_facts: true
roles:
- role: 'inventory_infos'

View File

@@ -1,2 +1,7 @@
---
# tasks file for inventory_infos
- name: "Show host informations from inventory with debug"
ansible.builtin.debug:
msg:
- "inventory_hostname: {{ inventory_hostname }}"
- "ansible_hostname: {{ ansible_hostname }}"