start of playbook and role inventory_infos
This commit is contained in:
8
inventory_infos.yml
Normal file
8
inventory_infos.yml
Normal 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'
|
||||
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user