added playbook to fetch remote hostnames, and a second that pushes ssh key from this server and the laptop
This commit is contained in:
13
hostname.yml
Normal file
13
hostname.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
|
||||
- hosts: hosts
|
||||
tasks:
|
||||
|
||||
- name: get hostnames
|
||||
command: hostname
|
||||
register: result
|
||||
|
||||
- name: return result
|
||||
debug:
|
||||
var: result.stdout
|
||||
|
||||
Reference in New Issue
Block a user