Added all
This commit is contained in:
@@ -1,4 +1,8 @@
|
|||||||
---
|
---
|
||||||
- hosts: all
|
- hosts: all
|
||||||
tasks:
|
tasks:
|
||||||
- command: hostname
|
- name: get server hostname
|
||||||
|
command: hostname
|
||||||
|
- name: Debug hostname
|
||||||
|
ansible.builtin.debug:
|
||||||
|
var: ansible_facts['hostname']
|
||||||
Reference in New Issue
Block a user