Skip to content

Commit

Permalink
Add connectivity-check playbook
Browse files Browse the repository at this point in the history
  • Loading branch information
bwachter committed Mar 7, 2024
1 parent 9685d27 commit 469aeec
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions playbooks/connectivity-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# this is a simple playbook to check inventory hosts for reachability
- hosts: all
vars:
ansible_user: management
tasks:
- set_fact:
unreachable: "{{ ansible_play_hosts_all | difference(ansible_play_hosts)}}"
ansible_ssh_common_args: "-o StrictHostKeyChecking=no"
- debug:
msg: "Unreachable systems: {{unreachable}}"

0 comments on commit 469aeec

Please sign in to comment.