added playbook to fetch remote hostnames, and a second that pushes ssh key from this server and the laptop

This commit is contained in:
dan
2024-03-07 04:48:24 +00:00
parent 2f092c789c
commit d4ada25944
4 changed files with 34 additions and 6 deletions

13
hostname.yml Normal file
View File

@@ -0,0 +1,13 @@
---
- hosts: hosts
tasks:
- name: get hostnames
command: hostname
register: result
- name: return result
debug:
var: result.stdout