17 lines
453 B
YAML
17 lines
453 B
YAML
---
|
|
# 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 }}"
|