New stuffs again
This commit is contained in:
13
ansible_host.yml
Normal file
13
ansible_host.yml
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
- name: Ansible Host
|
||||
hosts: all
|
||||
gather_facts: true
|
||||
|
||||
tasks:
|
||||
- name: Inventory hostname
|
||||
ansible.builtin.debug:
|
||||
var: inventory_hostname
|
||||
|
||||
- name: Ansible hostname
|
||||
ansible.builtin.debug:
|
||||
var: ansible_hostname
|
Reference in New Issue
Block a user