gather facts
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
---
|
---
|
||||||
- hosts: all
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: mostrar tots el gather facts
|
||||||
|
debug:
|
||||||
|
var: ansible_facts
|
||||||
- name: get server hostname
|
- name: get server hostname
|
||||||
command: hostname
|
command: hostname
|
||||||
- name: mostrar IP del host
|
- name: mostrar IP del host
|
||||||
|
|||||||
Reference in New Issue
Block a user