Petit stack
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
---
|
||||
- hosts: all
|
||||
tasks:
|
||||
- name: get server hostname
|
||||
- name: Ping to servers
|
||||
ping:
|
||||
- name: Get hostname
|
||||
command: hostname
|
||||
register: hostname
|
||||
- name: Show hostname with message
|
||||
debug:
|
||||
msg: "The hostname of this server is {{ hostname.stdout }}"
|
||||
|
||||
Reference in New Issue
Block a user