added test playbook
This commit is contained in:
16
ansible/playbooks/test_connectivity.yml
Normal file
16
ansible/playbooks/test_connectivity.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
# FILE: playbooks/test_connectivity.yml
|
||||
# Simple test playbook to validate Semaphore can connect and run tasks
|
||||
|
||||
- name: Test connectivity
|
||||
hosts: all
|
||||
gather_facts: true
|
||||
|
||||
tasks:
|
||||
- name: Print hostname
|
||||
ansible.builtin.debug:
|
||||
msg: "Connected to {{ inventory_hostname }} ({{ ansible_hostname }})"
|
||||
|
||||
- name: Print OS info
|
||||
ansible.builtin.debug:
|
||||
msg: "{{ ansible_distribution }} {{ ansible_distribution_version }}"
|
||||
Reference in New Issue
Block a user